summaryrefslogtreecommitdiffstats
path: root/build
diff options
context:
space:
mode:
authorJulius Härtl <jus@bitgrid.net>2020-08-26 08:08:37 +0200
committerJulius Härtl <jus@bitgrid.net>2020-08-27 09:16:08 +0200
commit779e6c3b5d8a6341d0bea60cfd3900b65dcb2748 (patch)
treefe7e36318b77cb26ed423777fb29f53e5badedae /build
parent3077047029424e4c2c9e1ccd504e265e4835621a (diff)
downloadnextcloud-server-779e6c3b5d8a6341d0bea60cfd3900b65dcb2748.tar.gz
nextcloud-server-779e6c3b5d8a6341d0bea60cfd3900b65dcb2748.zip
Add php docs build script
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'build')
-rwxr-xr-xbuild/phpDocumentor.sh11
1 files changed, 11 insertions, 0 deletions
diff --git a/build/phpDocumentor.sh b/build/phpDocumentor.sh
new file mode 100755
index 00000000000..07a35ece2d6
--- /dev/null
+++ b/build/phpDocumentor.sh
@@ -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`)"