File tree 2 files changed +11
-6
lines changed
2 files changed +11
-6
lines changed Original file line number Diff line number Diff line change @@ -22,20 +22,25 @@ jobs:
22
22
coverage : none
23
23
24
24
- name : Install dependencies
25
- run : composer install --prefer-dist --no-progress
25
+ run : |
26
+ # Install PHP dependencies
27
+ composer install --prefer-dist --no-progress
28
+ # Install Node.js dependencies
29
+ npm ci
26
30
27
31
- name : Generate fresh documentation
28
32
run : |
29
33
# Create temp directory for fresh docs
30
34
mkdir -p temp/code-reference
31
- # Generate fresh documentation
32
- php docs/bin/generate-parsed-md.php --output=temp/code-reference
35
+
36
+ # Run full docs workflow with new output directory
37
+ DOCS_OUTPUT_DIR=temp/code-reference composer run docs
33
38
34
39
- name : Compare documentation
35
40
run : |
36
41
# Compare generated docs with existing docs
37
- if ! diff -r --ignore-all-space --ignore-blank-lines docs/code-reference temp/code-reference; then
42
+ if ! diff -r --ignore-all-space --ignore-blank-lines --ignore-matching-lines='^<https.*>$' docs/code-reference temp/code-reference; then
38
43
echo "::error::Documentation in docs/code-reference does not match what would be generated from source code."
39
- echo "::error::Please update the source code documentation instead of modifying the generated files directly ."
44
+ echo "::error::The markdown files are generated from PHP docblocks - please update the source code documentation instead ."
40
45
exit 1
41
46
fi
Original file line number Diff line number Diff line change 23
23
"scripts" : {
24
24
"docs:manifest" : " php docs/bin/generate-manifest.php" ,
25
25
"docs:links" : " php docs/bin/update-markdown-links.php" ,
26
- "docs:parse" : " php docs/bin/generate-parsed-md.php" ,
26
+ "docs:parse" : " php docs/bin/generate-parsed-md.php --output=${DOCS_OUTPUT_DIR:-docs/code-reference} " ,
27
27
"docs:fix" : " npm run fix:md" ,
28
28
"docs:lint" : " npm run lint:md" ,
29
29
"docs" : [
You can’t perform that action at this time.
0 commit comments