From: Daniele Varrazzo Date: Wed, 25 Nov 2020 20:24:29 +0000 (+0000) Subject: Furo style tweaked X-Git-Tag: 3.0.dev0~308^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c7ecf500be3178c92da2a974e40b3321fcb3c2f9;p=thirdparty%2Fpsycopg.git Furo style tweaked - non smaller font in admonitions - rubric styled. --- diff --git a/docs/_static/psycopg.css b/docs/_static/psycopg.css index 89880a197..c0c646468 100644 --- a/docs/_static/psycopg.css +++ b/docs/_static/psycopg.css @@ -1,20 +1,6 @@ -.hint { - background: #ffc; - border: 1px solid #dda; -} - -/* more compact errors table */ -#sqlstate-exceptions table p { - margin: 0; -} - -/* more compact data types table */ -table.data-types p, -table.data-types div.line-block { - margin: 0; -} - -/* less space between enum values */ -dl.attribute { - margin-bottom: 1rem; +/* style rubric in furo + * TODO: remove after https://github.com/pradyunsg/furo/issues/33 fixed */ +p.rubric { + font-size: 1.2rem; + font-weight: bold; } diff --git a/docs/conf.py b/docs/conf.py index d542a8d84..f885ba486 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -52,6 +52,8 @@ exclude_patterns = ["_build", "Thumbs.db", ".DS_Store", ".venv"] # -- Options for HTML output ------------------------------------------------- +html_css_files = ["psycopg.css"] + # The name of the Pygments (syntax highlighting) style to use. pygments_style = "friendly" @@ -62,14 +64,18 @@ html_theme = "furo" html_show_sphinx = False html_theme_options = { "announcement": """ - - Sponsor psycopg3 on GitHub + + Sponsor psycopg3 on GitHub """, - "sidebar_hide_name": True, + "sidebar_hide_name": False, "light_logo": "psycopg-100.png", "dark_logo": "psycopg-100.png", + "light_css_variables": { + "admonition-font-size": "1rem", + }, } # Add any paths that contain custom static files (such as style sheets) here,