Add php docs build script

Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
Julius Härtl 2020-08-26 08:08:37 +02:00
parent 348525426c
commit 1874349cb9
No known key found for this signature in database
GPG Key ID: 4C614C6ED2CDE6DF
1 changed files with 11 additions and 0 deletions

11
build/phpDocumentor.sh Executable file
View File

@ -0,0 +1,11 @@
#!/bin/bash
# Use a cached version of phpDocumentor for now since there is no release yet
# and the github actions artifacts might disappear
# This phar is downloaded from https://github.com/phpDocumentor/phpDocumentor/actions/runs/221599704
wget https://bitgrid.net/~jus/phpDocumentor.phar
mkdir -p api/
php7.4 phpDocumentor.phar -t "./api" -d "./lib/public" --title="Nextcloud PHP API (`git rev-parse --abbrev-ref HEAD`)"