Skip to content

Commit

Permalink
Add public doc versioning by "mike"
Browse files Browse the repository at this point in the history
test1
  • Loading branch information
Zijun Wang committed May 21, 2024
1 parent 57757ce commit 65c03ed
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 3 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/publish-doc.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: publish-doc

on:
push:
branches:
- main
jobs:
publish-docs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
persist-credentials: true
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.x'
- name: Configure git
run: |
git config --global user.email "[email protected]"
git config --global user.name "ci-bot"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install mkdocs-material mike
- name: Build
run: mike deploy 1.0.9 latest --update-aliases --push

7 changes: 4 additions & 3 deletions mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ repo_name: aws/aws-application-networking-k8s
repo_url: https://github.com/aws/aws-application-networking-k8s
edit_uri: edit/main/docs/
strict: true
site_url: https://www.gateway-api-controller.eks.aws.dev/


nav:
- Home: index.md
Expand Down Expand Up @@ -111,6 +113,5 @@ extra_javascript:

extra:
generator: false
# version:
# provider: mike #mike deploy --push --update-aliases 0.1 latest
# site_url: 'https://docs.example.com/'
version:
provider: mike

0 comments on commit 65c03ed

Please sign in to comment.