Skip to main content

Theme for Quantecon lectures

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.

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.2.1.tar.gz (20.4 kB view details)

Uploaded Source

Built Distribution

quantecon_book_theme-0.2.1-py3-none-any.whl (20.9 kB view details)

Uploaded Python 3

File details

Details for the file quantecon-book-theme-0.2.1.tar.gz.

File metadata

  • Download URL: quantecon-book-theme-0.2.1.tar.gz
  • Upload date:
  • Size: 20.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.6.0.post20200814 requests-toolbelt/0.9.1 tqdm/4.49.0 CPython/3.8.5

File hashes

Hashes for quantecon-book-theme-0.2.1.tar.gz
Algorithm Hash digest
SHA256 d3ee1afc06fdbc8130341a5423e7663637d029896198738c816352d0b9a650ac
MD5 7142e5175f74cc6b2940d622221ee42c
BLAKE2b-256 41932a11a274a7b4b8e7ec6f99fe548171f0b27cd8e1ea2471da475730480a25

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: quantecon_book_theme-0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 20.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.6.0.post20200814 requests-toolbelt/0.9.1 tqdm/4.49.0 CPython/3.8.5

File hashes

Hashes for quantecon_book_theme-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 55bcc7669f6a7a0a1f71a6820c603e82021e097662aa34eef84aaf251adab231
MD5 cf912fcd01358b69ab9edb527d3d90ba
BLAKE2b-256 1a01a13a76e588dd4d2544897cb451674bdd524b99366699511eb2f885ade6a9

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