Metadata-Version: 2.1
Name: quantecon-book-theme
Version: 0.7.2
Summary: A clean book theme for scientific explanations and documentation with Sphinx
Maintainer-Email: Executable Books Team <executablebooks@gmail.com>
License: BSD 3-Clause License
        
        Copyright (c) 2020, QuantEcon
        All rights reserved.
        
        Redistribution and use in source and binary forms, with or without
        modification, are permitted provided that the following conditions are met:
        
        1. Redistributions of source code must retain the above copyright notice, this
           list of conditions and the following disclaimer.
        
        2. Redistributions in binary form must reproduce the above copyright notice,
           this list of conditions and the following disclaimer in the documentation
           and/or other materials provided with the distribution.
        
        3. Neither the name of the copyright holder nor the names of its
           contributors may be used to endorse or promote products derived from
           this software without specific prior written permission.
        
        THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
        AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
        IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
        DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
        FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
        DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
        SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
        CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
        OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
        OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
Classifier: Development Status :: 4 - Beta
Classifier: Programming Language :: Python :: 3
Classifier: Framework :: Sphinx
Classifier: Framework :: Sphinx :: Theme
Classifier: License :: OSI Approved :: BSD License
Classifier: Operating System :: OS Independent
Project-URL: Repository, https://github.com/QuantEcon/quantecon-book-theme
Requires-Python: >=3.7
Requires-Dist: pyyaml
Requires-Dist: sphinx<7,>=4
Requires-Dist: docutils==0.17.1
Requires-Dist: click
Requires-Dist: libsass~=0.20.1
Requires-Dist: sphinx_book_theme~=1.0.1
Requires-Dist: beautifulsoup4
Requires-Dist: flake8<3.8.0,>=3.7.0; extra == "code-style"
Requires-Dist: black; extra == "code-style"
Requires-Dist: pre-commit; extra == "code-style"
Requires-Dist: folium; extra == "doc"
Requires-Dist: numpy; extra == "doc"
Requires-Dist: matplotlib; extra == "doc"
Requires-Dist: ipywidgets; extra == "doc"
Requires-Dist: pandas; extra == "doc"
Requires-Dist: nbclient; extra == "doc"
Requires-Dist: myst-nb; extra == "doc"
Requires-Dist: sphinx-togglebutton>=0.2.1; extra == "doc"
Requires-Dist: sphinx-thebe; extra == "doc"
Requires-Dist: sphinx-copybutton; extra == "doc"
Requires-Dist: docutils==0.17.1; extra == "doc"
Requires-Dist: plotly; extra == "doc"
Requires-Dist: sphinxcontrib-bibtex<=2.5.0,>=2.2.0; extra == "doc"
Requires-Dist: myst_nb; extra == "test"
Requires-Dist: coverage; extra == "test"
Requires-Dist: pytest; extra == "test"
Requires-Dist: pytest-cov; extra == "test"
Requires-Dist: beautifulsoup4; extra == "test"
Requires-Dist: sphinx_thebe; extra == "test"
Requires-Dist: pytest-regressions; extra == "test"
Requires-Dist: sphinx_copybutton; extra == "test"
Requires-Dist: sphinx_togglebutton; extra == "test"
Provides-Extra: code-style
Provides-Extra: doc
Provides-Extra: test
Description-Content-Type: text/markdown

# quantecon-book-theme
A Jupyter Book Theme for QuantEcon Book Style Projects

## Usage

To use this theme in [Jupyter Book](https://github.com/executablebooks/jupyter-book):

1. Install the theme

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

2. Add the theme to your `_config.yml` file:

  ```yaml
  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
