FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Autogenerate .rst file generation by harshil21 · Pull Request #5323 · python-telegram-bot/python-telegram-bot · GitHub

Autogenerate .rst file generation - #5323

Open
harshil21 wants to merge 4 commits into
doc-fixesfrom
docs-rst-duplication
Open

Autogenerate .rst file generation#5323
harshil21 wants to merge 4 commits into
doc-fixesfrom
docs-rst-duplication

Conversation

Copy link
Copy Markdown
Member

Closes #5309

There is now no longer a need to manually write out the .rst files! This PR also organizes the remaining .rst files into their respective categories, e.g. ext, or examples.

Docs for classes which used private bases like _BaseThumbedMedium have been changed temporarily to follow the same pattern as the normal telegram classes. This was done because #5279 will eliminate them and it makes this implementation easier if we don't have to account for it.

api_docs.py is where the logic lives, and was largely AI generated, but I did refine it over many prompts until my satisfaction for readability and maintainability.

TODO:

  • Autogen pages should not be checked into git, should probably go into a separate gitignored directory
  • Update roolsbot and other links to link to the new examples URL correctly. (Have the PR ready, merge just before v23 is released)
  • Merge only after the dataclasses implementation!

harshil21 added the ⚙️ documentation affected functionality: documentation label Aug 4, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

⚙️ documentation affected functionality: documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant


Back | FazBrowse Home | New Git URL