Update make_mdbook.sh
This commit is contained in:
parent
249397b5ed
commit
cb3781ec66
@ -40,5 +40,6 @@ sudo npm -g install doctoc
|
|||||||
./make-mdbook.sh
|
./make-mdbook.sh
|
||||||
|
|
||||||
# Serve locally
|
# Serve locally
|
||||||
|
cd zsh_manual/
|
||||||
mdbook serve
|
mdbook serve
|
||||||
```
|
```
|
||||||
|
@ -38,12 +38,7 @@ done
|
|||||||
|
|
||||||
# Convert html to md with pandoc
|
# Convert html to md with pandoc
|
||||||
for file in "${_zsh_html_src_dir}"/*.html; do
|
for file in "${_zsh_html_src_dir}"/*.html; do
|
||||||
pandoc "$file" -f html -t gfm -o "${_zsh_md_src_dir}/$(basename -- "$file" .html).md";
|
pandoc "$file" -f html -t gfm -o "${_mdbook_src_dir}/$(basename -- "$file" .html).md";
|
||||||
done
|
|
||||||
|
|
||||||
# Move md files to mdbook_src_dir
|
|
||||||
for file in "${_zsh_md_src_dir}"/*.md; do
|
|
||||||
mv "$file" "${_mdbook_src_dir}"/
|
|
||||||
done
|
done
|
||||||
|
|
||||||
# Generate TOC with doctoc
|
# Generate TOC with doctoc
|
||||||
|
Loading…
Reference in New Issue
Block a user