|
1 | 1 | # TODO: |
2 | | -# - Theming for Moodle |
3 | 2 | # - Document ALL code (below we exclude a bunch to try on a subset) |
| 3 | +# - Document all supported versions and redirect to latest // see notes at https://github.com/phpDocumentor/phpDocumentor/blob/master/tests/integration/phpDocumentor/Configuration/data/phpDocumentor3XMLWithMultipleVersions.xml |
4 | 4 |
|
5 | 5 | # Generate API docs and publish to GitHub Pages at phpdoc.moodledev.io |
6 | 6 | # |
7 | 7 | # How it works: |
| 8 | +# - Get phpdoc config into ./ |
8 | 9 | # - Get Moodle code into ./source |
| 10 | +# - Setup cache at ./phpdoc-cache |
9 | 11 | # - Build docs into ./docs |
10 | | -# - Cache to ./phpdoc-cache |
11 | 12 | # - Publish that to phpdoc.moodledev.io |
12 | 13 |
|
13 | 14 | name: Generate phpdoc.moodledev.io |
@@ -38,24 +39,15 @@ jobs: |
38 | 39 | group: ${{ github.workflow }}-${{ github.ref }} |
39 | 40 | cancel-in-progress: true |
40 | 41 | steps: |
41 | | -#TODO: add theming config and then uncomment this |
42 | | -# Not using anything in this repo yet |
43 | | -# - name: Checkout moodle/phpdoc |
44 | | -# uses: actions/checkout@v4 |
| 42 | + - name: Checkout moodle/phpdoc |
| 43 | + uses: actions/checkout@v4 |
45 | 44 |
|
46 | 45 | - name: Checkout moodle/moodle |
47 | 46 | uses: actions/checkout@v4 |
48 | 47 | with: |
49 | 48 | repository: moodle/moodle |
50 | 49 | path: source |
51 | 50 |
|
52 | | -#NOT USING NODE |
53 | | -#TODO: remove commented out lines |
54 | | -# - name: Setup Node |
55 | | -# uses: actions/setup-node@v4 |
56 | | -# with: |
57 | | -# node-version-file: '.moodle/.nvmrc' |
58 | | - |
59 | 51 | # Install phpDocumentator using PHIVE |
60 | 52 | # phpDocumentator recommends PHIVE as the preferred install strategy |
61 | 53 | # Source: https://github.com/phpDocumentor/phpDocumentor/blob/919d5c1ef42a3c74d050e05ce99add6efa87b5a4/README.md?plain=1#L79 |
|
90 | 82 | # Notice: -d xdebug.mode=off is required due to a bug/workaround |
91 | 83 | # Issue: https://github.com/phpDocumentor/phpDocumentor/issues/3642#issuecomment-1912354577 |
92 | 84 | - name: Build with phpDocumentor |
93 | | - run: php -d xdebug.mode=off ${{ github.workspace }}/tools/phpDocumentor run -vv -d source --target docs --cache-folder phpdoc-cache --template default --ignore source/lib --ignore source/admin --ignore source/mod --ignore source/blocks |
| 85 | + run: php -d xdebug.mode=off ${{ github.workspace }}/tools/phpDocumentor run -vv -d source --target docs --cache-folder phpdoc-cache --template default --ignore source/lib --ignore source/admin --ignore source/mod --ignore source/blocks --title Moodle PHP API |
94 | 86 |
|
95 | 87 | - name: Upload artifact to GitHub Pages |
96 | 88 | uses: actions/upload-pages-artifact@v3 |
|
0 commit comments