Skip to content

Commit

Permalink
Docs book-theme custom css
Browse files Browse the repository at this point in the history
* Table row hover color not so "in your face"
* Adjust page title and top left title
* Leave some crap in css and conf.py to play around with, cleanup later
  • Loading branch information
JOJ0 committed Oct 4, 2024
1 parent 406bbd1 commit 1dbe654
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 4 deletions.
14 changes: 14 additions & 0 deletions doc/source/_static/synadm.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
/*
html[data-theme="light"] {
--pst-color-secondary: #a23632;
}
html[data-theme="light"] {
--pst-color-inline-code: #a23632;
}
*/
table tr:hover td {
background-color: var(--bs-gray-300);
}

/* pydata teal (primary): #126A7E */
/* pydata violet (secondary): #7D0E70 */
17 changes: 13 additions & 4 deletions doc/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,18 +61,27 @@
# a list of builtin themes.
#
html_theme = "sphinx_book_theme"
#html_theme = "pydata_sphinx_theme"
#html_theme = "furo"
#html_theme = "press"
#html_theme = "alabaster"

# 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".
# html_static_path = ['_static']

html_theme_options = {
'collapse_navigation': True,
'navigation_depth': 8,
'sticky_navigation': False,
'prev_next_buttons_location': 'bottom'
"collapse_navigation": True,
"logo": {
"text": "synadm - The Synapse Admin CLI",
},
"pygment_light_style": "bw",
}
html_title = "synadm"
#html_logo = "_static/beets_logo_nobg.png"
html_static_path = ["_static"]
html_css_files = ["synadm.css"]


# -- Extension configuration -------------------------------------------------

0 comments on commit 1dbe654

Please sign in to comment.