A Jupyter Book Theme for QuantEcon Book Style Projects
To use this theme in Jupyter Book:
- Install the theme
pip install git+https://github.com/QuantEcon/quantecon-book-theme.git
- Add the theme to your
_config.yml
file:
sphinx:
config:
html_theme: quantecon_book_theme
It is advisable to update the test files for file regression checks when releavant layout files change.
For example, at present we have a sidebar file-regression check to validate html across tests.
The file which it compares against is tests/test_build/test_build_book.html
.
If updating the sidebar html, then one of the easier steps to update this test file is:
- Delete the file
tests/test_build/test_build_book.html
. - Run
pytest
in your command line, which will then generate a new file. Check if the file is at par with your expectations, contains elements which you added/modified.
Now future pytests will test against this file, and the subsequent tests should pass.
The docs for the contributing guide of this repository: https://github.com/QuantEcon/quantecon-book-theme/blob/master/docs/contributing/index.md