PyroFork: docs: Add usable by

Signed-off-by: wulan17 <wulan17@nusantararom.org>
This commit is contained in:
wulan17 2023-08-18 01:39:17 +07:00
parent 261214ec1c
commit 8762c01669
No known key found for this signature in database
GPG key ID: 318CD6CD3A6AC0A5
6 changed files with 28 additions and 2 deletions

View file

@ -1,6 +1,7 @@
pyston_lite-autoload
sphinx
sphinx_rtd_theme==1.2.2
sphinx-rtd-dark-mode
sphinx_copybutton
sphinx-autobuild
tgcrypto

View file

@ -0,0 +1,5 @@
.. raw:: html
<strong>Usable by</strong>
<span class="usable-by"><i class="fa-solid fa-xmark" style="color: var(--color-red)"></i> Users</span>
<span class="usable-by"><i class="fa-solid fa-check" style="color: var(--color-green)"></i> Bots</span>

View file

@ -0,0 +1,5 @@
.. raw:: html
<strong>Usable by</strong>
<span class="usable-by"><i class="fa-solid fa-check" style="color: var(--color-green)"></i> Users</span>
<span class="usable-by"><i class="fa-solid fa-check" style="color: var(--color-green)"></i> Bots</span>

View file

@ -0,0 +1,5 @@
.. raw:: html
<strong>Usable by</strong>
<span class="usable-by"><i class="fa-solid fa-check" style="color: var(--color-green)"></i> Users</span>
<span class="usable-by"><i class="fa-solid fa-xmark" style="color: var(--color-red)"></i> Bots</span>

View file

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

View file

@ -39,7 +39,8 @@ extensions = [
"sphinx.ext.napoleon",
"sphinx.ext.autosummary",
"sphinx.ext.intersphinx",
"sphinx_copybutton"
"sphinx_copybutton",
"sphinx_rtd_dark_mode"
]
intersphinx_mapping = {
@ -64,7 +65,7 @@ suppress_warnings = ["image.not_readable"]
html_title = "Pyrofork Documentation"
html_theme = "sphinx_rtd_theme"
html_static_path = ["../resources/static"]
html_static_path = ["../resources/static","_static"]
html_show_sourcelink = True
html_show_copyright = False
html_theme_options = {
@ -90,3 +91,9 @@ latex_elements = {
\setmonofont{Ubuntu Mono}
"""
}
html_css_files = [
"css/my.css",
"https://docs.pyrogram.org/_static/css/custom.css",
"https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.1.2/css/all.min.css",
]