mirror of
https://github.com/Mayuri-Chan/pyrofork.git
synced 2025-12-29 12:04:51 +00:00
Pyrofork: Change docs theme to sphinx-immaterial
Signed-off-by: wulan17 <wulan17@nusantararom.org>
This commit is contained in:
parent
b88fa8a673
commit
c1598942ca
4 changed files with 44 additions and 15 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,3 +0,0 @@
|
|||
.pre{
|
||||
color: #bfbfbf;
|
||||
}
|
||||
|
|
@ -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",
|
||||
]
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Reference in a new issue