-
Notifications
You must be signed in to change notification settings - Fork 129
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1763 from jponge/build/use-uv-python-docs
build(docs): switch the Python toolchain to uv
- Loading branch information
Showing
8 changed files
with
574 additions
and
699 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
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 |
---|---|---|
|
@@ -16,21 +16,22 @@ jobs: | |
name: Checkout code | ||
with: | ||
fetch-depth: 0 # fetch all commits and branches for mike to work properly | ||
- name: Install uv | ||
uses: astral-sh/setup-uv@v4 | ||
- uses: actions/setup-python@v5 | ||
name: Set up Python | ||
with: | ||
python-version: 3.x | ||
- name: Tools setup | ||
python-version-file: "documentation/pyproject.toml" | ||
- name: Other tools setup | ||
run: | | ||
git config --global user.name "SmallRye CI" | ||
git config --global user.email "[email protected]" | ||
sudo snap install yq | ||
cd documentation | ||
pip install mkdocs-material | ||
pip install mike | ||
- name: Render docs and publish | ||
run: | | ||
export PROJECT_VERSION=$(cat .github/project.yml | yq eval '.release.current-version' -) | ||
cd documentation | ||
mike deploy --push --update-aliases $PROJECT_VERSION latest | ||
mike set-default --push latest | ||
uv sync --all-extras --dev | ||
uv run mkdocs build | ||
uv run mike deploy --push --update-aliases $PROJECT_VERSION latest | ||
uv run mike set-default --push latest |
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 @@ | ||
3.13 |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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,12 @@ | ||
[project] | ||
name = "mutiny-docs" | ||
version = "999" | ||
description = "Mutiny Documentation powered by MkDocs" | ||
readme = "README.md" | ||
requires-python = ">=3.13" | ||
dependencies = [ | ||
"mkdocs-material>=9.5.48", | ||
"mkdocs>=1.6.1", | ||
"mkdocs-macros-plugin>=1.3.7", | ||
"mike>=2.1.3", | ||
] |
Large diffs are not rendered by default.
Oops, something went wrong.