Skip to content

Commit 23d182f

Browse files
committed
Use phpDocumentor2 instead of ApiGen
1 parent af9d9c7 commit 23d182f

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

dev-bin/release.sh

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -76,21 +76,21 @@ if [ -n "$(git status --porcelain)" ]; then
7676
exit 1
7777
fi
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

9595
page=index.md
9696
cat <<EOF > $page

0 commit comments

Comments
 (0)