Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Customizing pdoc's html output #11

Closed
ishirav opened this issue Jul 15, 2014 · 2 comments

Comments

Projects
None yet
2 participants
@ishirav
Copy link

commented Jul 15, 2014

Is it possible to customize the html output, add my own css, etc.?

@BurntSushi

This comment has been minimized.

Copy link
Contributor

commented Jul 15, 2014

Yes. See the --template-dir option in pdoc --help.

Instead of specifying a path on the command line, you can also drop them in ~/.config/pdoc and pdoc will find them automatically. You'll probably want to start with existing templates. e.g.,

mkdir ~/.config/pdoc
cp /usr/lib/python2.7/site-packages/pdoc/templates/* ~/.config/pdoc/

(You'll need to replace the above path with wherever you installed pdoc to. Alternatively, you could pull the templates from a git checkout.)

@ishirav

This comment has been minimized.

Copy link
Author

commented Jul 15, 2014

Excellent, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.