File tree Expand file tree Collapse file tree 4 files changed +70
-1
lines changed Expand file tree Collapse file tree 4 files changed +70
-1
lines changed Original file line number Diff line number Diff line change 1+ name : github-pages
2+ on :
3+ push :
4+ branches :
5+ - main
6+ permissions :
7+ contents : write
8+ jobs :
9+ deploy :
10+ runs-on : ubuntu-latest
11+ steps :
12+ - uses : actions/checkout@v4
13+ - name : Configure Git Credentials
14+ run : |
15+ git config user.name github-actions[bot]
16+ git config user.email 41898282+github-actions[bot]@users.noreply.github.com
17+ - uses : actions/setup-python@v5
18+ with :
19+ python-version : 3.x
20+ - run : echo "cache_id=$(date --utc '+%V')" >> $GITHUB_ENV
21+ - uses : actions/cache@v4
22+ with :
23+ key : mkdocs-material-${{ env.cache_id }}
24+ path : .cache
25+ restore-keys : |
26+ mkdocs-material-
27+ - run : pip install mkdocs-material
28+ - run : mkdocs gh-deploy --force
Original file line number Diff line number Diff line change @@ -80,3 +80,18 @@ docker-scan: ## scan Docker image
8080
8181.PHONY : ci-test-docker
8282ci-test-docker : docker-lint docker-build docker-run # # run CI test for Docker
83+
84+ # ---
85+ # Docs
86+ # ---
87+
88+ .PHONY : docs
89+ docs : # # build documentation
90+ poetry run mkdocs build
91+
92+ .PHONY : docs-serve
93+ docs-serve : # # serve documentation
94+ poetry run mkdocs serve
95+
96+ .PHONY : ci-test-docs
97+ ci-test-docs : docs # # run CI test for documentation
Original file line number Diff line number Diff line change 22[ ![ docker] ( https://github.com/ks6088ts-labs/workshop-azure-openai/actions/workflows/docker.yaml/badge.svg?branch=main )] ( https://github.com/ks6088ts-labs/workshop-azure-openai/actions/workflows/docker.yaml?query=branch%3Amain )
33[ ![ docker-release] ( https://github.com/ks6088ts-labs/workshop-azure-openai/actions/workflows/docker-release.yaml/badge.svg )] ( https://github.com/ks6088ts-labs/workshop-azure-openai/actions/workflows/docker-release.yaml )
44[ ![ ghcr] ( https://github.com/ks6088ts-labs/workshop-azure-openai/actions/workflows/ghcr.yaml/badge.svg )] ( https://github.com/ks6088ts-labs/workshop-azure-openai/actions/workflows/ghcr.yaml )
5+ [ ![ docs] ( https://github.com/ks6088ts-labs/workshop-azure-openai/actions/workflows/github-pages.yaml/badge.svg )] ( https://github.com/ks6088ts-labs/workshop-azure-openai/actions/workflows/github-pages.yaml )
56
67<!-- https://learn.microsoft.com/en-us/azure/azure-resource-manager/templates/deploy-to-azure-button -->
78
Original file line number Diff line number Diff line change 1- site_name : My Docs
1+ # yaml-language-server: $schema=https://squidfunk.github.io/mkdocs-material/schema.json
2+ site_name : Workshop for Azure OpenAI Service
3+ site_url : " "
4+ theme :
5+ name : material
6+ # https://squidfunk.github.io/mkdocs-material/setup/changing-the-colors/#automatic-light-dark-mode
7+ palette :
8+ # Palette toggle for automatic mode
9+ - media : " (prefers-color-scheme)"
10+ toggle :
11+ icon : material/brightness-auto
12+ name : Switch to light mode
13+
14+ # Palette toggle for light mode
15+ - media : " (prefers-color-scheme: light)"
16+ scheme : default
17+ toggle :
18+ icon : material/brightness-7
19+ name : Switch to dark mode
20+
21+ # Palette toggle for dark mode
22+ - media : " (prefers-color-scheme: dark)"
23+ scheme : slate
24+ toggle :
25+ icon : material/brightness-4
26+ name : Switch to system preference
You can’t perform that action at this time.
0 commit comments