Makefile: workaround to fix broken markdown link in website

Signed-off-by: leonnicolas <leonloechner@gmx.de>
This commit is contained in:
leonnicolas 2021-05-21 14:23:10 +02:00
parent 5614d9158b
commit 1ab8523d8a
No known key found for this signature in database
GPG Key ID: 088D0743E2B65C07
1 changed files with 2 additions and 0 deletions

View File

@ -248,6 +248,8 @@ website/docs/README.md: README.md
sed -i 's/\.\/docs\///g' $@
find $(@D) -type f -name '*.md' | xargs -I{} sed -i 's/\.\/\(.\+\.svg\)/\/img\/\1/g' {}
sed -i 's/graphs\//\/img\/graphs\//g' $@
# The next line is a workaround until mdx, docusaurus' markdown parser, can parse links with preceding brackets.
sed -i 's/\[\]\(\[.*\](.*)\)/\&#91;\&#93;\1/g' website/docs/api.md
website/build/index.html: website/docs/README.md docs/api.md
yarn --cwd website install