Skip to content

Commit 4704727

Browse files
committed
glob
1 parent 0ad7599 commit 4704727

16 files changed

+43
-3114
lines changed

.github/workflows/publish-apidocs.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -80,10 +80,10 @@ jobs:
8080
# TODO: remove the ignores below, they speed up the runs for quick evaluation while we're setting this up
8181
# Notice: -d xdebug.mode=off is required due to a bug/workaround
8282
# Issue: https://github.com/phpDocumentor/phpDocumentor/issues/3642#issuecomment-1912354577
83-
# TODO: have a nicer way to specify excludes
83+
# See ignores implicitly loaded from phpdoc.dist.xml
8484
# excludes from https://github.com/moodle/phpdoc/blob/929083a815c1f7e95c540173e7549810f6d4a598/scripts/generate_phpdoc.sh#L27-L48
8585
- name: Build with phpDocumentor
86-
run: php -d xdebug.mode=off ${{ github.workspace }}/tools/phpDocumentor run -vv -d source --target docs --cache-folder phpdoc-cache --template default --title 'Moodle PHP API' --ignore source/lib/pear --ignore source/**/tests/*_test.php --ignore **/tests/fixtures --ignore source/**/vendor --ignore source/**/amd --ignore source/**/yui
86+
run: php -d xdebug.mode=off ${{ github.workspace }}/tools/phpDocumentor run -d source --target docs --cache-folder phpdoc-cache --template default --title 'Moodle PHP API'
8787

8888
- name: Count files and get disk space
8989
run: |

.gitignore

+5-3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1-
build
2-
Doxygen.*
3-
logs
1+
/source
2+
/docs
3+
/phpdoc-cache
4+
/.phive
5+
/tools

index.foot.tpl

-4
This file was deleted.

index.head.tpl

-13
This file was deleted.

phpdoc.dist.xml

+36
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<phpdocumentor xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3+
xsi:noNamespaceSchemaLocation="https://www.phpdoc.org/phpDocumentor.xsd"
4+
configVersion="3.0">
5+
6+
<title>Moodle PHP API</title>
7+
8+
<paths>
9+
<output>docs</output>
10+
<cache>phpdoc-cache</cache>
11+
</paths>
12+
13+
<template name="default" />
14+
15+
<version number="4.3">
16+
<folder>4.3</folder>
17+
<api dsn=".">
18+
<source>
19+
<path>source</path>
20+
</source>
21+
<ignore>
22+
<path>lib/pear</path>
23+
<path>**/tests/*_test.php</path>
24+
<path>**/tests/fixtures</path>
25+
<path>**/vendor</path>
26+
<path>**/amd</path>
27+
<path>**/yui</path>
28+
<path>**/lang</path>
29+
</ignore>
30+
<extensions>
31+
<extension>php</extension>
32+
</extensions>
33+
</api>
34+
</version>
35+
36+
</phpdocumentor>

0 commit comments

Comments
 (0)