You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: ARCHITECTURE.md
+7-1
Original file line number
Diff line number
Diff line change
@@ -17,7 +17,10 @@ This folder contains all of the source files for this theme, and most changes to
17
17
This module does things like load in Sphinx's default HTML for the sidebar, and modify it in order to have dropdown nested lists.
18
18
It also inserts several variables into the Jinja template context that are then used in our HTML templates.
19
19
20
-
`launch.py`
20
+
`header_buttons/`
21
+
: Scripts to generate metadata for buttons in the header. We use [Jinja Macros](https://jinja.palletsprojects.com/en/3.0.x/templates/) (in the `macros/` folder) to generate the HTML for header buttons. The scripts in `header_buttons/` generate the data structure that is used to generate buttons with these macros (in the `header-article.html` template).
22
+
23
+
`header_buttons/launch.py`
21
24
: Logic to create the correct URLs for our launch buttons. This basically means building the URL for a given launch service in a proper fashion.
22
25
23
26
The other folders in this section are described in the next few sections.
@@ -31,6 +34,9 @@ These follow the [`sphinx-basic-ng` template structure](https://sphinx-basic-ng.
31
34
32
35
-`layout.html` inherits from the [pydata sphinx theme](https://pydata-sphinx-theme.readthedocs.io/) and modifies several sections.
33
36
-`theme.conf` contains the Sphinx configuration file for this theme.
37
+
-`macros/` contains HTML templates that define Jinja macros
38
+
-`sections/` contains HTML templates for major sections of the page.
39
+
-`components/` contains HTML templates for smaller, self-contained parts of the page.
Copy file name to clipboardExpand all lines: CHANGELOG.md
+1-1
Original file line number
Diff line number
Diff line change
@@ -160,7 +160,7 @@ This updates to the latest PyData Sphinx Theme, which re-works some of the HTML
160
160
### New features added
161
161
162
162
- Added tag for cell-input [#259](https://github.com/executablebooks/sphinx-book-theme/pull/259) ([@AakashGfude](https://github.com/AakashGfude))
163
-
- Add a shadow to topbar, on scroll [#255](https://github.com/executablebooks/sphinx-book-theme/pull/255) ([@pradyunsg](https://github.com/pradyunsg))
163
+
- Add a shadow to header, on scroll [#255](https://github.com/executablebooks/sphinx-book-theme/pull/255) ([@pradyunsg](https://github.com/pradyunsg))
164
164
- Add CSS to center align images with class [#292](https://github.com/executablebooks/sphinx-book-theme/pull/292) ([@DrDrij](https://github.com/DrDrij))
Copy file name to clipboardExpand all lines: docs/customize/index.md
+4-4
Original file line number
Diff line number
Diff line change
@@ -26,16 +26,16 @@ The following options are available via `html_theme_options`
26
26
- Branch of the repository for the documentation (e.g., `master`, `main`, `docs`). See [](source-files:repository).
27
27
* - `use_issues_button`
28
28
- bool
29
-
- Add an button in the topbar with a link to issues for the repository (used in conjunction with `repository_url` and `repository_branch`). See [](source-files:repository).
29
+
- Add an button in the header with a link to issues for the repository (used in conjunction with `repository_url` and `repository_branch`). See [](source-files:repository).
30
30
* - `use_download_button`
31
31
- bool
32
-
- Add a button in the topbar to download the source file of the page. See [](customize:source-files).
32
+
- Add a button in the header to download the source file of the page. See [](customize:source-files).
33
33
* - `use_fullscreen_button`
34
34
- bool
35
-
- Add a button in the topbar to trigger full-screen mode.
35
+
- Add a button in the header to trigger full-screen mode.
36
36
* - `use_repository_button`
37
37
- bool
38
-
- Add a button in the topbar that links to the repository of the documentation.See [](source-files:repository).
38
+
- Add a button in the header that links to the repository of the documentation.See [](source-files:repository).
39
39
* - `launch_buttons`
40
40
- bool
41
41
- Include Binder launch buttons for pages that were built from Jupyter Notebooks. See [](customize:launch).
0 commit comments