Skip to content

Commit a110222

Browse files
committed
Fix links to test classes
1 parent be1fd90 commit a110222

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ build-links: build-fetch-docs
7575
find src -type f -name "*.rst" -print0 | xargs -0 perl -pi -e 's|`([^<]+)<([^>]+)\.rst>`_+|:doc:`\1<\2>`|g'
7676
echo λλλ replace links to source files
7777
PHP_CS_FIXER_VERSION=$(shell cat download/version.json | jq .number) && \
78-
find src -type f -name "*.rst" -print0 | xargs -0 perl -pi -e "s|\`([^<]+)<(?:\./)?(?:\.\./)+src/([^>]+)\.php>\`_+|\`\1<https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/blob/v$${PHP_CS_FIXER_VERSION}/src/\2.php>\`_|g"
78+
find src -type f -name "*.rst" -print0 | xargs -0 perl -pi -e "s|\`([^<]+)<(?:\./)?(?:\.\./)+(src\|tests)+/([^>]+)\.php>\`_+|\`\1<https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/blob/v$${PHP_CS_FIXER_VERSION}/\2/\3.php>\`_|g"
7979

8080
.PHONY: build-install-deps
8181
.SILENT:

0 commit comments

Comments
 (0)