- Have the virtual environment active which has the dependencies in
pyproject.toml
satisfied. - Delete all Markdown files in all the profile subdirectories of
_docs
. Make sure to not touch theassets
andstylesheets
subdirectories, as well as theindex.md
file. So, for each profile subdirectory run something like:
$ rm _docs/'PROFILE_DIR'/*.md
- Generate the static Markdown files for each profile.
$ gen-doc -d _docs/'PROFILE_DIR' --diagram-type mermaid_class_diagram --template-directory _templates/ --use-slot-uris /path/to/your_schema.yaml
- Delete slot and type pages, since these cause problems and don't provide us anything meaningful for the CGMES profiles. A handy way of doing this is to navigate to the profile directory and then run:
$ grep -E '^# (Slot|Type): ' *.md -l | xargs rm
- If a new profile has been added, make sure to add it to the list on the root
index.md
file. - Generate the static HTML website:
$ mkdocs build
- The index pages of the profiles have some references to LinkML types that we need to remove manually. Running
mkdocs build
again tells you what the dead references are. Remove these entries from the classes table inindex.md
and build again.