Created
October 11, 2015 10:53
-
-
Save svx/e6bd998932cf18e1d71f 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/sh | |
| # First some checks | |
| # Do we have a docs dir? | |
| if [ ! -d "docs" ]; then | |
| echo "Can'd detect a docs dir, please check" | |
| else | |
| echo "looking good, lets do it" | |
| : | |
| fi | |
| html() { | |
| if [ -d "docs/_build" ]; then | |
| rm -rf docs/_build | |
| fi | |
| docker run -it --rm \ | |
| -v ${PWD}/docs:/build/docs:rw \ | |
| --name docs-test \ | |
| quay.io/tiramisu/mr.docs html | |
| } | |
| "$@" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment