-
Notifications
You must be signed in to change notification settings - Fork 0
Hla 1093 jsonschema docs #58
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
Merged
Merged
Changes from all commits
Commits
Show all changes
24 commits
Select commit
Hold shift + click to select a range
5275ce8
Update to latest Copier template
MJGaughran 91be1bd
Ignore module __all__ when generating API docs
MichaelStubbings e4b9570
Update Python dependencies
MJGaughran 66faff3
Consistency edits for issues discovered by Claude
MJGaughran fcd970e
Fix RST indentation error in ParentModel docstring
MJGaughran bf5405c
Resolve unresolved cross-references in docstrings
MJGaughran 337b166
Ignore unresolvable generic and type-alias references in docs
MJGaughran 6045a5a
Render Pydantic models with autodoc-pydantic
MJGaughran 31f25e0
Add docstrings to undocumented public API symbols
MJGaughran 934ed76
Resolve pydantic.BaseModel via intersphinx for docs
MJGaughran 50f1989
Render schema pages without regex patterns
MJGaughran 0dc6ba7
Name the constrained mount-point type to fix docs annotation rendering
MJGaughran db5bf99
Add Live Preview extension to help with viewing docs
MJGaughran 47a0761
Indicate module-internal helpers as private with underscore prefix
MJGaughran cd45154
Document public methods of Layout and the builder classes
MJGaughran 5047a85
Add generated CLI reference to docs
MJGaughran 00590e7
Clarify autosummary config in docs
MJGaughran e3eb287
Fix broken description field in schema
MJGaughran cfb238c
Fix schema generation for Module
MJGaughran cf17eb9
Convert autogenerated schema docs from .md to .rst
MJGaughran feb2ce8
Remove generated Module schema docs that are duplicated by Release
MJGaughran 3523085
Merge branch 'main' into HLA-1093-jsonschema-docs
MJGaughran 07bb84a
Remove Deployment from schema docs build
MJGaughran fe0fc61
Remove additionalProperties from JSON Schema docs
MJGaughran 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
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
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,9 @@ | ||
| # Command-line interface | ||
|
|
||
| `deploy-tools` is driven entirely through its command-line interface. | ||
|
|
||
| ```{typer} deploy_tools.__main__:app | ||
| :prog: deploy-tools | ||
| :make-sections: | ||
| :show-nested: | ||
| ``` |
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
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,27 @@ | ||
| # JSON Schema files | ||
|
|
||
| These JSON schema files are generated from the Pydantic models in `src/deploy_tools/models`. | ||
|
|
||
| They are used by the YAML language server and other tooling to validate deployment configuration files. | ||
|
|
||
| This section links to per-schema reference pages which render the schema and list the individual | ||
| properties as tables. | ||
|
|
||
| ## Schema pages | ||
|
|
||
| ```{toctree} | ||
| :maxdepth: 1 | ||
|
|
||
| schemas/deployment-settings | ||
| schemas/release | ||
| ``` | ||
|
|
||
| ## How the schemas are generated | ||
|
|
||
| The `deploy_tools.models.schema.generate_schema` function writes these files from the corresponding Pydantic models. | ||
|
|
||
| To regenerate them manually: | ||
|
|
||
| ```bash | ||
| deploy-tools schema path/to/output/folder | ||
| ``` |
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,4 @@ | ||
| .. default-role:: literal | ||
|
|
||
| .. jsonschema:: ../../src/deploy_tools/models/schemas/deployment-settings.json | ||
| :hide_key: /**/additionalProperties |
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,4 @@ | ||
| .. default-role:: literal | ||
|
|
||
| .. jsonschema:: ../../src/deploy_tools/models/schemas/release.json | ||
| :hide_key: /**/pattern,/**/additionalProperties |
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
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
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
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.