Guest User

Untitled

a guest
Mar 19th, 2018
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. #!/bin/bash
  2. ## Place this script in the directory containing mkdocs.yml.
  3. ## It assumes the docs are in the docs directory, greps all the files, and concats to one large file.
  4.  
  5. # ## Check for and install Pandoc
  6. # if ! which pandoc; then
  7. # echo 'Installing pandoc.'
  8. # sleep 2s;
  9. # sudo apt-get update -y;
  10. # sudo apt-get install pandoc -y;
  11. # fi
  12.  
  13. cd docs || exit;
  14. pandoc ./`grep -Po ": '?\K(.*\.md)" ../mkdocs.yml` -o output.docx;
  15. echo "closing in 10 seconds."
  16. sleep 10s;
Add Comment
Please, Sign In to add comment