Skip to content
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

Switch to a generator for our common-API registry as well. #1035

Merged
merged 4 commits into from
Feb 1, 2023

Conversation

jleibs
Copy link
Member

@jleibs jleibs commented Feb 1, 2023

I started hand-crafting this table and realized I'd rather let python to it. Now the whole "common" APIs section is generated dynamically from a single data-structure.

The top-level entry point is now a nicely generated table with just the first-line docstring summaries:
image

Checklist

  • I have read and agree to Contributor Guide and the Code of Conduct
  • I've included a screenshot or gif (if applicable)
  • I've added a line to CHANGELOG.md (if this is a big enough change to warrant it)

@jleibs jleibs marked this pull request as ready for review February 1, 2023 16:36
@@ -35,6 +35,7 @@ plugins:
merge_init_into_class: true
- gen-files: # https://oprypin.github.io/mkdocs-gen-files
scripts:
- docs/gen_common_index.py
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does order matter here_

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The scripts will run in order -- they don't have any cross-dependencies though.

rerun_py/docs/gen_common_index.py Outdated Show resolved Hide resolved
@jleibs jleibs merged commit 70c4dd5 into main Feb 1, 2023
@jleibs jleibs deleted the jleibs/gen_common_index branch February 1, 2023 18:33
@jleibs jleibs mentioned this pull request Feb 1, 2023
3 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants