QuantEcon / sphinxcontrib-jupyter

A Sphinx Extension for Generating Jupyter Notebooks
BSD 3-Clause "New" or "Revised" License
76 stars 23 forks source link

Add test capability for configuration options #73

Open mmcky opened 6 years ago

mmcky commented 6 years ago

PR #72 will introduce the ability to compile a set of notebooks with and without a set of solutions.

However testing the configuration side is currently difficult as sphinx needs to be run based on a matrix of configuration settings. It would be nice however to have a test case for with and without solutions (i.e. two notebooks in ipynb references)

mmcky commented 6 years ago

See Issue #57

mmcky commented 6 years ago

Can we introduce a context manager? We will also need to know what to compare so may need to introduce a configuration matrix such that:

jupyter_drop_solutions = True  :  solutions_2.ipynb

otherwise we can generate conf.py from a template and use yaml for specifying a CI configuration set of tests:

A:
   sphinxcontrib-jupyter:
        options : { jupyter_drop_solutions = True }
        ipynb : {solutions_2.ipynb }
mmcky commented 6 years ago

@jlperla just moved your comments to an individual issue. Thanks for the writeup.