File tree Expand file tree Collapse file tree 3 files changed +7
-6
lines changed Expand file tree Collapse file tree 3 files changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -28,14 +28,15 @@ jobs:
28
28
run : |
29
29
# Create temp directory for fresh docs
30
30
mkdir -p temp/code-reference
31
- # Generate fresh documentation
32
- php docs/bin/generate-parsed-md.php --output=temp/code-reference
31
+
32
+ # Run full docs workflow with new output directory
33
+ DOCS_OUTPUT_DIR=temp/code-reference composer run docs
33
34
34
35
- name : Compare documentation
35
36
run : |
36
37
# Compare generated docs with existing docs
37
- if ! diff -r --ignore-all-space --ignore-blank-lines docs/code-reference temp/code-reference; then
38
+ if ! diff -r --ignore-all-space --ignore-blank-lines --ignore-matching-lines='^<https.*>$' docs/code-reference temp/code-reference; then
38
39
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 ."
40
+ echo "::error::The markdown files are generated from PHP docblocks - please update the source code documentation instead ."
40
41
exit 1
41
42
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" : [
Original file line number Diff line number Diff line change @@ -158,7 +158,7 @@ public function generate() {
158
158
*/
159
159
private function process_file ( $ file ) {
160
160
$ code = file_get_contents ( $ file ->getRealPath () );
161
- $ ast = $ this ->parser ->parse ( $ code );
161
+ $ ast = $ this ->parser ->Parse ( $ code );
162
162
163
163
if ( ! $ ast ) {
164
164
return ;
You can’t perform that action at this time.
0 commit comments