Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- ## Place this script in the directory containing mkdocs.yml.
- ## It assumes the docs are in the docs directory, greps all the files, and concats to one large file.
- # ## Check for and install Pandoc
- # if ! which pandoc; then
- # echo 'Installing pandoc.'
- # sleep 2s;
- # sudo apt-get update -y;
- # sudo apt-get install pandoc -y;
- # fi
- cd docs || exit;
- pandoc ./`grep -Po ": '?\K(.*\.md)" ../mkdocs.yml` -o output.docx;
- echo "closing in 10 seconds."
- sleep 10s;
Add Comment
Please, Sign In to add comment