Skip to content

Commit

Permalink
Merge branch '3.3.x'
Browse files Browse the repository at this point in the history
  • Loading branch information
marc1706 committed Sep 8, 2020
2 parents f65b60d + 619820a commit 17c4fe6
Show file tree
Hide file tree
Showing 24 changed files with 327 additions and 468 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ before_script:

script:
- travis/phing-sniff.sh $DB $TRAVIS_PHP_VERSION $NOTESTS
- travis/check-sami-parse-errors.sh $DB $TRAVIS_PHP_VERSION $NOTESTS
- travis/check-doctum-parse-errors.sh $DB $TRAVIS_PHP_VERSION $NOTESTS
- travis/check-image-icc-profiles.sh $DB $TRAVIS_PHP_VERSION $NOTESTS
- travis/check-executable-files.sh $DB $TRAVIS_PHP_VERSION $NOTESTS ./
- travis/check-stylesheet.sh $NOTESTS
Expand Down
4 changes: 2 additions & 2 deletions build/build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -128,13 +128,13 @@
<!-- Builds docs for current branch into build/api/output/master -->
<target name="docs">
<exec dir="."
command="phpBB/vendor/bin/sami.php update build/sami-checkout.conf.php"
command="php doctum.phar update build/doctum-checkout.conf.php"
passthru="true" />
</target>
<!-- Builds docs for multiple branches/tags into build/api/output/$branch -->
<target name="docs-all">
<exec dir="."
command="phpBB/vendor/bin/sami.php update build/sami-all.conf.php"
command="php doctum.phar update build/doctum-all.conf.php"
passthru="true" />
</target>

Expand Down
6 changes: 3 additions & 3 deletions build/sami-all.conf.php → build/doctum-all.conf.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@
*
*/

require __DIR__ . '/sami-checkout.conf.php';
require __DIR__ . '/doctum-checkout.conf.php';

$config['versions'] = Sami\Version\GitVersionCollection::create(__DIR__ . '/../')
$config['versions'] = Doctum\Version\GitVersionCollection::create(__DIR__ . '/../')
/*
This would be nice, but currently causes various problems that need
debugging.
Expand All @@ -30,4 +30,4 @@
->add('master')
;

return new Sami\Sami($iterator, $config);
return new Doctum\Doctum($iterator, $config);
31 changes: 31 additions & 0 deletions build/doctum-checkout.conf.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
<?php
/**
*
* This file is part of the phpBB Forum Software package.
*
* @copyright (c) phpBB Limited <https://www.phpbb.com>
* @license GNU General Public License, version 2 (GPL-2.0)
*
* For full copyright and license information, please see
* the docs/CREDITS.txt file.
*
*/

$iterator = Symfony\Component\Finder\Finder::create()
->files()
->name('*.php')
->in(__DIR__ . '/../phpBB/')
->notPath('#^cache/#')
->notPath('#^develop/#')
->notPath('#^ext/#')
->notPath('#^vendor/#')
->notPath('data');

// This variable will be used and changed in doctum-all.conf.php
$config = [
'title' => 'phpBB API Documentation',
'build_dir' => __DIR__ . '/api/output/%version%',
'cache_dir' => __DIR__ . '/api/cache/%version%',
];

return new Doctum\Doctum($iterator, $config);
44 changes: 0 additions & 44 deletions build/sami-checkout.conf.php

This file was deleted.

Binary file added doctum.phar
Binary file not shown.
3 changes: 1 addition & 2 deletions phpBB/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,7 @@
"squizlabs/php_codesniffer": "~3.4",
"symfony/browser-kit": "~3.4",
"symfony/css-selector": "~3.4",
"symfony/dom-crawler": "~3.4",
"sami/sami": "^4.1"
"symfony/dom-crawler": "~3.4"
},
"extra": {
"branch-alias": {
Expand Down
Loading

0 comments on commit 17c4fe6

Please sign in to comment.