Help with html customization
See original GitHub issueSorry for abusing the issue tracker, but I don’t know where else to get support from after 2 days of trying.
I want to customize the html layout and contents, and I read the documentation about custom jinja files and the -t command line option. That’s all good, but unfortunately I’m very ignorant when it comes to this tech stack, I need a couple of hints to get going.
The main thing that I’d like to accomplish right now is customizing the list of modules in the index page. I created my custom jinja, but I don’t understand how to access modules list and hierarchy. I see in the default that all_modules
is available, but that’s only a list of strings. I thought I could access doc_objects
, but that doesn’t seem to be available.
How do I know what underlying python objects are available and how do I access them to create my own population logic?
Thanks in advance for any help!
Issue Analytics
- State:
- Created 2 years ago
- Comments:7 (4 by maintainers)
Top GitHub Comments
I have a prototype at https://github.com/mhils/pdoc/tree/all-modules. I’m still not sure if the changes will make it in as-is, but please feel free to play around with it:
This works on main now and will be part of the next pdoc release! 😃