Merge pull request #175 from squat/fix_markdown_link

Makefile: workaround to fix broken markdown link in website
This commit is contained in:
Lucas Servén Marín 2021-05-21 19:08:22 +02:00 committed by GitHub
commit 28d93fba90
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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/\[\]\(\[.*\](.*)\)/\[\]\1/g' website/docs/api.md
website/build/index.html: website/docs/README.md docs/api.md
yarn --cwd website install