Skip to content

alliander-opensource/cgmes-profiles

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CGMES Profiles

Generating the Documentation

  1. Have the virtual environment active which has the dependencies in pyproject.toml satisfied.
  2. Delete all Markdown files in all the profile subdirectories of _docs. Make sure to not touch the assets and stylesheets subdirectories, as well as the index.md file. So, for each profile subdirectory run something like:
$ rm _docs/'PROFILE_DIR'/*.md
  1. 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
  1. 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
  1. If a new profile has been added, make sure to add it to the list on the root index.md file.
  2. Generate the static HTML website:
$ mkdocs build
  1. 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 in index.md and build again.

Releases

No releases published

Packages

No packages published