]> source.dussan.org Git - nextcloud-server.git/commitdiff
Add php docs build script
authorJulius Härtl <jus@bitgrid.net>
Wed, 26 Aug 2020 06:08:37 +0000 (08:08 +0200)
committerJulius Härtl <jus@bitgrid.net>
Wed, 26 Aug 2020 06:32:42 +0000 (08:32 +0200)
Signed-off-by: Julius Härtl <jus@bitgrid.net>
build/phpDocumentor.sh [new file with mode: 0755]

diff --git a/build/phpDocumentor.sh b/build/phpDocumentor.sh
new file mode 100755 (executable)
index 0000000..07a35ec
--- /dev/null
@@ -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`)"