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-26 08:32:42 +0200
commit8c33bfe86b53c9c18aaadef72a0d138e23165ae9 (patch)
tree64e8c156add9c533ac106d313f4be698e456cf8c /build
parent487d17dd5507a6b8d097625d1f62360a7c6379b4 (diff)
downloadnextcloud-server-8c33bfe86b53c9c18aaadef72a0d138e23165ae9.tar.gz
nextcloud-server-8c33bfe86b53c9c18aaadef72a0d138e23165ae9.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`)"