From 463853efd92514b725c18daff9b9527f8da9951e Mon Sep 17 00:00:00 2001 From: Tim Stack Date: Sun, 3 Sep 2023 21:50:11 -0700 Subject: [PATCH] [docs] change to furo theme --- docs/requirements.txt | 1 + docs/source/_static/theme_overrides.css | 31 +------------------------ docs/source/conf.py | 5 ++-- 3 files changed, 4 insertions(+), 33 deletions(-) diff --git a/docs/requirements.txt b/docs/requirements.txt index 1d29e340..4567bf2c 100644 --- a/docs/requirements.txt +++ b/docs/requirements.txt @@ -1,3 +1,4 @@ +furo sphinx>=4.3.0 sphinx-copybutton sphinx-jsonschema diff --git a/docs/source/_static/theme_overrides.css b/docs/source/_static/theme_overrides.css index c25d308e..39a5db11 100644 --- a/docs/source/_static/theme_overrides.css +++ b/docs/source/_static/theme_overrides.css @@ -22,36 +22,7 @@ table.query-results p { font-size: 0.9em !important; } -DL DT:target, :target > H2, :target > H3, span:target + H2, span:target + H3 { - border: 0 !important; - border-bottom: 1px solid #d3d381 !important; - background: #ffc !important; - /* padding: 1em !important;*/ -} DL DT { - border: 0 !important; - background: inherit !important; - border-bottom: 1px solid #c3c0ee !important; - /* display: block !important; */ -} - -kbd { - padding: 0.1em 0.6em; - border: 1px solid #ccc; - font-size: 11px; - font-family: Arial, Helvetica, sans-serif; - background-color: #f7f7f7; - color: #333; - -moz-box-shadow: 0 1px 0px rgba(0, 0, 0, 0.2), 0 0 0 2px #ffffff inset; - -webkit-box-shadow: 0 1px 0px rgba(0, 0, 0, 0.2), 0 0 0 2px #ffffff inset; - box-shadow: 0 1px 0px rgba(0, 0, 0, 0.2), 0 0 0 2px #ffffff inset; - -moz-border-radius: 3px; - -webkit-border-radius: 3px; - border-radius: 3px; - display: inline-block; - margin: 0 0.1em 0.1em 0.1em; - text-shadow: 0 1px 0 #fff; - line-height: 1.4; - white-space: nowrap; + border-bottom: 1px solid #333 !important; } diff --git a/docs/source/conf.py b/docs/source/conf.py index bf16706a..69d5224e 100644 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -229,7 +229,6 @@ lexers['custsqlite'] = CustSqliteLexer(startinline=True) # coming with Sphinx (named 'sphinx.ext.*') or your custom ones. extensions = [ 'sphinx.ext.coverage', - "sphinx_rtd_theme", 'sphinx_copybutton', 'sphinx-jsonschema', 'sphinx-prompt', @@ -299,7 +298,7 @@ pygments_style = 'sphinx' # 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 @@ -312,7 +311,7 @@ html_theme_options = { # The name for this set of Sphinx documents. If None, it defaults to # " v documentation". -# html_title = None +html_title = f"lnav v{release}" # A shorter title for the navigation bar. Default is the same as html_title. # html_short_title = None