-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use the tool_template repo to create docs (#15)
* Use the tool_template repo to create docs Signed-off-by: Fabrice Normandin <normandf@mila.quebec> * Update the build hook Signed-off-by: Fabrice Normandin <normandf@mila.quebec> * Use `uvx pre-commit` in the linting step Signed-off-by: Fabrice Normandin <normandf@mila.quebec> * Fix for broken docformatter hook - PyCQA/docformatter#293 Signed-off-by: Fabrice Normandin <fabrice.normandin@gmail.com> --------- Signed-off-by: Fabrice Normandin <normandf@mila.quebec> Signed-off-by: Fabrice Normandin <fabrice.normandin@gmail.com>
- Loading branch information
Showing
10 changed files
with
660 additions
and
109 deletions.
There are no files selected for viewing
This file contains 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,8 @@ | ||
# Changes here will be overwritten by Copier | ||
_commit: v0.0.3-2-ge44104f | ||
_src_path: gh:lebrice/tool_template | ||
project_description: Automagically generate yaml schemas for your Hydra config files. | ||
python_version: '3.10' | ||
tool_name: hydra_auto_schema | ||
your_email: fabrice.normandin@gmail.com | ||
your_name: Fabrice Normandin |
This file contains 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 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,35 @@ | ||
name: Publish docs via GitHub Pages | ||
on: | ||
push: | ||
branches: | ||
- master | ||
|
||
jobs: | ||
build: | ||
name: Deploy docs | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
- name: Install the latest version of uv | ||
uses: astral-sh/setup-uv@v3 | ||
with: | ||
version: "latest" | ||
enable-cache: true # no need, uses the local uv cache. | ||
# https://github.com/astral-sh/setup-uv?tab=readme-ov-file#github-authentication-token | ||
github-token: ${{ secrets.GITHUB_TOKEN }} | ||
cache-suffix: "3.10" | ||
|
||
- name: Pin python-version | ||
run: uv python pin 3.10 | ||
|
||
- name: Install dependencies | ||
run: uv sync --extra docs --frozen | ||
|
||
- name: Deploy docs | ||
run: uv run mkdocs gh-deploy --force | ||
# note: Checking if we really need the one below: | ||
# uses: mhausenblas/mkdocs-deploy-gh-pages@1.9 | ||
# # Or use mhausenblas/mkdocs-deploy-gh-pages@nomaterial to build without the mkdocs-material theme | ||
# env: | ||
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
This file contains 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 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 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 @@ | ||
../README.md |
This file contains 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 @@ | ||
::: hydra_auto_schema |
This file contains 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,35 @@ | ||
site_name: hydra_auto_schema Documentation | ||
theme: | ||
name: material | ||
|
||
markdown_extensions: | ||
- pymdownx.highlight: # https://squidfunk.github.io/mkdocs-material/reference/code-blocks/#configuration | ||
anchor_linenums: true | ||
line_spans: __span | ||
pygments_lang_class: true | ||
- pymdownx.inlinehilite | ||
- pymdownx.snippets | ||
- pymdownx.superfences | ||
- pymdownx.magiclink | ||
|
||
|
||
plugins: | ||
- search | ||
- mkdocstrings: | ||
handlers: | ||
python: | ||
import: | ||
- https://docs.pytest.org/en/stable/objects.inv | ||
- https://docs.python.org/3/objects.inv | ||
options: | ||
docstring_style: google | ||
members_order: source | ||
annotations_path: brief | ||
show_docstring_attributes: true | ||
modernize_annotations: true | ||
show_source: false | ||
show_submodules: false | ||
separate_signature: true | ||
signature_crossrefs: true | ||
show_signature_annotations: true | ||
allow_inspection: true |
This file contains 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.