mirror of
https://github.com/pyrogram/pyrogram
synced 2025-08-31 14:25:55 +00:00
Documentation improvements
This commit is contained in:
@@ -21,6 +21,8 @@ import os
|
||||
import re
|
||||
import shutil
|
||||
|
||||
import pyrogram
|
||||
|
||||
HOME = "compiler/docs"
|
||||
DESTINATION = "docs/source/telegram"
|
||||
PYROGRAM_API_DEST = "docs/source/api"
|
||||
@@ -112,6 +114,7 @@ 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)
|
||||
)
|
||||
|
2
compiler/docs/template/toctree.txt
vendored
2
compiler/docs/template/toctree.txt
vendored
@@ -1,6 +1,8 @@
|
||||
{title}
|
||||
{title_markup}
|
||||
|
||||
Layer {layer}
|
||||
|
||||
.. module:: {module}
|
||||
|
||||
.. toctree::
|
||||
|
Reference in New Issue
Block a user