Ver Fonte

Merge pull request #175 from squat/fix_markdown_link

Makefile: workaround to fix broken markdown link in website
Lucas Servén Marín há 5 anos atrás
pai
commit
28d93fba90
1 ficheiros alterados com 2 adições e 0 exclusões
  1. 2 0
      Makefile

+ 2 - 0
Makefile

@@ -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