-
Notifications
You must be signed in to change notification settings - Fork 3.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: automatically generate docs for all rst files in the repo #33997
Conversation
@thezaeemaanwar I tried to build the docs locally with this and got the following when I ran
Do you have this working locally? Did I miss some steps? |
d931699
to
ac7cdc4
Compare
458119a
to
d49b7d3
Compare
fix: args in generate_toctree method fix: custom_toctree file path fix: param issues fix: file open mode
87eea2a
to
ef50730
Compare
Resolved and fixed all the issues @feanil |
@thezaeemaanwar yea, we'll want the option to exclude specific files, but we can add that when we need it, maybe just leave a comment in conf.py near where you think it will make the most sense to add that logic. |
Closing on account of |
Generate docs for all rst files in edx-platform
Implementation Issue: #33950
Planning Issue: #33047
How it works?
The method
find_rst_files
finds and returns all the rest files in repository. Another method writes all these file paths in the form of a toctree in acustom_toctree.rst
file. This custom toctree is included in index.rst which acts as the entry point while building.