Methodology overviewΒΆ
An overview of the methodology applied to create Sphinx BlueBrain Theme is given below:
User clones
sphinx-bluebrain-themegit repository:git clone --recursive https://github.com/BlueBrain/sphinx-bluebrain-theme.git
User runs
toxtox environment:toxThis environment runs
translate_templates.py, which does the following:Copies required source files from
mkdocs-materialthemesrcdirectory.Applies conversion rules to some files (
.html,.css,.js, and files with extensions ending in_t). These rules are:Clears specified Jinja
blocksof content.Replaces specified strings within the source files with their replacement values.
Prepends the
mkdocs-materiallicense to files which have had it removed (due to minification). Specified files are skipped.
Copies additional source files for the theme from the
srcdirectory.Renames the
assetsdirectory tostaticwhich is required by Sphinx.