Skip to content

Commit 299d1dc

Browse files
authored
Merge pull request #169 from ks6088ts-labs/feature/issue-85_add-docs-site
add docs on GitHub Pages
2 parents bc7d669 + e8cdac0 commit 299d1dc

25 files changed

+346
-43
lines changed
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
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

.github/workflows/test.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@ jobs:
1616
platform:
1717
- "ubuntu-latest"
1818
- "macos-latest"
19-
- "windows-latest"
19+
# FIXME: "windows-latest" is not supported for now
20+
# - "windows-latest"
2021
python-version:
2122
- "3.10"
2223
runs-on: ${{ matrix.platform }}

Makefile

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,3 +80,18 @@ docker-scan: ## scan Docker image
8080

8181
.PHONY: ci-test-docker
8282
ci-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

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
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

apps/10_streamlit_batch_transcription/README.md renamed to docs/apps/10_streamlit_batch_transcription.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Call Batch Transcription API with Streamlit
1+
# 10. Call Batch Transcription API with Streamlit
22

33
This is a Streamlit app that calls Azure AI Speech Batch Transcription API.
44

@@ -36,7 +36,7 @@ $ python -m streamlit run apps/10_streamlit_batch_transcription/main.py
3636

3737
### Example
3838

39-
![Streamlit](../../docs/images/10_streamlit_batch_transcription.main.png)
39+
![Streamlit](../images/10_streamlit_batch_transcription.main.png)
4040

4141
## References
4242

apps/11_promptflow/README.md renamed to docs/apps/11_promptflow.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Getting Started with Prompt flow
1+
# 11. Getting Started with Prompt flow
22

33
This application explains how to get started with [Prompt flow](https://github.com/microsoft/promptflow), a Python library that provides a simple and easy way to build conversational AI applications.
44

apps/12_langgraph_agent/README.md renamed to docs/apps/12_langgraph_agent.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Create agents with LangGraph
1+
# 12. Create agents with LangGraph
22

33
This app demonstrates how to implement agents with LangGraph.
44

@@ -49,7 +49,7 @@ python apps/12_langgraph_agent/advanced_rag_flows/ingestion.py
4949
python apps/12_langgraph_agent/advanced_rag_flows/main.py
5050
```
5151

52-
![Advanced RAG Flows](../../docs/images/12_langgraph_agent_graph.png)
52+
![Advanced RAG Flows](../images/12_langgraph_agent_graph.png)
5353

5454
## References
5555

apps/13_langchain_toolkits/README.md renamed to docs/apps/13_langchain_toolkits.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# LangChain Toolkits sample applications
1+
# 13. LangChain Toolkits sample applications
22

33
This app demonstrates how to use LangChain Toolkits.
44

apps/14_streamlit_azure_ai_speech/README.md renamed to docs/apps/14_streamlit_azure_ai_speech.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Realtime transcription with Azure AI Speech Service
1+
# 14. Realtime transcription with Azure AI Speech Service
22

33
This app demonstrates how to use Azure AI Speech Service for realtime transcription.
44

apps/15_streamlit_chat_slm/README.md renamed to docs/apps/15_streamlit_chat_slm.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Streamlit Chat with SLM
1+
# 15. Streamlit Chat with SLM
22

33
## Overview
44

0 commit comments

Comments
 (0)