Skip to content

Commit dc1f491

Browse files
committed
feat: embed Markdown User Guide in framework distribution for coding agents
1 parent a3f2d71 commit dc1f491

2 files changed

Lines changed: 25 additions & 0 deletions

File tree

‎.github/workflows/deploy-distributables.yml‎

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,30 @@ jobs:
6666
- name: Chmod
6767
run: chmod +x ./source/.github/scripts/deploy-framework
6868

69+
- name: Setup Python
70+
uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3861523e4b97 # v7.0.0
71+
with:
72+
python-version: '3.12'
73+
74+
- name: Install Sphinx
75+
run: |
76+
python -m pip install --upgrade pip
77+
pip install -r ./source/user_guide_src/requirements.txt
78+
79+
# Convert the User Guide to Markdown so coding agents get
80+
# version-matched docs embedded in system/Docs
81+
- name: Build Markdown Docs for agents
82+
run: sphinx-build -b markdown -D exclude_patterns=_static/*,changelogs/*,images/* source build/markdown
83+
working-directory: ./source/user_guide_src
84+
85+
- name: Embed Markdown Docs into system/Docs
86+
run: |
87+
mkdir -p ./source/system/Docs
88+
cp -Rf ./source/user_guide_src/build/markdown/. ./source/system/Docs/
89+
90+
- name: Verify embedded docs
91+
run: test -f ./source/system/Docs/index.md
92+
6993
- name: Deploy
7094
env:
7195
PUSH_TOKEN: ${{ secrets.ACCESS_TOKEN }}

‎user_guide_src/requirements.txt‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
sphinx>=8.0.0,<9.0.0
2+
sphinx-markdown-builder>=0.6.0
23
sphinxcontrib-phpdomain>=0.11.0
34
docutils>=0.19
45
sphinx-rtd-theme>=3.0.0

0 commit comments

Comments
 (0)