Skip to content

Commit

Permalink
switch to insipid theme
Browse files Browse the repository at this point in the history
  • Loading branch information
carlogico committed Nov 21, 2024
1 parent dc2999e commit 05c03a4
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 13 deletions.
7 changes: 7 additions & 0 deletions docs/source/_templates/epub-button.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<div id="downloads">
Downloads:
<!-- <a href={{ pathto('_downloads/recipes.pdf', 1)|e }}
rel="nofollow">PDF</a> | -->
<a href={{ pathto('_downloads/Recipes.epub', 1)|e }}
rel="nofollow">Epub</a>
</div>
20 changes: 7 additions & 13 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
# documentation root, use os.path.abspath to make it absolute, like shown here.

import os
import sphinx_bootstrap_theme
from docutils.parsers.rst.directives.admonitions import BaseAdmonition
from docutils import nodes
from docutils.parsers.rst.roles import set_classes
Expand Down Expand Up @@ -77,18 +76,14 @@
# a list of builtin themes.
#

html_theme = 'insipid'
html_permalinks_icon = '#'
html_theme_options = {
'source_link_position': "footer",
'bootswatch_theme': "paper",
'navbar_pagenav': False,
'navbar_site_name': "Chapters",
'navbar_sidebarrel': False,
'bootstrap_version': "3",
'globaltoc_depth': -1
}

html_theme = 'bootstrap'
html_theme_path = sphinx_bootstrap_theme.get_html_theme_path()
'body_centered': True,
'breadcrumbs': True,
'left_buttons': ['search-button.html', 'epub-button.html'],
'show_insipid': False
}

# Add any paths that contain custom static files (such as style sheets) here,
# relative to this directory. They are copied after the builtin static files,
Expand Down Expand Up @@ -189,7 +184,6 @@ def setup(app):
app.add_directive('ingredients', Ingredients)
app.add_directive('procedure', Procedure)
app.add_directive('makes', Makes)
app.connect("html-page-context", add_buttonsData_to_context)


# -- Options for LaTeX output ---------------------------------------------
Expand Down

0 comments on commit 05c03a4

Please sign in to comment.