Architecture¶
In general, pulp-docs is a wrapper around mkdocs and use its hooks to get things working together.
It also leverages some plugins from the mkdocs
ecosystem.
How it works¶
Through a mkdocs-macro-plugin
hook (called in early stages of mkdocs processing), we inject the following steps:
- Read
repolist.yml
packaged withpulp-docs
to know which repos/urls to use - Download and Place all source code required to dir under
tempfile.gettempdir()
- Uses
../{repo}
if available OR - Uses existing cached
{tmpdir}/{repo}
if available OR - Downloads from github
- Uses
- Configure
mkdocs
through a hook: fixmkdocstrings
config, generate navigation structure, etc