Customizing the Theme #130
Replies: 5 comments 7 replies
-
I'd recommend checking out this page for now: https://jupyterbook.org/advanced/sphinx.html#custom-css-or-javascript |
Beta Was this translation helpful? Give feedback.
-
Not sure it's the correct approach, but you can fork sphinx-book-theme and make changes to the jinja2 templates (for example: I found I also had to bump the version number and fork jupyter-book to change the pinning to force use of my modified theme -- so that my requirements.txt file looks like this: |
Beta Was this translation helpful? Give feedback.
-
@choldgraf -- one thing that confused me when I was looking at whether I could just put a new html_theme in config.py was the hardwired import of sphinx_book_theme here: |
Beta Was this translation helpful? Give feedback.
-
What jupyter-book 'features' or 'improvements' would I lose by |
Beta Was this translation helpful? Give feedback.
-
A question related to the above: I would like to include a custom Jinja template within the standard JupyterBook/sphinx-book-theme. This template is only applied to a handful of MD files, which function as supplemental/standalone content relative to the main book. My main reason for wanting to build them as part the JupyterBook build is to avoid a separate workflow (involving Jekyll or similar). Per the Sphinx documentation, I put my custom template in a
However, this method seems to have overwritten some other templates path, because I'm now getting the following error on build:
I don't see a Any ideas as to how I can include a single custom template without forking the theme itself? Thanks for your help! |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi Team,
I understood that Jupyter Book uses the https://github.com/executablebooks/sphinx-book-theme by default. I would like to make some customization to the layout, footer, navbar etc in the sphinx-book-theme. I would like to customize the theme. How can I achieve that in Jupyter Book?
Beta Was this translation helpful? Give feedback.
All reactions