mirror of
https://github.com/Mayuri-Chan/pyrofork.git
synced 2026-01-07 15:34:52 +00:00
PyroFork: docs: Add usable by
Signed-off-by: wulan17 <wulan17@nusantararom.org>
This commit is contained in:
parent
261214ec1c
commit
8762c01669
6 changed files with 28 additions and 2 deletions
|
|
@ -1,6 +1,7 @@
|
||||||
pyston_lite-autoload
|
pyston_lite-autoload
|
||||||
sphinx
|
sphinx
|
||||||
sphinx_rtd_theme==1.2.2
|
sphinx_rtd_theme==1.2.2
|
||||||
|
sphinx-rtd-dark-mode
|
||||||
sphinx_copybutton
|
sphinx_copybutton
|
||||||
sphinx-autobuild
|
sphinx-autobuild
|
||||||
tgcrypto
|
tgcrypto
|
||||||
|
|
|
||||||
5
docs/source/_includes/usable-by/bots.rst
Normal file
5
docs/source/_includes/usable-by/bots.rst
Normal 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>
|
||||||
5
docs/source/_includes/usable-by/users-bots.rst
Normal file
5
docs/source/_includes/usable-by/users-bots.rst
Normal 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>
|
||||||
5
docs/source/_includes/usable-by/users.rst
Normal file
5
docs/source/_includes/usable-by/users.rst
Normal 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>
|
||||||
3
docs/source/_static/css/my.css
Normal file
3
docs/source/_static/css/my.css
Normal file
|
|
@ -0,0 +1,3 @@
|
||||||
|
.pre{
|
||||||
|
color: #bfbfbf;
|
||||||
|
}
|
||||||
|
|
@ -39,7 +39,8 @@ extensions = [
|
||||||
"sphinx.ext.napoleon",
|
"sphinx.ext.napoleon",
|
||||||
"sphinx.ext.autosummary",
|
"sphinx.ext.autosummary",
|
||||||
"sphinx.ext.intersphinx",
|
"sphinx.ext.intersphinx",
|
||||||
"sphinx_copybutton"
|
"sphinx_copybutton",
|
||||||
|
"sphinx_rtd_dark_mode"
|
||||||
]
|
]
|
||||||
|
|
||||||
intersphinx_mapping = {
|
intersphinx_mapping = {
|
||||||
|
|
@ -64,7 +65,7 @@ suppress_warnings = ["image.not_readable"]
|
||||||
|
|
||||||
html_title = "Pyrofork Documentation"
|
html_title = "Pyrofork Documentation"
|
||||||
html_theme = "sphinx_rtd_theme"
|
html_theme = "sphinx_rtd_theme"
|
||||||
html_static_path = ["../resources/static"]
|
html_static_path = ["../resources/static","_static"]
|
||||||
html_show_sourcelink = True
|
html_show_sourcelink = True
|
||||||
html_show_copyright = False
|
html_show_copyright = False
|
||||||
html_theme_options = {
|
html_theme_options = {
|
||||||
|
|
@ -90,3 +91,9 @@ latex_elements = {
|
||||||
\setmonofont{Ubuntu Mono}
|
\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",
|
||||||
|
]
|
||||||
Loading…
Reference in a new issue