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

Uploaded Source

Built Distribution

quantecon_book_theme-0.2.2-py3-none-any.whl (23.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: quantecon-book-theme-0.2.2.tar.gz
  • Upload date:
  • Size: 22.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.4.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.0 CPython/3.7.10

File hashes

Hashes for quantecon-book-theme-0.2.2.tar.gz
Algorithm Hash digest
SHA256 50c7042b0268651b5774df47b7685f10a78a922b4cc3e414b0971b8af753ee83
MD5 71aafa48a7aa9f067fc4aa21fd8605f4
BLAKE2b-256 f4cb1f3a0e916ae99b47808b248ae2aa40fe158b2909ff148a0dafc500b80de5

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: quantecon_book_theme-0.2.2-py3-none-any.whl
  • Upload date:
  • Size: 23.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.4.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.0 CPython/3.7.10

File hashes

Hashes for quantecon_book_theme-0.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 e6c3941c69c9262abb559a424e71549c4517c1a0488224b912bf7875a2c465f3
MD5 ab37e9f3a688eb2753a4f2dcb6d688b5
BLAKE2b-256 bb60dc6c5d9b12b48bda3acc66e46081cf8da87847f43c5f557fa96ae015991a

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