|
23 | 23 | sys.path.insert(0, os.path.abspath("../..")) |
24 | 24 |
|
25 | 25 | from pyrogram import __version__ |
| 26 | +from pyrogram.raw.all import layer |
26 | 27 |
|
27 | 28 | commit_id = subprocess.check_output([ |
28 | 29 | "git", |
|
34 | 35 | project = "pyrotgfork" |
35 | 36 | copyright = "2017-present, Dan" |
36 | 37 | author = "Dan" |
37 | | -version = __version__ |
| 38 | +version = f"{__version__} Layer {layer}" |
38 | 39 |
|
39 | 40 | extensions = [ |
40 | 41 | "sphinx.ext.autodoc", |
|
70 | 71 |
|
71 | 72 | suppress_warnings = ["image.not_readable"] |
72 | 73 |
|
73 | | -html_title = f"Fork Pyrogram Documentation {version}" |
| 74 | +html_title = f"PyroTGFork {version}" |
74 | 75 | html_theme = "furo" |
75 | 76 | html_static_path = [os.path.abspath("static")] |
76 | 77 | print("ABSOLUTE PATH", os.path.abspath("static")) |
|
85 | 86 | html_theme_options = { |
86 | 87 | "navigation_with_keys": True, |
87 | 88 | "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 | + }, |
88 | 94 | { |
89 | 95 | # Telegram channel logo |
90 | 96 | "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", |
106 | 99 | }, |
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", |
123 | 104 | }, |
124 | 105 | ] |
125 | 106 | } |
| 107 | +html_sidebars = { |
| 108 | + "**": [ |
| 109 | + "sidebar/brand.html", |
| 110 | + "sidebar/search.html", |
| 111 | + "sidebar/scroll-start.html", |
| 112 | + "sidebar/navigation.html", |
| 113 | + # "sidebar/ethical-ads.html", |
| 114 | + "sidebar/scroll-end.html", |
| 115 | + ] |
| 116 | +} |
126 | 117 | latex_engine = "xelatex" |
127 | 118 | latex_logo = os.path.abspath("static/img/pyrogram.png") |
128 | 119 | print("latex_logo", latex_logo) |
|
0 commit comments