2
0
mirror of https://github.com/pyrogram/pyrogram synced 2025-08-23 10:28:00 +00:00

Documentation cleanup

This commit is contained in:
Dan 2022-04-24 11:56:07 +02:00
parent 3f0f2da4f0
commit 1ebc704146
3 changed files with 0 additions and 7 deletions

View File

@ -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)
) )

View File

@ -1,8 +1,6 @@
{title} {title}
{title_markup} {title_markup}
Layer {layer}
.. module:: {module} .. module:: {module}
.. toctree:: .. toctree::

View File

@ -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 = "."