Update make_mdbook.sh

This commit is contained in:
Jeffrey Serio 2021-05-18 20:12:40 -05:00
parent 249397b5ed
commit cb3781ec66
2 changed files with 2 additions and 6 deletions

View File

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

View File

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