Skip to content

Commit 0d05915

Browse files
committed
fix changes
1 parent 7faf6e4 commit 0d05915

File tree

1 file changed

+29
-33
lines changed

1 file changed

+29
-33
lines changed

docs/source/conf.py

Lines changed: 29 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
sys.path.insert(0, os.path.abspath("../.."))
2424

2525
from pyrogram import __version__
26+
from pyrogram.raw.all import layer
2627

2728
commit_id = subprocess.check_output([
2829
"git",
@@ -34,7 +35,7 @@
3435
project = "pyrotgfork"
3536
copyright = "2017-present, Dan"
3637
author = "Dan"
37-
version = __version__
38+
version = f"{__version__} Layer {layer}"
3839

3940
extensions = [
4041
"sphinx.ext.autodoc",
@@ -70,7 +71,7 @@
7071

7172
suppress_warnings = ["image.not_readable"]
7273

73-
html_title = f"Fork Pyrogram Documentation {version}"
74+
html_title = f"PyroTGFork {version}"
7475
html_theme = "furo"
7576
html_static_path = [os.path.abspath("static")]
7677
print("ABSOLUTE PATH", os.path.abspath("static"))
@@ -85,42 +86,37 @@
8586
html_theme_options = {
8687
"navigation_with_keys": True,
8788
"footer_icons": [
89+
{ # Github logo
90+
"name": "GitHub",
91+
"url": f"https://github.com/TelegramPlayGround/pyrogram/tree/{commit_id}",
92+
"class": "fa-brands fa-solid fa-github fa-2x",
93+
},
8894
{
8995
# Telegram channel logo
9096
"name": "Telegram Channel",
91-
"url": "https://Pyrogram.t.me",
92-
"html": (
93-
'<svg stroke="currentColor" fill="currentColor" stroke-width="0" '
94-
'viewBox="0 0 16 16" height="1em" width="1em" xmlns="http://www.w3.org/2000/svg">'
95-
'<path d="M16 8A8 8 0 1 1 0 8a8 8 0 0 1 16 0zM8.287 5.906c-.778.324-2.334.994'
96-
"-4.666 2.01-.378.15-.577.298-.595.442-.03.243.275.339.69.47l.175.055c.408.133."
97-
"958.288 1.243.294.26.006.549-.1.868-.32 2.179-1.471 3.304-2.214 3.374-2.23.0"
98-
"5-.012.12-.026.166.016.047.041.042.12.037.141-.03.129-1.227 1.241-1.846 1.81"
99-
"7-.193.18-.33.307-.358.336a8.154 8.154 0 0 1-.188.186c-.38.366-.664.64.015 1.08"
100-
"8.327.216.589.393.85.571.284.194.568.387.936.629.093.06.183.125.27.187.331.23"
101-
"6.63.448.997.414.214-.02.435-.22.547-.82.265-1.417.786-4.486.906-5.751a1.426 "
102-
"1.426 0 0 0-.013-.315.337.337 0 0 0-.114-.217.526.526 0 0 0-.31-.093c-.3.005-.7"
103-
'63.166-2.984 1.09z"></path></svg>'
104-
),
105-
"class": "",
97+
"url": "https://PyroTGFork.t.me/2",
98+
"class": "fa-brands fa-solid fa-telegram fa-2x",
10699
},
107-
{ # Github logo
108-
"name": "GitHub",
109-
"url": f"https://github.com/TelegramPlayGround/pyrogram/tree/{commit_id}",
110-
"html": (
111-
'<svg stroke="currentColor" fill="currentColor" stroke-width="0" '
112-
'viewBox="0 0 16 16"><path fill-rule="evenodd" d="M8 0C3.58 0 0 3.58 0 8c0 3.54 '
113-
"2.29 6.53 5.47 7.59.4.07.55-.17.55-.38 0-.19-.01-.82-.01-1.49-2.01.37-2.53-.4"
114-
"9-2.69-.94-.09-.23-.48-.94-.82-1.13-.28-.15-.68-.52-.01-.53.63-.01 1.08.58 1.23"
115-
".82.72 1.21 1.87.87 2.33.66.07-.52.28-.87.51-1.07-1.78-.2-3.64-.89-3.64-3.95 "
116-
"0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82.64-.18 1.32-.2"
117-
"7 2-.27.68 0 1.36.09 2 .27 1.53-1.04 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.5"
118-
"1.56.82 1.27.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48 0 1.07-.01 "
119-
'1.93-.01 2.2 0 .21.15.46.55.38A8.013 8.013 0 0 0 16 8c0-4.42-3.58-8-8-8z">'
120-
"</path></svg>"
121-
),
122-
"class": "",
100+
{
101+
"name": "",
102+
"url": "https://pypi.org/project/pyrotgfork/",
103+
"class": "fa-brands fa-solid fa-python fa-2x",
123104
},
105+
{
106+
"name": "",
107+
"url": "./releases/changes-in-this-fork.html",
108+
"class": "fa-brands fa-solid fa-file-invoice fa-2x"
109+
}
110+
]
111+
}
112+
html_sidebars = {
113+
"**": [
114+
"sidebar/search.html",
115+
"sidebar/scroll-start.html",
116+
"sidebar/navigation.html",
117+
# "sidebar/ethical-ads.html",
118+
"sidebar/scroll-end.html",
119+
"sidebar/brand.html",
124120
]
125121
}
126122
latex_engine = "xelatex"

0 commit comments

Comments
 (0)