Skip to content

Commit 99fbe72

Browse files
authored
fix index.html parsing (#45)
1 parent 4bb77ee commit 99fbe72

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,8 @@ build-links: build-fetch-docs
7171
# -`DESC <PATH.rst>`_
7272
# +:doc:`DESC <PATH>`
7373
# ```
74-
# to find: grep -r --perl '`[^<]+<[^>]+\.rst>`_+' src
75-
find src -type f -name "*.rst" -print0 | xargs -0 perl -pi -e 's|`([^<]+)<([^>]+)\.rst>`_+|:doc:`\1<\2>`|g'
74+
# to find: grep -r --perl '`[^`<]+<[^>]+\.rst>`_+' src
75+
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) && \
7878
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"

0 commit comments

Comments
 (0)