A Sphinx theme for Renku documentation based on RTD theme.
https://renku-sphinx-theme.readthedocs.io/en/latest/
- Add
renku-sphinx-themetosetup.pyorrequirements.txtused for building your documentation. - Set
html_themeto'renku'indocs/conf.py. - Configure at least
descriptionandgithub_repoinhtml_theme_options.
Enjoy your beautiful Renku documentation style.
This repo contains a scss file that generates a css file.
The css file shouldn't be manually modified since it's generated with the scss.
Instructions to change and run the scss file are inside it ./renku_sphinx_theme/static/custom.scss.
Renku repo is a better repository for testing style changes.
The easy way of doing this is to go to the renku repo, add a temporary css (custom.css)
in the docs/conf.py file and follow this steps:
https://renku.readthedocs.io/en/latest/how-to-guides/contributing/documentation.html
After doing the changes in the temporary css add this to custom.scss in this repository, build this into a css file using the instructions and commit the css and scss files.
To build docs after doing changes, and test things inside this repository
From the base folder...
pip install -r docs/requirements.txtThis should be done in case there where changes in fonts or new css files added
pip install --editable .There is no Makefile here but in order to do the "make html" action you should do
cd docssphinx-build -b html -d _build/doctrees . _build/html
Docs will be built into _build/html... open this files with chrome to see the changes.
- Create a pull request updating
renku_sphinx_theme/version.pyto the new version number andCHANGES.rstto list the new changes. - Once the pull request is merged, create a new release.
- The release will be automatically be pushed to PyPI.