Skip to content

Instantly share code, notes, and snippets.

@svx
Created October 11, 2015 10:53
Show Gist options
  • Select an option

  • Save svx/e6bd998932cf18e1d71f to your computer and use it in GitHub Desktop.

Select an option

Save svx/e6bd998932cf18e1d71f to your computer and use it in GitHub Desktop.
#!/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