File tree Expand file tree Collapse file tree 1 file changed +16
-3
lines changed
Expand file tree Collapse file tree 1 file changed +16
-3
lines changed Original file line number Diff line number Diff line change 7171 git pull
7272fi
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+
7485if [ -n " $( git status --porcelain) " ]; then
7586 echo " .gh-pages is not clean" >&2
7687 exit 1
7788fi
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.
8394cachedir=" /tmp/phpdoc-$$ -$RANDOM "
8495rm -rf " $cachedir "
8596
8697php 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
93106rm -rf " $cachedir "
94107
You can’t perform that action at this time.
0 commit comments