docs/index.html
from module contents and metadata
Syntax: qdox [OPTION ...]
-
:--debug
:-h|--help|help
:--tomlfile=TOMFILE
:TOMFILE
instead of "pyproject.toml"--withcss[=CSSFILE]
:CSSFILE
file to the docs
folder (default is qdox.css
)
qdox
command generates the documentation for a simple Python
project. The formatting is designed to use simple text layout as the input
so that the same documentation source can be used for both Python help()
output and the documentation pages.
The command loads the module specified in the pyproject.toml
file and
outputs the __doc__
property of the module as the command line
documentation. It then outputs the python functions and constants,
followed by the project metadata.
You can use your project's pages-build-deployment
workflow to deploy the
documentation to github.io
or to your own custom site by setting the
following options in your project Settings-->Pages
.
Source
: Choose Deploy from a branchBranch
: Choose main and /docs.Custom domain
: Enter one if you have one.qdox
in a project you must do the following:
qdox
from the repo into the current venv
by running the command
python3 -m pip install git+https://github.com/dchassin/qdox
qdox
in the project root folder by running the commandqdox - If you want to include a CSS file, use the option--withcss=CSSFILE
, e.g., qdox --withcss=mystyles.css TheCSSFILE
defaults toqdox.css
when omitted.
git commit -a -m "Add docs" git push
Syntax[COLON] text
:text[COLON]
:[NEWLINE]
:[4 SPACES]*[SPACE]text
:[4 SPACES][DIGIT].[SPACE]text
:[4 SPACES]label[COLON] text
:[6 SPACES]text
:[8 SPACES]text
:**text**
:*text*
:!!text!!
:~~text~~
:__text__
:^text
:_text
:[TIC]text[TIC]
:code
textprotocol[COLON]//url/
:protocol://url/
formatting with active linkqdox
to read information about the module.
If you want to output a colon at the end of a paragraph rather than a
heading, place a space after the colon and before the end-of-line.
main(argv:list) → int
qdox
program. Generates the docs/index.html
from
the README.md
file and from the module created using the
pyproject.toml
file. If the WITHCSS
is set to a file that exists, it
also copies that file to the docs/
folder and references it in the HTML
file.
argv
:int
:DEBUG (bool)
:WITHCSS (str)
:docs/
Exception
:DEBUG
is True
.FileNotFoundError
:QdoxError
:E_ERROR = 1
E_OK = 0
E_SYNTAX = 2
: | qdox | |
: | 0.0.0a5 | |
: | Generate quick documentation for a Python project on GitHub | |
: | David P. Chassin | |
: | David P. Chassin | |
: | >= 3.11 | |
: | requests tomli | |
: | github python documentation | |
: | MIT License | |
: | Development Status :: 3 - Alpha Intended Audience :: Developers License :: OSI Approved :: MIT License Programming Language :: Python :: 3 :: Only Topic :: Software Development :: Libraries | |
: | Homepage = https://github.com/eudoxys/qdox Documentation = https://www.eudoxys.com/qdox Repository = https://github.com/eudoxys/qdox.git Issues = https://github.com/eudoxys/qdox/issues | |
: | qdox → main() |