From 1ebc7041464302ec2bf37cd701ffc712c27982f2 Mon Sep 17 00:00:00 2001 From: Dan <14043624+delivrance@users.noreply.github.com> Date: Sun, 24 Apr 2022 11:56:07 +0200 Subject: [PATCH] Documentation cleanup --- compiler/docs/compiler.py | 3 --- compiler/docs/template/toctree.txt | 2 -- compiler/errors/compiler.py | 2 -- 3 files changed, 7 deletions(-) diff --git a/compiler/docs/compiler.py b/compiler/docs/compiler.py index 3948df69..a03d2ee3 100644 --- a/compiler/docs/compiler.py +++ b/compiler/docs/compiler.py @@ -21,8 +21,6 @@ import os import re import shutil -import pyrogram - HOME = "compiler/docs" DESTINATION = "docs/source/telegram" PYROGRAM_API_DEST = "docs/source/api" @@ -114,7 +112,6 @@ def generate(source_path, base): toctree.format( title=k.title(), title_markup="=" * len(k), - layer=pyrogram.raw.all.layer, module=module, entities="\n ".join(entities) ) diff --git a/compiler/docs/template/toctree.txt b/compiler/docs/template/toctree.txt index cc2ca9ac..717276c4 100644 --- a/compiler/docs/template/toctree.txt +++ b/compiler/docs/template/toctree.txt @@ -1,8 +1,6 @@ {title} {title_markup} -Layer {layer} - .. module:: {module} .. toctree:: diff --git a/compiler/errors/compiler.py b/compiler/errors/compiler.py index d2c10104..0c4ef399 100644 --- a/compiler/errors/compiler.py +++ b/compiler/errors/compiler.py @@ -133,8 +133,6 @@ def start(): with open("{}/all.py".format(DEST), "w", encoding="utf-8") as f: f.write(re.sub("{count}", str(count), content)) - print("Compiling Errors: [100%]") - if "__main__" == __name__: HOME = "."