Skip to content

Commit c2eff2b

Browse files
authored
use glob pattern for docs (#134)
* update, remove using library for mkdocs, use glob properly, do not run deploy on PR Signed-off-by: Filinto Duran <[email protected]> * simplify if Signed-off-by: Filinto Duran <[email protected]> --------- Signed-off-by: Filinto Duran <[email protected]>
1 parent c4b1f7c commit c2eff2b

File tree

2 files changed

+12
-6
lines changed

2 files changed

+12
-6
lines changed

.github/workflows/docs.yml

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@ on:
44
branches:
55
- main
66
paths:
7-
- docs
7+
- docs/**
88
pull_request:
99
branches:
1010
- main
1111
paths:
12-
- docs
12+
- docs/**
1313
workflow_dispatch:
1414
permissions:
1515
contents: write
@@ -42,18 +42,24 @@ jobs:
4242
- name: Remove plugins from mkdocs configuration
4343
run: |
4444
sed -i '/^plugins:/,/^[^ ]/d' mkdocs.yml
45-
- name: Run MkDocs build
46-
uses: Kjuly/mkdocs-page-builder@main
45+
- name: Install Python dependencies
46+
run: |
47+
pip install mkdocs-material
48+
pip install .[recommended,git,imaging]
49+
pip install mkdocs-jupyter
50+
- name: Validate build
51+
run: mkdocs build
4752

4853
deploy:
54+
if: github.ref == 'refs/heads/main'
4955
runs-on: ubuntu-latest
5056
needs: documentation_validation
5157
steps:
5258
- uses: actions/checkout@v4
5359
- uses: actions/setup-python@v5
5460
with:
5561
python-version: 3.x
56-
- run: echo "cache_id=$(date --utc '+%V')" >> $GITHUB_ENV
62+
- run: echo "cache_id=$(date --utc '+%V')" >> $GITHUB_ENV
5763
- uses: actions/cache@v4
5864
with:
5965
key: mkdocs-material-${{ env.cache_id }}

docs/concepts/agents.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,4 +121,4 @@ The LLM-Based Workflow relies on the reasoning capabilities of an LLM to dynamic
121121
* Chat History: Previous agent responses and interactions.
122122
* Agent Metadata: Attributes like expertise, availability, or priorities.
123123

124-
This approach ensures that the most suitable agent is selected for each task, optimizing collaboration and efficiency. For example, in a multi-agent customer support system, the LLM can assign tasks to agents based on customer issues, agent expertise, and workload distribution.
124+
This approach ensures that the most suitable agent is selected for each task, optimizing collaboration and efficiency. For example, in a multi-agent customer support system, the LLM can assign tasks to agents based on customer issues, agent expertise, and workload distribution.

0 commit comments

Comments
 (0)