Skip to content

Commit 034016f

Browse files
authored
Merge pull request #161 from maxmind/greg/update-php-documentor
Upgrade to phpDocumentor 3.0.0
2 parents 1d5eb6a + 462ff95 commit 034016f

File tree

1 file changed

+16
-3
lines changed

1 file changed

+16
-3
lines changed

dev-bin/release.sh

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -71,24 +71,37 @@ else
7171
git pull
7272
fi
7373

74+
if [ ! -d .maxminddb ]; then
75+
echo "Cloning MaxMind-DB for docs"
76+
git clone [email protected]:maxmind/MaxMind-DB-Reader-php.git .maxminddb
77+
else
78+
echo "Updating MaxMind-DB for docs"
79+
pushd .maxminddb
80+
git pull
81+
popd
82+
fi
83+
84+
7485
if [ -n "$(git status --porcelain)" ]; then
7586
echo ".gh-pages is not clean" >&2
7687
exit 1
7788
fi
7889

7990
# 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
91+
wget -O phpDocumentor.phar https://github.com/phpDocumentor/phpDocumentor/releases/download/v3.0.0/phpDocumentor.phar
8192

8293
# Use cache dir in /tmp as otherwise cache files get into the output directory.
8394
cachedir="/tmp/phpdoc-$$-$RANDOM"
8495
rm -rf "$cachedir"
8596

8697
php phpDocumentor.phar \
87-
-d ../src,../../MaxMind-DB-Reader-php/src \
98+
-d "$PWD/../src" \
99+
-d "$PWD/.maxminddb/src" \
88100
--visibility public \
89101
--cache-folder "$cachedir" \
90102
--title "GeoIP2 PHP API $tag" \
91-
-t "doc/$tag"
103+
-t "doc/$tag" \
104+
--template=clean
92105

93106
rm -rf "$cachedir"
94107

0 commit comments

Comments
 (0)