Skip to main content

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:

  1. Install the theme

pip install git+https://github.com/QuantEcon/quantecon-book-theme.git

  1. 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:

  1. Delete the file tests/test_build/test_build_book.html.
  2. 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

quantecon_book_theme-0.7.0.tar.gz (2.3 MB view details)

Uploaded Source

Built Distribution

quantecon_book_theme-0.7.0-py3-none-any.whl (207.1 kB view details)

Uploaded Python 3

File details

Details for the file quantecon_book_theme-0.7.0.tar.gz.

File metadata

  • Download URL: quantecon_book_theme-0.7.0.tar.gz
  • Upload date:
  • Size: 2.3 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.7.17

File hashes

Hashes for quantecon_book_theme-0.7.0.tar.gz
Algorithm Hash digest
SHA256 6bd949d0576ad266a5fa2a4123b579d434c3c767dfc0b9914ee740531f396b55
MD5 3ace148211fdcf8869512a57054dd006
BLAKE2b-256 9cddaad6ea94726f08fa29b9f203c39d3f2c8d9d1afc83dbcc0b0f5d0a6ceb48

See more details on using hashes here.

Provenance

File details

Details for the file quantecon_book_theme-0.7.0-py3-none-any.whl.

File metadata

File hashes

Hashes for quantecon_book_theme-0.7.0-py3-none-any.whl
Algorithm Hash digest
SHA256 7ecde987f76cfced7a862dcb8c220847befbf2a082dafbcfa8bbd826f2738cea
MD5 929c45b8264a8d0f558ba5bdc4ae51f2
BLAKE2b-256 306d4ee65bca8e088437b9476db87f560d55e28f3b1c9325a31cbe40c687e671

See more details on using hashes here.

Provenance

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page