|
45 | 45 | with: |
46 | 46 | ref: ${{ matrix.branch }} |
47 | 47 |
|
| 48 | + - name: Check out user documentation |
| 49 | + uses: actions/checkout@v4 |
| 50 | + with: |
| 51 | + repository: ibexa/documentation-user |
| 52 | + ref: ${{ matrix.branch }} |
| 53 | + path: user-docs |
| 54 | + |
48 | 55 | - name: Set up Python |
49 | 56 | uses: actions/setup-python@v3 |
50 | 57 | with: |
|
53 | 60 | - name: Install dependencies |
54 | 61 | run: | |
55 | 62 | python -m pip install --upgrade pip |
56 | | - pip install -r requirements.txt |
| 63 | + pip install -r requirements.txt -r user-docs/requirements.txt |
57 | 64 |
|
58 | 65 | - name: Setup PHP |
59 | 66 | uses: shivammathur/setup-php@v2 |
@@ -84,13 +91,17 @@ jobs: |
84 | 91 | with: |
85 | 92 | dependency-versions: highest |
86 | 93 |
|
87 | | - - name: Build documentation |
| 94 | + - name: Build developer documentation |
| 95 | + run: mkdocs build --strict |
| 96 | + |
| 97 | + - name: Build user documentation |
88 | 98 | run: mkdocs build --strict |
| 99 | + working-directory: user-docs |
89 | 100 |
|
90 | 101 | - name: Resolve PHP API classes to vendor paths |
91 | | - run: php tools/llm_package/dump_class_paths.php site class_paths.json |
| 102 | + run: php tools/llm_package/dump_class_paths.php site user-docs/site class_paths.json |
92 | 103 |
|
93 | | - - name: Build package Markdown (doc/, llms.txt) |
| 104 | + - name: Build package Markdown (developer/, user/) |
94 | 105 | run: python build_package_docs.py --version "${{ matrix.branch }}" |
95 | 106 |
|
96 | 107 | - name: Copy package README |
@@ -118,15 +129,15 @@ jobs: |
118 | 129 | run: | |
119 | 130 | # The generated Markdown is never committed/pushed to the branch itself (only |
120 | 131 | # tagged), so there's nothing on the branch to diff against — compare the freshly |
121 | | - # built content to what the last tag captured instead. -f because doc/ and |
122 | | - # llms.txt are gitignored to keep local builds out of the working tree. |
123 | | - git add -f doc llms.txt |
| 132 | + # built content to what the last tag captured instead. -f because developer/ and |
| 133 | + # user/ are gitignored to keep local builds out of the working tree. |
| 134 | + git add -f developer user |
124 | 135 | git add README.md |
125 | 136 | if [[ -z "$LATEST_TAG" ]]; then |
126 | 137 | echo "changed=true" >> "$GITHUB_OUTPUT" |
127 | 138 | # .agents (agent skills, tracked on the branch) is part of the package too; |
128 | 139 | # include it so skill-only edits also produce a release. |
129 | | - elif git diff --cached --quiet "$LATEST_TAG" -- doc llms.txt README.md .agents; then |
| 140 | + elif git diff --cached --quiet "$LATEST_TAG" -- developer user README.md .agents; then |
130 | 141 | echo "changed=false" >> "$GITHUB_OUTPUT" |
131 | 142 | else |
132 | 143 | echo "changed=true" >> "$GITHUB_OUTPUT" |
|
0 commit comments