The website is rendered to https://nbis-workshop-epigenomics.readthedocs.io/en/latest/ and build with Sphinx. To add or modify the content:
# clone the repo
git clone https://github.com/NBISweden/workshop-epigenomics-RTDs
cd workshop-epigenomics-RTDs
# checkout feature branch to work on
git checkout -b session-example
Add and edit files at will and note that:
- Supported formats:
.rst
,.md
- Tutorial files: go under
docs/content/tutorials
- Links to tutorials: add to
docs/content/tutorials/*.rst
# code & commit changes while working on the materials
git add session-feature.md
git commit -m "commit message"
# push to feature when ready
git push
- Commit messages should contain relevant information regarding the feature(s) you add, what type of analyses they can be used for, etc..
- The subject line should be written in an imperative, e.g. Fix typos and be 50 characters or less
- More about good commit messages
- Go to course repository https://github.com/NBISweden/workshop-epigenomics-RTDs and create a pull request.
- OK to merge with the main branch, if you know what you're doing and have technical permission to do so.
Readthedocs will automatically build the site upon new commits
You can view changes locally while working on. To do so:
conda install sphinx
pip install sphinx-rtd-theme
pip install recommonmark # to support Markdown ## this may not work anymore, recommonmark is deprecated
pip install myst-parser # current way to support Markdown
pip install sphinx_togglebutton
pip install sphinx_copybutton
Or via environment:
conda create -n sphinx7 -c conda-forge python=3.11 pip sphinx=7.2.4 sphinx_rtd_theme=1.3.0 docutils sphinx-togglebutton sphinx-copybutton pygments myst-parser==2.0.0
Versions currently used:
sphinx 7.2.4
sphinx-rtd-theme 1.3.0
sphinx-copybutton 0.5.2
sphinx-togglebutton 0.3.2
pygments 2.16.1
docutils 0.18.1
myst-parser 2.0.0
In project root (i.e. /docs
):
make html
The html to view is _build/html/index.html
It is supported. However, the tables may not be rendered properly in html.
The preferred format. A useful primer on syntax:
https://www.sphinx-doc.org/en/master/usage/restructuredtext/basics.html
Contact Agata