-
Notifications
You must be signed in to change notification settings - Fork 63
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs: add multi-version support (#178)
* docs: add mike support * docs: update dev docs * ci: build and deploy mike docs * fix secret variable
- Loading branch information
Showing
8 changed files
with
55 additions
and
22 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 |
---|---|---|
|
@@ -3,8 +3,12 @@ name: Deploy Docs | |
on: | ||
workflow_dispatch: | ||
workflow_run: | ||
workflows: ["Release Workflow"] | ||
types: [completed] | ||
workflows: [ "Release Workflow" ] | ||
types: [ completed ] | ||
push: | ||
branches: | ||
- main | ||
- latest | ||
|
||
jobs: | ||
build: | ||
|
@@ -20,20 +24,29 @@ jobs: | |
python-version: '3.x' | ||
|
||
- name: Install mkdocs | ||
env: | ||
MKDOCSMAT_TOKEN: ${{ secrets.MKDOCSMAT_TOKEN }} | ||
run: | | ||
pip install \ | ||
mkdocs \ | ||
mkdocs-material \ | ||
md-toc | ||
mike \ | ||
md-toc \ | ||
git+https://[email protected]/squidfunk/mkdocs-material-insiders.git | ||
- name: Generate service config docs | ||
run: bash generate-service-config-docs.sh | ||
|
||
- name: Generate docs | ||
run: mkdocs build | ||
- name: Update env for docs (dev/main) | ||
if: ${{ github.ref == 'refs/heads/main' }} | ||
run: | | ||
echo "DOCS_EDIT_URI=/edit/main/docs/" >> $GITHUB_ENV | ||
echo "DOCS_VERSION=dev" >> $GITHUB_ENV | ||
- name: Publish docs | ||
uses: peaceiris/actions-gh-pages@v3 | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
publish_dir: ./site | ||
- name: Update env (latest) | ||
if: ${{ github.ref == 'refs/heads/latest' }} | ||
run: | | ||
echo "DOCS_EDIT_URI=/edit/latest/docs/" >> $GITHUB_ENV | ||
echo "DOCS_VERSION=latest" >> $GITHUB_ENV | ||
- name: Deploy docs | ||
run: mike deploy --push $DOCS_VERSION |
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,9 @@ | ||
{% extends "base.html" %} | ||
|
||
{% block outdated %} | ||
You're not viewing the latest version. | ||
<a href="{{ '../' ~ base_url }}"> | ||
|
||
<strong>Click here to go to latest.</strong> | ||
</a> | ||
{% endblock %} |
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 @@ | ||
# Generic | ||
|
||
## URL Format | ||
|
||
--8<-- "docs/services/generic/config.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
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,7 +1,7 @@ | ||
# Hangouts Chat | ||
|
||
Google Chat was previously known as *Hangouts Chat*. See [Google | ||
Chat](../googlechat.md). | ||
Chat](googlechat.md). | ||
|
||
Using `hangouts` in the service URL instead `googlechat` is still | ||
supported, although deprecated. |
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,6 @@ | ||
# Logger | ||
|
||
No configuration options are available for this service. | ||
|
||
It simply emits notifications to the Shoutrrr log which is | ||
configured by the consumer. |
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