- Run
tasker.shto set up the pipenv and run mkdocs, e.g.tasker.sh serve. - Or with
uv:uv venvto create the environmentsource .venv/bin/activateto jump into ituv pip install -r reqs.txtto install the requirementsmkdocs serveto launch the server
- Navigate to the relevant folder where the Python bindings are installed, e.g.
/home/$USER/Workspace/nyx-space/anise/anise-py - Install
pdoc3with pipx if not available yet:pipx install pdoc3 - Run pdoc with the
--pdfflag, which generates a markdown actually:pdoc3 anise.astro --pdf > /home/$USER/Workspace/nyx-space/docs/docs/anise/reference/api/python/astro2.md. Keep in mind that there are TWOdocsfolders here! - This will create a mostly ready Markdown, but remove extra new lines with
sed:sed '/^$/N;/\n$/D' /home/$USER/Workspace/nyx-space/docs/docs/anise/reference/api/python/astro/index2.md > /home/$USER/Workspace/nyx-space/docs/docs/anise/reference/api/python/astro/index.md. Importantly, you must specify a different output than input or the file will be empty.
A few manual edits are typically required. Check on the staging server first.