-
Couldn't load subscription status.
- Fork 6
ci: add api doc generation #481
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
Open
a-delannoy
wants to merge
25
commits into
stable
Choose a base branch
from
ady-add-api-doc-generation
base: stable
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 23 commits
Commits
Show all changes
25 commits
Select commit
Hold shift + click to select a range
d69b7f6
docs: generate API docs
a-delannoy 36610dd
docs: fix docusaurus interpretation of mdx files with Icon in it
a-delannoy 89511ae
docs: configure docusaurus sidebar
a-delannoy 469bf19
chore: add invoke task to generate the documentation
a-delannoy 9b881e8
build: add mdxify package
a-delannoy c016809
ci: add a rule for checking the SDK API obsolescence
a-delannoy 1484494
style: fix some python lint error
a-delannoy 1acb7b0
style: fix some mispelling and style issue in docstrings
a-delannoy ff31be5
docs: update API documentation
a-delannoy 9d0a674
style: fix linting issues in the generated documentation
a-delannoy ce543b8
ci: update the CI rule to fix linting on the generated documentation
a-delannoy 0619e37
build: move mdxify to dev group in poetry
a-delannoy f733340
ci: update the CI rule to install markdownlint for properly fixing ge…
a-delannoy d017fcf
ci: troubleshoot CI rule
a-delannoy 0703af8
docs: update docs after rebase
a-delannoy 9f99440
ci: resume git diff check
a-delannoy ed095d2
ci: exclude the newly generated documentation from vale inspection
a-delannoy fb08b5f
docs: update API docs after rebasing
a-delannoy 4980873
ci: fine tune find command
a-delannoy e101d9a
chore: add towncrier changelog fragment for #201
a-delannoy 9f13b94
docs: relocate the API reference on the sidebar
a-delannoy 59a7645
refactor: update invoke task for generate API docs
a-delannoy cf30309
docs: update the documentation to only a specified subset
a-delannoy 2321af2
Merge branch 'stable' into ady-add-api-doc-generation
a-delannoy a0a8686
docs: update documentation
a-delannoy File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| Add support for automatic Python SDK API from docstrings in the code. |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd add this as an invoke command too so that it's consistent with how we do it in other repos.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you elaborate a bit about which part here you'd add as an invoke command ?
For now, I added an invoke command to generate the API docs.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I mean that we can run
poetry run invoke generate-sdk-api-docsto generate the docs but then have another command to validate. It could simplify to also have a shortcut for the git diff like we have here:https://github.com/opsmill/infrahub/blob/infrahub-v1.3.4/tasks/backend.py#L176
This part isn't critical though just a suggestion.