File tree Expand file tree Collapse file tree 1 file changed +13
-13
lines changed
Expand file tree Collapse file tree 1 file changed +13
-13
lines changed Original file line number Diff line number Diff line change @@ -76,21 +76,21 @@ if [ -n "$(git status --porcelain)" ]; then
7676 exit 1
7777fi
7878
79- # We no longer have apigen as a dependency in Composer as it pulls in old
80- # versions of other libraries, breaking PHP 7.2.
81- #
82- # Note that the Phar is no longer being updated. We will likely need to go
83- # back to a Composer dep or use another generator at some point in the
84- # future.
85- wget -O apigen.phar " http://apigen.org/apigen.phar"
86-
87- php apigen.phar generate \
88- -s ../src \
89- -s ../../MaxMind-DB-Reader-php/src \
90- -d " doc/$tag " \
79+ # Using Composer is possible, but they don't recommend it.
80+ wget -O phpDocumentor.phar https://github.com/phpDocumentor/phpDocumentor2/releases/download/v2.9.0/phpDocumentor.phar
81+
82+ # Use cache dir in /tmp as otherwise cache files get into the output directory.
83+ cachedir=" /tmp/phpdoc-$$ -$RANDOM "
84+ rm -rf " $cachedir "
85+
86+ php phpDocumentor.phar \
87+ -d src,../MaxMind-DB-Reader-php/src \
88+ --visibility public \
89+ --cache-folder " $cachedir " \
9190 --title " GeoIP2 PHP API $tag " \
92- --php
91+ -t " doc/ $tag "
9392
93+ rm -rf " $cachedir "
9494
9595page=index.md
9696cat << EOF > $page
You can’t perform that action at this time.
0 commit comments