CERNBox Documentation
Local deployment
-
Install pip:
pip install --upgrade pip
-
Install mcdocs package:
pip install mkdocs
-
Install the theme for mcdocs:
pip install mkdocs-material
-
If necessarry, install missing extensions and plugins:
pip install mkdocs-awesome-pages-plugin mkdocs-static-i18n
-
Run
mkdocs build
andmkdocs serve
Managing navigation
We use awesome-pages plugin for ordering of the navigation menus.
Create a file named .pages in a directory and use the nav attribute to customize the navigation on that level. List the files and subdirectories in the order that they should appear in the navigation
Translating into French
We use i18n plugin with suffix based docs structure. To make a translation: for each file.md create a corresponding file.fr.md in the same directory. If a file has no corresponding translation, the file in default language will be shown.
Don't forget to insert the translated file into .pages of the corresponding directory.