Created
March 11, 2018 04:14
-
-
Save br2490/8f5e64729927cb214fa7bd81244569a1 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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