Generate the SOFA documentation automatically
The repository contains:
- Python scripts to process the documentation
- Configuration for mkdocs
merge_docs.py merge the automated generated doc from SofaDocGenerator with the manually written doc from https://github.com/sofa-framework/doc
title_metadata.py recursively processes files in a specified directory, adding metadata to files whose names start with one or more digits followed by an underscore.
The metadata includes a title extracted from the filename and added as a YAML header.
generate_nav.py visits all the files of a directory and generates a table of content for mkdocs, in the configuration
file mkdocs.yml.
MkDocs generates the website from the markdown files.
It requires the installation of packages:
pip install mkdocs mkdocs-material
This pipeline only generates a documentation website from the automatically generated documentation.
SofaDocGenerator --ouput path/to/mkdocs/docs --examples path/to/examples
cd path/to/mkdocs
mkdocs servepath/to/mkdocs is the folder containing mkdocs.yml.