|
@@ -1,5 +1,5 @@
|
|
|
#!/bin/bash
|
|
|
-cd /root/BookStack2Site/ && rm -r book-test/src book-test/book
|
|
|
+cd /root/BookStack2Site/ && rm -r book-test/src/ book-test/book/
|
|
|
BookStackEndpoint=""
|
|
|
BookStackAPITokenID=
|
|
|
BookStackAPITokenSecret=
|
|
@@ -10,9 +10,9 @@ bin/bookstack2site --bookstack-url=${BookStackEndpoint} --token-id=${BookStackAP
|
|
|
# success label is not supported
|
|
|
# mdbook-regex is also suggested
|
|
|
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' {} \;
|
|
|
+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' {} +
|
|
|
# build static pages
|
|
|
../bin/mdbook build
|
|
|
../bin/mdbook-sitemap-generator -d ${MdBookSite} -o book/sitemap.xml
|