]> git.ipfire.org Git - thirdparty/psycopg.git/commitdiff
Furo style tweaked
authorDaniele Varrazzo <daniele.varrazzo@gmail.com>
Wed, 25 Nov 2020 20:24:29 +0000 (20:24 +0000)
committerDaniele Varrazzo <daniele.varrazzo@gmail.com>
Wed, 25 Nov 2020 22:53:15 +0000 (22:53 +0000)
- non smaller font in admonitions
- rubric styled.

docs/_static/psycopg.css
docs/conf.py

index 89880a197d3bf06485f0a90b60875ef8460b7aa0..c0c64646832fbc1e7eec65cc272b8d53b791417d 100644 (file)
@@ -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;
 }
index d542a8d8452e1a08f37ab2b2a961849a18ba2d1c..f885ba48605a25e3d46670e26159a2cc013e5d4e 100644 (file)
@@ -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": """
-        <a style=\"text-decoration: none; color: white;\" 
+        <a style=\"text-decoration: none; color: white;\"
            href=\"https://github.com/sponsors/dvarrazzo\">
-           <img height="24px" width="24px" src=\"_static/psycopg-48.png\"/> Sponsor psycopg3 on GitHub
+           <img height="24px" width="24px" src=\"_static/psycopg-48.png\"/>
+            Sponsor psycopg3 on GitHub
         </a>
     """,
-    "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,