forked from aquasecurity/starboard
-
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.
chore: Integrate MkDocs with jimporter/mike (aquasecurity#372)
Resolves: aquasecurity#308 Signed-off-by: Daniel Pacak <pacak.daniel@gmail.com>
- Loading branch information
1 parent
057c751
commit 3912678
Showing
8 changed files
with
69 additions
and
29 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 |
---|---|---|
@@ -1,17 +1,36 @@ | ||
# This is a manually triggered workflow to build and publish the MkDocs from the | ||
# main branch to GitHub pages at https://aquasecurity.github.io/starboard. | ||
name: Manually deploy MkDocs | ||
name: Deploy documentation | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
version: | ||
description: Version to be deployed | ||
required: true | ||
|
||
jobs: | ||
deploy: | ||
name: Deploy MkDocs | ||
name: Deploy documentation | ||
runs-on: ubuntu-18.04 | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v1 | ||
- name: Deploy MkDocs | ||
uses: mhausenblas/mkdocs-deploy-gh-pages@master | ||
- name: Checkout main | ||
uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 | ||
persist-credentials: true | ||
- uses: actions/setup-python@v2 | ||
with: | ||
python-version: 3.x | ||
- run: | | ||
pip install git+https://${GH_TOKEN}@github.com/squidfunk/mkdocs-material-insiders.git | ||
pip install mike | ||
pip install mkdocs-macros-plugin | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
# Note: It is not the same as ${{ secrets.GITHUB_TOKEN }} ! | ||
GH_TOKEN: ${{ secrets.MKDOCS_GH_TOKEN }} | ||
- run: | | ||
git config user.name "Daniel Pacak" | ||
git config user.email "pacak.daniel@gmail.com" | ||
- run: | | ||
mike deploy --push --update-aliases ${{ github.event.inputs.version }} 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
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,10 @@ | ||
FROM squidfunk/mkdocs-material | ||
|
||
## If you want to see exactly the same version as is published to GitHub pages | ||
## use a private image for insiders, which requires authentication. | ||
|
||
# docker login -u ${GITHUB_USERNAME} -p ${GITHUB_TOKEN} ghcr.io | ||
# FROM ghcr.io/squidfunk/mkdocs-material-insiders | ||
|
||
RUN pip install mike | ||
RUN pip install mkdocs-macros-plugin |
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
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