|
16 | 16 | "sphinx_copybutton", |
17 | 17 | "sphinx_togglebutton", |
18 | 18 | "sphinxcontrib.bibtex", |
19 | | - "sphinx_thebe", |
20 | 19 | "sphinx.ext.autodoc", |
21 | 20 | "sphinx.ext.intersphinx", |
22 | 21 | "sphinx.ext.viewcode", |
23 | 22 | ] |
24 | 23 |
|
25 | | -# Add any paths that contain templates here, relative to this directory. |
26 | | -templates_path = ["_templates"] |
27 | | - |
28 | 24 | # List of patterns, relative to source directory, that match files and |
29 | 25 | # directories to ignore when looking for source files. |
30 | 26 | # This pattern also affects html_static_path and html_extra_path. |
|
43 | 39 |
|
44 | 40 | # -- Options for HTML output ------------------------------------------------- |
45 | 41 |
|
46 | | -# The theme to use for HTML and HTML Help pages. See the documentation for |
47 | | -# a list of builtin themes. |
48 | | -# |
49 | | -html_theme = "quantecon_book_theme" |
| 42 | +# The theme to use for HTML and HTML Help pages. |
| 43 | +# We use pydata-sphinx-theme for the documentation site itself, while |
| 44 | +# quantecon_book_theme is the theme being documented. |
| 45 | +html_theme = "pydata_sphinx_theme" |
50 | 46 | html_logo = "_static/qe-logo.png" |
51 | | -html_title = "Quantecon Book Theme" |
| 47 | +html_title = "QuantEcon Book Theme" |
52 | 48 | html_copy_source = True |
53 | 49 | html_sourcelink_suffix = "" |
54 | 50 | html_favicon = "_static/qe-logo.png" |
|
62 | 58 | # -- Togglebutton configuration ---------------------------------------------- |
63 | 59 | togglebutton_hint = "Show" |
64 | 60 | togglebutton_hint_hide = "Hide" |
65 | | -thebe_config = { |
66 | | - "repository_url": "https://github.com/binder-examples/jupyter-stacks-datascience", |
67 | | - "repository_branch": "master", |
68 | | -} |
69 | 61 |
|
70 | 62 | html_theme_options = { |
71 | | - "path_to_docs": "docs", |
72 | | - "repository_url": "https://github.com/QuantEcon/quantecon-book-theme", |
73 | | - # "repository_branch": "gh-pages", # For testing |
74 | | - "launch_buttons": { |
75 | | - "binderhub_url": "https://mybinder.org", |
76 | | - # "jupyterhub_url": "https://datahub.berkeley.edu", # For testing |
77 | | - "colab_url": "https://colab.research.google.com/", |
78 | | - "notebook_interface": "jupyterlab", |
79 | | - "thebe": True, |
80 | | - }, |
| 63 | + "github_url": "https://github.com/QuantEcon/quantecon-book-theme", |
81 | 64 | "use_edit_page_button": True, |
82 | | - "use_issues_button": True, |
83 | | - "use_repository_button": True, |
84 | | - "expand_sections": ["reference/index"], |
85 | | - # For testing |
86 | | - # "home_page_in_toc": True, |
87 | | - # "single_page": True |
88 | | - # "extra_footer": "<a href='https://google.com'>Test</a>", |
89 | | - # "extra_navbar": "<a href='https://google.com'>Test</a>", |
90 | | - # Uncomment to test Pygments built-in styles: |
91 | | - # "qetheme_code_style": False, |
| 65 | + "show_prev_next": True, |
| 66 | + "navigation_with_keys": False, |
| 67 | + "header_links_before_dropdown": 6, |
| 68 | + "icon_links": [ |
| 69 | + { |
| 70 | + "name": "PyPI", |
| 71 | + "url": "https://pypi.org/project/quantecon-book-theme/", |
| 72 | + "icon": "fas fa-box", |
| 73 | + }, |
| 74 | + ], |
92 | 75 | } |
93 | 76 |
|
94 | | -# Uncomment to test different Pygments styles: |
95 | | -# pygments_style = "monokai" |
| 77 | +html_context = { |
| 78 | + "github_user": "QuantEcon", |
| 79 | + "github_repo": "quantecon-book-theme", |
| 80 | + "github_version": "main", |
| 81 | + "doc_path": "docs", |
| 82 | +} |
96 | 83 |
|
97 | 84 | bibtex_bibfiles = ["references.bib"] |
98 | 85 | bibtex_reference_style = "author_year" |
0 commit comments