In order to build the docs you need to
- Install sphinx and additional support packages
- Build the package reference files
- Run sphinx to create a local html version
The documentation is build using readthedocs automatically.
Install the docs dependencies of the package (as speciefied in toml):
# in main folder
# pip install ".[docs]"
poetry install --with docsCommand to be run from path/to/docs, i.e. from within the docs package folder:
Options:
--separateto build separate pages for each (sub-)module
# pwd: docs
# apidoc
sphinx-apidoc --force --implicit-namespaces --module-first -o reference ../src/vuegen
# build docs
sphinx-build -n -W --keep-going -b html ./ ./_build/The README is included in the Overview section of the docs. We created a Python script to split the README sections into separate md files, stored in docs/sections_readme. The index.md file contains the structure of the docs with the generated sections and additional information.
Relative links are used in the main README, which need to be resolved when building. It's
possible to include the a relative-docs option if one uses index.md (see docs). This does not work
with href links, only native markdown links.