A clean book theme for scientific explanations and documentation with Sphinx
Project description
quantecon-book-theme
A Jupyter Book Theme for QuantEcon Book Style Projects
Usage
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
Updating Fixtures for Tests
Updating test regression files on layout changes
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.
Contributing Guide
The docs for the contributing guide of this repository: https://github.com/QuantEcon/quantecon-book-theme/blob/master/docs/contributing/index.md
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file quantecon_book_theme-0.7.4.tar.gz
.
File metadata
- Download URL: quantecon_book_theme-0.7.4.tar.gz
- Upload date:
- Size: 2.1 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 53fce1a524632310e08c66e625888198829321ae23aa537c1ebd596035276f79 |
|
MD5 | 408d4b18accb4ac75f15fde3788e865f |
|
BLAKE2b-256 | df48a078055290d81c04e20665f84ab0294864f9fd207e91dd3f976df7e4b6f0 |
File details
Details for the file quantecon_book_theme-0.7.4-py3-none-any.whl
.
File metadata
- Download URL: quantecon_book_theme-0.7.4-py3-none-any.whl
- Upload date:
- Size: 282.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c66a5f34101b73d94fff086f071482e78ebf4e453de194d218417fdfeeaa27f0 |
|
MD5 | 31ea4876ffbedc7a5fdaa0f5832012c9 |
|
BLAKE2b-256 | 0e688b64564d739f72fc55d65d46b18e224cc395232676d916158a9f639dd72d |