2
0
mirror of https://github.com/pyrogram/pyrogram synced 2025-08-31 06:16:06 +00:00

Move single methods, types and bound-methods to separated pages

The resulting pages were huge and were also taking a while to load
This will improve docs navigation
This commit is contained in:
Dan
2019-07-09 19:03:46 +02:00
parent ee2d5b1315
commit efcf7d5503
9 changed files with 662 additions and 637 deletions

View File

@@ -40,7 +40,11 @@ with open("README.md", encoding="utf-8") as f:
class Clean(Command):
DIST = ["./build", "./dist", "./Pyrogram.egg-info"]
API = ["pyrogram/api/errors/exceptions", "pyrogram/api/functions", "pyrogram/api/types", "pyrogram/api/all.py"]
DOCS = ["docs/source/telegram", "docs/build"]
DOCS = [
"docs/source/telegram", "docs/build", "docs/source/api/methods", "docs/source/api/types",
"docs/source/api/bound-methods"
]
ALL = DIST + API + DOCS
description = "Clean generated files"
@@ -122,7 +126,6 @@ class Generate(Command):
if len(argv) > 1 and argv[1] in ["bdist_wheel", "install", "develop"]:
api_compiler.start()
error_compiler.start()
docs_compiler.start()
setup(
name="Pyrogram",