This is a Sphinx extension for software-carpentry style lessons. It is designed as a replacement for the Jekyll-based software templates.
View the documentation (and example) on github pages <https://coderefinery.github.io/sphinx-lesson/>
__.Template repository, to copy from <https://github.com/coderefinery/sphinx-lesson-template/>
__.myst_parser
parser, so has access to all Sphinx
directives nativelymyst_nb
).myst_nb
).Consists of sub-extensions for substitutions. Adding
sphinx_lesson
as an extension will bring in these:
sphinx_lesson.directives
(the core directives)sphinx_lesson.md_transforms
(reprocess some other markdown
format into myst_nb format)myst_nb
(not developed by us)Create a virtual python environment::
python -m venv venv
Activate the virtual environment::
source activate venv/bin/activate
Install python packages::
pip install -r requirements.txt
Build local files (this can also be used for deployment)::
make html
make clean html # clean + full rebuild
Or, start a live-compiled service for your compiled site for local development::
make livehtml
Then view created site in your browser at http://localhost:8000 <http://localhost:8000>
__ (follow the link in your console).
In beta use by CodeRefinery and active development. External users would be fine (but let us know so we know to keep things stable).