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.

Contributing Guide

The docs for the contributing guide of this repository: https://github.com/QuantEcon/quantecon-book-theme/blob/master/docs/contributing.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.5.2.tar.gz (25.9 kB view details)

Uploaded Source

Built Distribution

quantecon_book_theme-0.5.2-py3-none-any.whl (26.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: quantecon-book-theme-0.5.2.tar.gz
  • Upload date:
  • Size: 25.9 kB
  • 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.5.2.tar.gz
Algorithm Hash digest
SHA256 3fa3dd3d0434440c135d1f3b71d8a7ff9044915f14825f1aace424fccfa6aa83
MD5 8c70b4cd9e064670a9e9031bc2f04415
BLAKE2b-256 5188e00ac7dd2205fd6a43d918e946283a0025713c3c7cbf0a033728fe019d98

See more details on using hashes here.

Provenance

File details

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

File metadata

File hashes

Hashes for quantecon_book_theme-0.5.2-py3-none-any.whl
Algorithm Hash digest
SHA256 f09753e9ec7b342dfc8ec5a91d20c2af04c0a6210b28a97701eac79a75b12937
MD5 5aed6f3255160295b9ed4522e7069bf8
BLAKE2b-256 ee2a8754cede99ced0db409c1879f6554553b187cf85e7cb31e2a6501c020b17

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