Skip to content

Instantly share code, notes, and snippets.

@br2490
Created March 11, 2018 04:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save br2490/8f5e64729927cb214fa7bd81244569a1 to your computer and use it in GitHub Desktop.
Save br2490/8f5e64729927cb214fa7bd81244569a1 to your computer and use it in GitHub Desktop.
#!/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;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment