|
@@ -1,5 +1,5 @@
|
|
|
#!/bin/bash
|
|
|
-cd /root/BookStack2Site/ && rm -r book-test/src/ book-test/book/
|
|
|
+cd $HOME/BookStack2Site/ && rm -r book-test/src/ book-test/book/
|
|
|
BookStackEndpoint=""
|
|
|
BookStackAPITokenID=
|
|
|
BookStackAPITokenSecret=
|
|
@@ -9,7 +9,7 @@ bin/bookstack2site --bookstack-url=${BookStackEndpoint} --token-id=${BookStackAP
|
|
|
# convert markup to mdbook-admonish
|
|
|
# success label is not supported
|
|
|
# mdbook-regex is also suggested
|
|
|
-cd book-test
|
|
|
+cd book-test
|
|
|
find . -name "*.md" -exec sed -i 's/<p class="callout info">\(.*\)<\/p>/```admonish info\n\1\n```/g' {} +
|
|
|
find . -name "*.md" -exec sed -i 's/<p class="callout warning">\(.*\)<\/p>/```admonish warning\n\1\n```/g' {} +
|
|
|
find . -name "*.md" -exec sed -i 's/<p class="callout danger">\(.*\)<\/p>/```admonish danger\n\1\n```/g' {} +
|