Skip to content

Commit

Permalink
Merge pull request #158 from JOJ0/dev
Browse files Browse the repository at this point in the history
Docs theme change
  • Loading branch information
JOJ0 authored Oct 15, 2024
2 parents 4c75e80 + 12b41a7 commit 2eddfa4
Show file tree
Hide file tree
Showing 4 changed files with 40 additions and 16 deletions.
11 changes: 11 additions & 0 deletions doc/source/_static/synadm.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
html {
--pst-font-size-base: 14px;
--pst-header-height: 3rem;
}

@media (prefers-reduced-motion) {
.bd-sidebar-primary, .bd-sidebar-secondary {
transition-duration: 0s;
}
}

41 changes: 27 additions & 14 deletions doc/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,23 +56,36 @@


# -- Options for HTML output -------------------------------------------------
html_theme = "pydata_sphinx_theme"

# The theme to use for HTML and HTML Help pages. See the documentation for
# a list of builtin themes.
#
html_theme = 'sphinx_rtd_theme'

# 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_context = {
"github_user": "JOJ0",
"github_repo": "synadm",
"github_version": "master",
"doc_path": "doc/source/",
}
html_theme_options = {
'collapse_navigation': True,
'navigation_depth': 8,
'sticky_navigation': False,
'prev_next_buttons_location': 'bottom'
"icon_links": [
{
"name": "GitHub",
"url": "https://github.com/JOJ0/synadm",
"icon": "fa-brands fa-github",
},
],
"use_edit_page_button": True,

# this is a weird hack that makes site headers not overflow (and be
# problematic), avoid changing without checking if the site header
# became bigger!
"navbar_align": "left",

"header_links_before_dropdown": 3,
"show_toc_level": 3,
"back_to_top_button": False,
}
html_title = "synadm"
html_static_path = ["_static"]
html_css_files = ["synadm.css"]


# -- Extension configuration -------------------------------------------------
2 changes: 1 addition & 1 deletion rtd_requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ requests==2.31.0
snowballstemmer==2.2.0
Sphinx==7.2.3
sphinx-click==5.0.1
sphinx-rtd-theme==1.3.0
pydata-sphinx-theme==0.15.4
sphinxcontrib-applehelp==1.0.7
sphinxcontrib-devhelp==1.0.5
sphinxcontrib-htmlhelp==2.0.4
Expand Down
2 changes: 1 addition & 1 deletion sphinx_requirements.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Jinja2<3.1
Sphinx
sphinx-click
sphinx-rtd-theme
pydata-sphinx-theme
myst-parser

0 comments on commit 2eddfa4

Please sign in to comment.