You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: tools/php_api_ref/phpdoc.sh
+13-13Lines changed: 13 additions & 13 deletions
Original file line number
Diff line number
Diff line change
@@ -3,17 +3,17 @@
3
3
set +x;
4
4
5
5
AUTH_JSON=${1:-~/.composer/auth.json};# Path to an auth.json file allowing to install the targeted edition and version
6
-
OUTPUT_DIR=${2:-./docs/api/php_api/php_api_reference};# Path to the directory where the built PHP API Reference is hosted
6
+
PHP_API_OUTPUT_DIR=${2:-./docs/api/php_api/php_api_reference};# Path to the directory where the built PHP API Reference is hosted
7
7
8
8
DXP_EDITION='commerce';# Edition from and for which the Reference is built
9
9
DXP_VERSION='4.6.*';# Version from and for which the Reference is built
10
10
DXP_ADD_ONS=(connector-ai connector-openai automated-translation product-catalog-date-time-attribute rector discounts discounts-codes product-catalog-symbol-attribute collaboration share fieldtype-richtext-rte integrated-help cdp);# Packages not included in $DXP_EDITION but added to the Reference, listed without their vendor "ibexa"
11
11
DXP_EDITIONS=(oss headless experience commerce);# Available editions ordered by ascending capabilities
12
12
SF_VERSION='5.4';# Symfony version used by Ibexa DXP
13
-
PHPDOC_VERSION='3.8.0';# Version of phpDocumentor used to build the Reference
13
+
PHPDOC_VERSION='3.9.1';# Version of phpDocumentor used to build the Reference
14
14
PHPDOC_CONF="$(pwd)/tools/php_api_ref/phpdoc.dist.xml";# Absolute path to phpDocumentor configuration file
15
15
#PHPDOC_CONF="$(pwd)/tools/php_api_ref/phpdoc.dev.xml"; # Absolute path to phpDocumentor configuration file
16
-
PHPDOC_TEMPLATE_VERSION='3.8.0';# Version of the phpDocumentor base template set
16
+
PHPDOC_TEMPLATE_VERSION='3.9.1';# Version of the phpDocumentor base template set
17
17
PHPDOC_DIR="$(pwd)/tools/php_api_ref/.phpdoc";# Absolute path to phpDocumentor resource directory (containing the override template set)
18
18
19
19
PHP_BINARY="php -d error_reporting=`php -r 'echo E_ALL & ~E_DEPRECATED;'`";# Avoid depreciation messages from phpDocumentor/Reflection/issues/529 when using PHP 8.2 or higher
@@ -22,16 +22,16 @@ FORCE_DXP_INSTALL=1; # If 1, empty the temporary directory, install DXP from scr
22
22
BASE_DXP_BRANCH='';# Branch from and for which the Reference is built when using a dev branch as version
23
23
VIRTUAL_DXP_VERSION='';# Version for which the reference is supposedly built when using dev branch as version
24
24
25
-
if [ !-d$OUTPUT_DIR ];then
26
-
echo -n "Creating ${OUTPUT_DIR}… ";
27
-
mkdir -p $OUTPUT_DIR;
25
+
if [ !-d$PHP_API_OUTPUT_DIR ];then
26
+
echo -n "Creating ${PHP_API_OUTPUT_DIR}… ";
27
+
mkdir -p $PHP_API_OUTPUT_DIR;
28
28
if [ $?-eq 0 ];then
29
29
echo'OK';
30
30
else
31
31
exit 1;
32
32
fi;
33
33
fi;
34
-
OUTPUT_DIR=$(realpath $OUTPUT_DIR);# Transform to absolute path before changing the working directory
34
+
PHP_API_OUTPUT_DIR=$(realpath $PHP_API_OUTPUT_DIR);# Transform into absolute path before changing the working directory
0 commit comments