diff --git a/.github/workflows/cache.yml b/.github/workflows/cache.yml index 3ad063e..20b3a11 100644 --- a/.github/workflows/cache.yml +++ b/.github/workflows/cache.yml @@ -61,7 +61,7 @@ jobs: auto-update-conda: true auto-activate-base: true miniconda-version: 'latest' - python-version: 3.7 + python-version: 3.8 environment-file: environment.yml activate-environment: qe-lectures - name: Checkout QuantEcon theme diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 86d9b2c..1a26781 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -12,7 +12,7 @@ jobs: auto-update-conda: true auto-activate-base: true miniconda-version: 'latest' - python-version: 3.7 + python-version: 3.8 environment-file: environment.yml activate-environment: qe-lectures - name: Get Changed Files diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml index 2932d30..6c6df3e 100644 --- a/.github/workflows/coverage.yml +++ b/.github/workflows/coverage.yml @@ -15,7 +15,7 @@ jobs: auto-update-conda: true auto-activate-base: true miniconda-version: 'latest' - python-version: 3.7 + python-version: 3.8 environment-file: environment.yml activate-environment: qe-lectures - name: Run Execution Tests diff --git a/.github/workflows/deploy-s3.yml b/.github/workflows/deploy-s3.yml index e992ff9..f8f91d9 100644 --- a/.github/workflows/deploy-s3.yml +++ b/.github/workflows/deploy-s3.yml @@ -16,7 +16,7 @@ jobs: auto-update-conda: true auto-activate-base: true miniconda-version: 'latest' - python-version: 3.7 + python-version: 3.8 environment-file: environment.yml activate-environment: qe-lectures - name: Checkout QuantEcon theme diff --git a/.github/workflows/preview.yml b/.github/workflows/preview.yml index 875c238..18b563d 100644 --- a/.github/workflows/preview.yml +++ b/.github/workflows/preview.yml @@ -15,7 +15,7 @@ jobs: auto-update-conda: true auto-activate-base: true miniconda-version: 'latest' - python-version: 3.7 + python-version: 3.8 environment-file: environment.yml activate-environment: qe-lectures - name: Get Changed Files diff --git a/conf.py b/conf.py index fe5be86..fbcc8f9 100644 --- a/conf.py +++ b/conf.py @@ -40,6 +40,7 @@ 'IPython.sphinxext.ipython_console_highlighting', # Custom Sphinx Extensions 'sphinxcontrib.jupyter', + 'sphinx_tomyst', ] # Retired Extensions but may be useful in Future @@ -131,7 +132,7 @@ # The theme to use for HTML and HTML Help pages. See the documentation for # a list of builtin themes. -html_theme = 'qe-lectures' +html_theme = 'sphinx_book_theme' # Theme options are theme-specific and customize the look and feel of a theme # further. For a list of options available for each theme, see the @@ -139,7 +140,7 @@ #html_theme_options = {} # Add any paths that contain custom themes here, relative to this directory. -html_theme_path = ['_themes'] +# html_theme_path = ['_themes'] # The name for this set of Sphinx documents. If None, it defaults to # " v documentation". @@ -367,6 +368,8 @@ linkcheck_timeout = 30 +# {{ tomyst-remove-start }} + # -------------------------------------------- # jupyter Sphinx Extension conversion settings # -------------------------------------------- @@ -477,3 +480,13 @@ # pdf toc file jupyter_pdf_book_index = "index_toc" + +# tomyst Config + +# Set Destination path +tomyst_static_file_path = ['source/rst/_static'] +tomyst_parser = "myst_nb" +tomyst_conf_removeblocks = True +tomyst_conf_dropcontaining = ["sphinxcontrib.jupyter"] + +# {{ tomyst-remove-finish }} diff --git a/environment.yml b/environment.yml index ce9a617..0ac2d01 100644 --- a/environment.yml +++ b/environment.yml @@ -2,11 +2,12 @@ name: qe-lectures channels: - default dependencies: - - python=3.7 - - anaconda=2020.02 + - python=3.8 + - anaconda=2020.07 - pip - pip: - interpolation - sphinxcontrib-jupyter - sphinxcontrib-bibtex - - joblib \ No newline at end of file + - joblib + - git+https://github.com/executablebooks/sphinx-tomyst