Telethon icon indicating copy to clipboard operation
Telethon copied to clipboard

Clean-up online documentation generation code

Open Lonami opened this issue 4 years ago • 0 comments

The code that generates https://tl.telethon.dev is a mess and should be cleaned up. In particular, things like "here" being a link are a sign of poor accessibility (the link should be self-descriptive), and "bot index" inside a namespace (e.g. the "here" in https://tl.telethon.dev/methods/account/index.html) lead to a 404.

Generating the bot index should not rely on querying the filesystem and reading every single file to find out the title. The title should be known, and the paths to build the index should also be known even without writing to disk.

The 404's background colour is also different from the main page's background colour, which is distracting.

Lonami avatar Sep 11 '19 10:09 Lonami