Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
35 commits
Select commit Hold shift + click to select a range
f4840e0
Convert docs builder into an extension
wouterj Jul 3, 2023
393b005
Cleanup
wouterj Jul 3, 2023
bbf362b
Update to latest Guides
wouterj Oct 24, 2023
18d2a46
Upgrade to latest guides and use guides-code's highlighter
wouterj Dec 16, 2023
6b5d24e
Fix SymfonyExtension build
wouterj Dec 17, 2023
8ff0432
Set-up Psalm CI
wouterj Dec 19, 2023
9bb899f
Set-up PHP CS Fixer CI
wouterj Dec 19, 2023
6c3f116
Use guides-code from Packagist
wouterj Dec 19, 2023
97f1bcf
Upgrade to Sphinx RTD Theme 2.0.0
wouterj Dec 27, 2023
1640b05
Unskip fixed test cases
wouterj Dec 27, 2023
d0adf5c
Upgrade Guides and split RTD theme
wouterj Jan 21, 2024
2392db4
Do not use anchors for document links in toctree
wouterj Jan 22, 2024
06ebd83
Enable toctree project test
wouterj Jan 22, 2024
a502e4d
Fix CI
wouterj Jan 22, 2024
cffbca8
Fix CS
wouterj Jan 22, 2024
7f8eef1
Upgrade to Guides 1.0
wouterj Mar 7, 2024
8456f7b
Made last skipped test green
wouterj Mar 7, 2024
54ecae2
Upgrade to latest Guides
wouterj Nov 14, 2025
cf12d4a
Upgrade other dependencies
wouterj Nov 15, 2025
043daa4
Apply recent changes to DocsBuilder in new code
wouterj Mar 14, 2026
19fdbfc
Move GuidesExtension code into a subdirectory
wouterj Mar 14, 2026
d632030
Merge integration tests
wouterj Mar 15, 2026
858e20c
Replace version placeholder with Symfony version in URLs
wouterj Mar 15, 2026
a65752a
Use newer PHPUnit version in GitHub Workflow
wouterj Mar 15, 2026
10c99fd
Fix php class role with namespaced FQCN
wouterj Mar 15, 2026
2b6f54e
Skip non-html integration tests
wouterj Mar 15, 2026
4d25f93
Update caution icon
wouterj Mar 17, 2026
482a4c3
Fix highlightphp tests
wouterj Mar 17, 2026
5bcc31f
Add fjson renderer
wouterj Mar 17, 2026
73915c8
Upgrade to Symfony 8
wouterj Mar 20, 2026
75de379
Add support for tabs directive
wouterj Mar 20, 2026
6a28d55
Require PHPUnit directly
wouterj Mar 22, 2026
0926146
Upgrade Guides to fix the `testBlocks@nodes/title.rst` test
wouterj Mar 22, 2026
fc970ed
Update JsonRenderer tests based on real integration
wouterj Mar 24, 2026
1971453
Use relative references
wouterj Mar 25, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
uses: shivammathur/setup-php@v2
with:
coverage: none
php-version: 8.3
php-version: 8.4
tools: composer:v2
ini-values: date.timezone=UTC

Expand All @@ -37,7 +37,7 @@ jobs:
# add here only the PHP versions and OS used in GitHub CI (for tests)
# and on the symfony.com server (where the Symfony Docs are built)
operating-system: ['ubuntu-latest']
php-version: ['8.3', '8.4']
php-version: ['8.4', '8.5']

steps:
- name: 'Checkout code'
Expand All @@ -51,8 +51,8 @@ jobs:
tools: composer:v2
ini-values: date.timezone=UTC

- name: Install Composer Dependencies
run: composer install --no-progress
- name: Install Composer Dependencies
run: composer install --no-progress

- name: PHPUnit
run: vendor/bin/simple-phpunit
- name: PHPUnit
run: composer test
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
!tools/*/composer.lock
/vendor/
/tests/_output
/tests/_cache
/var/
/docs.phar
/.env
/.php-cs-fixer.cache
/.phpunit.result.cache
/.phpunit.cache
/composer.lock
34 changes: 34 additions & 0 deletions .php-cs-fixer.dist.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
<?php

$fileHeaderComment = <<<EOT
This file is part of the Guides SymfonyExtension package.

(c) Wouter de Jong

For the full copyright and license information, please view the LICENSE
file that was distributed with this source code.
EOT;

return (new PhpCsFixer\Config())
->setRules([
'@PHP71Migration' => true,
'@PHPUnit75Migration:risky' => true,
'@Symfony' => true,
'@Symfony:risky' => true,
'protected_to_private' => false,
'native_constant_invocation' => ['strict' => false],
'no_superfluous_phpdoc_tags' => [
'remove_inheritdoc' => true,
'allow_unused_params' => true, // for future-ready params, to be replaced with https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/issues/7377
],
'header_comment' => ['header' => $fileHeaderComment],
'modernize_strpos' => true,
'get_class_to_class_keyword' => true,
'nullable_type_declaration' => true,
])
->setRiskyAllowed(true)
->setFinder(
(new PhpCsFixer\Finder())
->in(__DIR__.'/src')
)
;
1 change: 1 addition & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
The MIT license

Copyright (c) 2018-present Ryan Weaver
Copyright (c) 2023-present Wouter de Jong

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
27 changes: 0 additions & 27 deletions bin/docs-builder

This file was deleted.

50 changes: 35 additions & 15 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,33 +5,53 @@
"license": "MIT",
"autoload": {
"psr-4": {
"SymfonyTools\\DocsBuilder\\GuidesExtension\\": "src/GuidesExtension/src",
"SymfonyDocsBuilder\\": "src"

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is this SymfonyDocsBuilder namespace still used ?

}
},
"autoload-dev": {
"psr-4": {
"SymfonyTools\\DocsBuilder\\Tests\\": "tests",
"SymfonyDocsBuilder\\Tests\\": "tests"
}
},
"require": {
"php": ">=8.3",
"php": ">=8.4",
"ext-json": "*",
"ext-curl": "*",
"doctrine/rst-parser": "^0.5",
"scrivo/highlight.php": "^9.18.1",
"symfony/filesystem": "^5.2 || ^6.0 || ^7.0 || ^8.0",
"symfony/finder": "^5.2 || ^6.0 || ^7.0 || ^8.0",
"symfony/dom-crawler": "^5.2 || ^6.0 || ^7.0 || ^8.0",
"symfony/css-selector": "^5.2 || ^6.0 || ^7.0 || ^8.0",
"symfony/console": "^5.2 || ^6.0 || ^7.0 || ^8.0",
"symfony/http-client": "^5.2 || ^6.0 || ^7.0 || ^8.0",
"twig/twig": "^2.14 || ^3.3"
"phpdocumentor/guides": "^1.10@dev",
"phpdocumentor/guides-cli": "^1.9",
"phpdocumentor/guides-code": "^1.7",
"phpdocumentor/guides-restructured-text": "^1.10@dev",
"scrivo/highlight.php": "^9.12.0",
"symfony/config": "^8.0",
"symfony/filesystem": "^8.0",
"symfony/finder": "^8.0",
"symfony/event-dispatcher": "^8.0",
"symfony/dependency-injection": "^8.0",
"symfony/dom-crawler": "^8.0",
"symfony/css-selector": "^8.0",
"symfony/console": "^8.0",
"symfony/http-client": "^8.0",
"symfony/string": "^8.0",
"twig/twig": "^3.3",
"twig/string-extra": "^3.6"
},
"require-dev": {
"gajus/dindent": "^2.0",
"symfony/phpunit-bridge": "^5.2 || ^6.0 || ^7.0 || ^8.0",
"symfony/process": "^5.2 || ^6.0 || ^7.0 || ^8.0",
"masterminds/html5": "^2.7"
"league/flysystem-memory": "^3.0",
"symfony/process": "^8.0",
"symfony/var-dumper": "^8.0",
"phpunit/phpunit": "^12"
},
"bin": ["bin/docs-builder"]
"scripts": {
"test": "phpunit",
"psalm": [
"composer update --no-scripts --working-dir=tools/psalm",
"./tools/psalm/vendor/bin/psalm"
],
"cs": [
"composer update --no-scripts --working-dir=tools/php-cs-fixer",
"./tools/php-cs-fixer/vendor/bin/php-cs-fixer fix"
]
}
}
31 changes: 31 additions & 0 deletions phpunit.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
<?xml version="1.0" encoding="UTF-8"?>
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/12.4/phpunit.xsd"
bootstrap="vendor/autoload.php"
beStrictAboutOutputDuringTests="true"
failOnDeprecation="true"
failOnRisky="true"
failOnWarning="true"
cacheDirectory=".phpunit.cache"
beStrictAboutCoverageMetadata="true">
<testsuites>
<testsuite name="default">
<directory>tests</directory>
</testsuite>
</testsuites>

<source ignoreSuppressionOfDeprecations="true"
ignoreIndirectDeprecations="true"
restrictNotices="true"
restrictWarnings="true">
<include>
<directory>src</directory>
</include>

<deprecationTrigger>
<function>trigger_deprecation</function>
<method>Doctrine\Deprecations\Deprecation::trigger</method>
<method>Doctrine\Deprecations\Deprecation::delegateTriggerToBackend</method>
</deprecationTrigger>
</source>
</phpunit>
22 changes: 22 additions & 0 deletions psalm.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<?xml version="1.0"?>
<psalm
errorLevel="2"
resolveFromConfigFile="true"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="https://getpsalm.org/schema/config"
xsi:schemaLocation="https://getpsalm.org/schema/config vendor/vimeo/psalm/config.xsd"
findUnusedCode="false"
findUnusedBaselineEntry="true"
>
<projectFiles>
<directory name="src" />
<directory name="config" />
<ignoreFiles>
<directory name="vendor" />
</ignoreFiles>
</projectFiles>

<issueHandlers>
<ImplicitToStringCast errorLevel="suppress" />
</issueHandlers>
</psalm>
56 changes: 0 additions & 56 deletions src/Application.php

This file was deleted.

Loading
Loading