mirror of
https://github.com/Mayuri-Chan/pyrofork.git
synced 2026-01-05 06:44:51 +00:00
Documentation cleanup
This commit is contained in:
parent
3f0f2da4f0
commit
1ebc704146
3 changed files with 0 additions and 7 deletions
|
|
@ -21,8 +21,6 @@ import os
|
||||||
import re
|
import re
|
||||||
import shutil
|
import shutil
|
||||||
|
|
||||||
import pyrogram
|
|
||||||
|
|
||||||
HOME = "compiler/docs"
|
HOME = "compiler/docs"
|
||||||
DESTINATION = "docs/source/telegram"
|
DESTINATION = "docs/source/telegram"
|
||||||
PYROGRAM_API_DEST = "docs/source/api"
|
PYROGRAM_API_DEST = "docs/source/api"
|
||||||
|
|
@ -114,7 +112,6 @@ def generate(source_path, base):
|
||||||
toctree.format(
|
toctree.format(
|
||||||
title=k.title(),
|
title=k.title(),
|
||||||
title_markup="=" * len(k),
|
title_markup="=" * len(k),
|
||||||
layer=pyrogram.raw.all.layer,
|
|
||||||
module=module,
|
module=module,
|
||||||
entities="\n ".join(entities)
|
entities="\n ".join(entities)
|
||||||
)
|
)
|
||||||
|
|
|
||||||
2
compiler/docs/template/toctree.txt
vendored
2
compiler/docs/template/toctree.txt
vendored
|
|
@ -1,8 +1,6 @@
|
||||||
{title}
|
{title}
|
||||||
{title_markup}
|
{title_markup}
|
||||||
|
|
||||||
Layer {layer}
|
|
||||||
|
|
||||||
.. module:: {module}
|
.. module:: {module}
|
||||||
|
|
||||||
.. toctree::
|
.. toctree::
|
||||||
|
|
|
||||||
|
|
@ -133,8 +133,6 @@ def start():
|
||||||
with open("{}/all.py".format(DEST), "w", encoding="utf-8") as f:
|
with open("{}/all.py".format(DEST), "w", encoding="utf-8") as f:
|
||||||
f.write(re.sub("{count}", str(count), content))
|
f.write(re.sub("{count}", str(count), content))
|
||||||
|
|
||||||
print("Compiling Errors: [100%]")
|
|
||||||
|
|
||||||
|
|
||||||
if "__main__" == __name__:
|
if "__main__" == __name__:
|
||||||
HOME = "."
|
HOME = "."
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue