Pyrofork: Change docs theme to sphinx-immaterial

Signed-off-by: wulan17 <wulan17@nusantararom.org>
This commit is contained in:
wulan17 2023-12-08 02:55:34 +07:00
parent b88fa8a673
commit c1598942ca
No known key found for this signature in database
GPG key ID: 318CD6CD3A6AC0A5
4 changed files with 44 additions and 15 deletions

View file

@ -1 +1,15 @@
@import url("https://docs.pyrogram.org/_static/css/custom.css");
body{
--color-green: darkgreen;
--color-red: darkred;
}
.usable-by {
border: 1px ;
border-radius: .2em;
padding: 2px 5px;
background-color: #1a1c1e;
}
a {
text-decoration: none;
}

View file

@ -1,3 +0,0 @@
.pre{
color: #bfbfbf;
}

View file

@ -40,7 +40,7 @@ extensions = [
"sphinx.ext.autosummary",
"sphinx.ext.intersphinx",
"sphinx_copybutton",
"sphinx_rtd_dark_mode"
"sphinx_immaterial"
]
intersphinx_mapping = {
@ -64,17 +64,37 @@ copybutton_prompt_text = "$ "
suppress_warnings = ["image.not_readable"]
html_title = "Pyrofork Documentation"
html_theme = "sphinx_rtd_theme"
html_theme = "sphinx_immaterial"
html_static_path = ["../resources/static","_static"]
html_show_sourcelink = True
html_show_copyright = False
html_theme_options = {
"canonical_url": "https://pyrofork.mayuri.my.id/",
"collapse_navigation": True,
"sticky_navigation": False,
"logo_only": True,
"display_version": False,
"style_external_links": True
"icon": {
"repo": "fontawesome/brands/github",
"edit": "material/file-edit-outline",
},
"site_url": "https://pyrofork.mayuri.my.id/",
"repo_url": "https://github.com/Mayuri-Chan/pyrofork/",
"repo_name": "pyrofork",
"globaltoc_collapse": True,
"features": [
"navigation.expand",
"navigation.tabs",
"navigation.sections",
"navigation.top",
"search.share",
"toc.follow",
"toc.sticky",
"content.tabs.link",
"announce.dismiss",
],
"palette": [
{
"media": "(prefers-color-scheme: dark)",
"scheme": "slate"
}
],
"toc_title_is_page_title": True
}
html_logo = "../resources/static/img/pyrogram.png"
@ -93,7 +113,6 @@ latex_elements = {
}
html_css_files = [
"css/my.css",
"css/custom.css",
"css/all.min.css",
]

View file

@ -59,8 +59,7 @@ dev = [
docs = [
"sphinx",
"sphinx_rtd_theme==2.0.0",
"sphinx-rtd-dark-mode",
"sphinx-immaterial==0.11.9",
"sphinx_copybutton",
"sphinx-autobuild",
"tornado>=6.3.3"