File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff 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"
You can’t perform that action at this time.
0 commit comments