Skip to content

Commit cf3be22

Browse files
committed
phpdoc.sh: Remove Symfony from index
1 parent 063e5c3 commit cf3be22

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

tools/php_api_ref/phpdoc.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,12 @@ $PHP_BINARY $PHPDOC_BIN -t php_api_reference;
134134
if [ $? -eq 0 ]; then
135135
echo -n 'Remove unneeded from phpDocumentor output… ';
136136
rm -rf ./php_api_reference/files ./php_api_reference/graphs ./php_api_reference/indices ./php_api_reference/packages;
137+
echo -n 'Remove Symfony namespace from index… ';
138+
awk 'NR==FNR{if (/.*"fqsen": "\\\\Symfony.*/) for (i=-1;i<=3;i++) del[NR+i]; next} !(FNR in del)' \
139+
./php_api_reference/js/searchIndex.js \
140+
./php_api_reference/js/searchIndex.js \
141+
> ./php_api_reference/js/searchIndex.new.js;
142+
mv -f ./php_api_reference/js/searchIndex.new.js ./php_api_reference/js/searchIndex.js;
137143
echo -n "Copy phpDocumentor output to ${OUTPUT_DIR}";
138144
cp -rf ./php_api_reference/* $OUTPUT_DIR;
139145
echo -n 'Remove surplus… ';

0 commit comments

Comments
 (0)