PDOC:(1)
π PDOC:(1) π
User Commands β¨ so like, this is the manual page for pdoc:, bestie. Buckle up.
πΈ NAME πΈ
pdoc: β generate Python API documentation. yes that's it. that's the whole job. and it ATE. π
β¨ DESCRIPTION β¨
okay so here's the vibe. the usage goes a little something like this:
usage: pdoc [-o DIR] [-d {markdown,google,numpy,restructuredtext}]
[--include-undocumented | --no-include-undocumented] [-e
module=url] [--favicon URL] [--footer-text TEXT] [--logo URL]
[--logo-link URL] [--math | --no-math] [--mermaid | --no-mermaid]
[--search | --no-search] [--show-source | --no-show-source] [-t
DIR] [-h HOST] [-p PORT] [-n] [--help] [--version] [module ...]
and what does it do? Automatically generate API docs for Python modules. π¦ no cap, it just reads your code and makes it pretty. main character behavior honestly.
π Main Arguments: π
moduleβ Python module names, bestie! these can be importable Python module names like"pdoc.doc", or file paths like"./pdoc/doc.py". wanna exclude submodules? hit it with a negative!regexpattern, e.g."foo !foo.bar". (default:[]) π-o DIR,--output-directory DIRβ write the rendered documentation into the directory you name, and don't start a webserver. just files, no server, periodt. (default:None) π
π Customize Rendering: π
-d {markdown,google,numpy,restructuredtext},--docformat {markdown,google,numpy,restructuredtext}β the default docstring format, iykyk. for the non-Markdown formats, pdoc will first convert matching syntax elements to Markdown and then process everything as Markdown. (default:restructuredtext) π--include-undocumented,--no-include-undocumentedβ show classes/functions/variables that do not have a docstring. yes, the shy ones. (default:True) π-e module=url,--edit-url module=urlβ a mapping between module names and URL prefixes, used to display an 'Edit' button. may be passed multiple times (stack 'em up π«Ά). example:pdoc=https://github.com/mitmproxy/pdoc/blob/main/pdoc/(default:[]) βοΈ--favicon URLβ specify a custom favicon URL. tiny icon, huge vibe. (default:None) β--footer-text TEXTβ custom text for the page footer, for example the project name and current version number. (default:None) π--logo URLβ add a project logo image. branding!! (default:None) π--logo-link URLβ optional URL the logo should point to. (default:None) π--math,--no-mathβ include MathJax from a CDN to enable math formula rendering. (default:False) β--mermaid,--no-mermaidβ include Mermaid.js from a CDN to enable Mermaid diagram rendering. (default:False) π§ββοΈ--search,--no-searchβ enable search functionality if multiple modules are documented. (default:True) π--show-source,--no-show-sourceβ display "View Source" buttons. (default:True) π-t DIR,--template-directory DIRβ a directory containing Jinja2 templates to customize output. alternatively, put your templates in$XDG_CONFIG_HOME/pdocand pdoc will automatically find them. it's giving convenience. (default:None) π§
π¦ Miscellaneous Options: π¦
-h HOST,--host HOSTβ the host on which to run the HTTP server. (default:localhost) π-p PORT,--port PORTβ the port on which to run the HTTP server. (default:None) πͺ-n,--no-browserβ don't open a browser after the web server has started. (default:False) π ββοΈ--helpβ show this help message and exit. π--versionβ show version information and exit. π·οΈ
also, for the record, the run that generated all this was on: Python: 3.11.9 and Platform: Linux-6.1.0-21-arm64-aarch64-with-glibc2.38 π (that platform string is a whole novel fr fr)
π SEE ALSO π
the full documentation for pdoc: is maintained as a Texinfo manual. if the info and pdoc: programs are properly installed at your site, the command
info pdoc:
should give you access to the complete manual. iconic behavior tbh. π
okay that's the whole page!! this was pdoc: 14.5.0, dated June 2024. slay, you read the entire thing, so proud of you bestie πβ¨ππ¦πΈπ
π«Ά
π¦ where this page comes from
- debian trixie: python3-pdoc 15.0.1-2
- ubuntu questing: python3-pdoc 15.0.1-2
- ubuntu resolute: python3-pdoc 16.0.0-1ubuntu1
- ubuntu stonking: python3-pdoc 16.0.0-1ubuntu1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms