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 !regex pattern, 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/pdoc and 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