|
66 | 66 | # The theme to use for HTML and HTML Help pages. See the documentation for |
67 | 67 | # a list of builtin themes. |
68 | 68 | # |
69 | | -html_theme = "sphinx_rtd_theme" |
70 | | - |
71 | | -# Theme options are theme-specific and customize the look and feel of a theme |
72 | | -# further. For a list of options available for each theme, see the |
73 | | -# documentation. |
74 | | -# html_theme_options = { |
75 | | -# "github_url": "https://github.com/xarray-contrib/xoak", |
76 | | -# "use_edit_page_button": True, |
77 | | -# "search_bar_position": "navbar", |
78 | | -# } |
79 | | - |
| 69 | +html_theme = "sphinx_book_theme" |
| 70 | +html_title = "Xoak" |
| 71 | + |
| 72 | +html_theme_options = dict( |
| 73 | + repository_url="https://github.com/xarray-contrib/xoak", |
| 74 | + repository_branch="master", |
| 75 | + path_to_docs="doc", |
| 76 | + use_edit_page_button=True, |
| 77 | + use_repository_button=True, |
| 78 | + use_issues_button=True, |
| 79 | + home_page_in_toc=False, |
| 80 | +) |
80 | 81 |
|
81 | 82 | html_context = { |
82 | 83 | "github_user": "xarray-contrib", |
|
85 | 86 | "doc_path": "doc", |
86 | 87 | } |
87 | 88 |
|
88 | | -# Add any paths that contain custom static files (such as style sheets) here, |
89 | | -# relative to this directory. They are copied after the builtin static files, |
90 | | -# so a file named "default.css" will overwrite the builtin "default.css". |
91 | 89 | html_static_path = ["_static"] |
| 90 | +html_css_files = ["style.css"] |
92 | 91 |
|
93 | | - |
94 | | -# Enable notebook execution |
95 | | -# https://nbsphinx.readthedocs.io/en/0.4.2/never-execute.html |
96 | | -# nbsphinx_execute = 'auto' |
97 | | -# Allow errors in all notebooks by |
98 | | -# nbsphinx_allow_errors = True |
99 | 92 | nbsphinx_kernel_name = "python3" |
100 | | - |
101 | | -# Disable cell timeout |
102 | 93 | nbsphinx_timeout = -1 |
103 | | - |
104 | 94 | nbsphinx_prolog = """ |
105 | 95 | {% set docname = env.doc2path(env.docname, base=None) %} |
106 | 96 |
|
|
0 commit comments