-
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.
- Loading branch information
Showing
18 changed files
with
1,487 additions
and
217 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,15 @@ | ||
#!/bin/sh | ||
# Set up a virtual environment with the required tools, build, and deploy the docs. | ||
# | ||
# Run from the root directory of the project as | ||
# .github/scripts/docs-build-deploy 'https://martinvonz.github.io' prerelease main | ||
# All arguments after the first are passed to `mike deploy`, run | ||
# `poetry run -- mike deploy --help` for options. Note that `mike deploy` | ||
# creates a commit directly on the `gh-pages` branch. | ||
set -ev | ||
|
||
export "SITE_URL_FOR_MKDOCS=$1"; shift | ||
# https://github.com/python-poetry/poetry/issues/1917 | ||
export PYTHON_KEYRING_BACKEND=keyring.backends.fail.Keyring | ||
poetry install # Only really needed once per environment unless there are updates | ||
poetry run -- mike deploy "$@" |
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,34 @@ | ||
name: website | ||
|
||
on: | ||
push: | ||
branches: | ||
- ilya-docs | ||
|
||
permissions: | ||
contents: write | ||
|
||
jobs: | ||
prerelease-docs-build-deploy: | ||
strategy: | ||
matrix: | ||
os: [ubuntu-latest] | ||
runs-on: ${{ matrix.os }} | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- run: "git fetch origin gh-pages --depth=1" | ||
- uses: actions/setup-python@v4 | ||
with: | ||
python-version: 3.11 | ||
- name: Install poetry | ||
uses: abatilo/actions-poetry@v2 | ||
with: | ||
poetry-version: latest | ||
- name: Install dependencies, compile and deploy docs | ||
run: | | ||
git config user.name jj-docs-bot | ||
git config user.email jj-docs-bot@users.noreply.github.io | ||
.github/scripts/docs-build-deploy 'https://ilyagr.github.io/jj' prerelease main --push | ||
- name: "Show `git diff --stat`" | ||
run: git diff --stat gh-pages^ gh-pages || echo "(No diffs)" |
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 |
---|---|---|
@@ -1,4 +1,5 @@ | ||
/target/ | ||
/rendered-docs | ||
.direnv | ||
.envrc | ||
# generated by nix build, nix-build | ||
|
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
Oops, something went wrong.