Skip to content

Commit bcad3b8

Browse files
committed
Use the docs:build command
1 parent b043aa3 commit bcad3b8

File tree

5 files changed

+59
-94
lines changed

5 files changed

+59
-94
lines changed

.github/workflows/ci.yaml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,12 @@ jobs:
4444
run: composer install --prefer-dist --no-progress
4545

4646
- name: "Build the docs"
47-
working-directory: _build
48-
run: php build.php -vvv
47+
run: >
48+
php _build/vendor/bin/docs-builder build:docs \
49+
--config _build/docs.json \
50+
--fail-on-errors \
51+
--error-output-format github \
52+
--save-errors _build/logs.txt
4953
5054
- name: Show log file
5155
if: ${{ always() }}

_build/build.php

Lines changed: 0 additions & 58 deletions
This file was deleted.

_build/composer.json

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,12 @@
1414
"php": ">=7.4",
1515
"symfony/console": "^5.4",
1616
"symfony/process": "^5.4",
17-
"symfony-tools/docs-builder": "^0.18"
18-
}
17+
"symfony-tools/docs-builder": "dev-build-docs-command"
18+
},
19+
"repositories": [
20+
{
21+
"type": "vcs",
22+
"url": "https://github.com/wouterj/docs-builder"
23+
}
24+
]
1925
}

_build/composer.lock

Lines changed: 41 additions & 32 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

_build/docs.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"exclude": [".github/", "_build/"],
3+
"symfony-version": "4.4"
4+
}

0 commit comments

Comments
 (0)