-
Notifications
You must be signed in to change notification settings - Fork 29
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
1 parent
b600454
commit 90563e1
Showing
4 changed files
with
38 additions
and
10 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 |
---|---|---|
|
@@ -11,6 +11,7 @@ on: | |
- 'CONTRIBUTING.md' | ||
- 'docs/**' | ||
- 'mkdocs.yml' | ||
- '.github/workflows/deploy_mkdocs.yml' | ||
|
||
jobs: | ||
build: | ||
|
@@ -29,7 +30,7 @@ jobs: | |
run: | | ||
python -m pip install --upgrade pip | ||
python -m pip install -e ".[psycopg-binary]" | ||
python -m pip install nbconvert==6.5.3 mkdocs mkdocs-material mkdocs-jupyter pygments pdocs | ||
python -m pip install nbconvert==6.5.3 mkdocs mkdocs-material mkdocs-jupyter pygments pdocs mike | ||
- name: update API docs | ||
run: | | ||
|
@@ -47,5 +48,24 @@ jobs: | |
titiler.pgstac.settings \ | ||
titiler.pgstac.utils | ||
- name: Deploy docs | ||
run: mkdocs gh-deploy -f docs/mkdocs.yml --force | ||
- name: Set module version | ||
id: module | ||
run: | | ||
echo version=$(python -c'import titiler.pgstac; print(titiler.pgstac.__version__)') >> $GITHUB_OUTPUT | ||
- name: Configure Git user | ||
run: | | ||
git config user.name github-actions | ||
git config user.email [email protected] | ||
- name: Deploy documentation | ||
if: ${{ github.ref_type == 'branch' }} | ||
run: | | ||
mike deploy --push --update-aliases latest --config-file docs/mkdocs.yml | ||
mike set-default --push latest --config-file docs/mkdocs.yml | ||
- name: Deploy documentation and update alias for latest | ||
if: startsWith(github.event.ref, 'refs/tags') || github.event_name == 'release' | ||
run: | | ||
mike deploy --push --update-aliases ${{ steps.module.outputs.version}} latest --config-file docs/mkdocs.yml | ||
mike set-default --push latest --config-file docs/mkdocs.yml |
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,5 @@ | ||
:root { | ||
--md-primary-fg-color: rgb(61, 121, 153); | ||
--md-primary-fg-color--light: rgb(61, 121, 153); | ||
--md-primary-fg-color--dark: rgb(61, 121, 153); | ||
} |