Switch docs theme to Furo, refs #1746

This commit is contained in:
Simon Willison 2022-05-20 13:34:51 -07:00
commit 1d33fd03b3
10 changed files with 72 additions and 84 deletions

View file

@ -90,18 +90,15 @@ todo_include_todos = False
# The theme to use for HTML and HTML Help pages. See the documentation for
# a list of builtin themes.
#
html_theme = "sphinx_rtd_theme"
html_theme = "furo"
# Theme options are theme-specific and customize the look and feel of a theme
# further. For a list of options available for each theme, see the
# documentation.
html_theme_options = {
"logo_only": True,
"style_nav_header_background": "white",
"prev_next_buttons_location": "both",
"sidebar_hide_name": True,
}
# 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,
# so a file named "default.css" will overwrite the builtin "default.css".
@ -112,20 +109,9 @@ html_logo = "datasette-logo.svg"
html_css_files = [
"css/custom.css",
]
# Custom sidebar templates, must be a dictionary that maps document names
# to template names.
#
# This is required for the alabaster theme
# refs: http://alabaster.readthedocs.io/en/latest/installation.html#sidebars
html_sidebars = {
"**": [
"relations.html", # needs 'show_related': True theme option to display
"searchbox.html",
]
}
html_js_files = [
"js/custom.js"
]
# -- Options for HTMLHelp output ------------------------------------------