Skip to content

sofa-framework/doc

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

72 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SofaDocGenerator

Generate the SOFA documentation automatically

The repository contains:

  1. Python scripts to process the documentation
  2. Configuration for mkdocs

Python Scripts

Merge docs

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

MkDocs generates the website from the markdown files.

It requires the installation of packages:

pip install mkdocs mkdocs-material

Run Locally

Simplest pipeline

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 serve

path/to/mkdocs is the folder containing mkdocs.yml.

About

SOFA Documentation

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 29