Created
October 5, 2015 14:44
-
-
Save svx/94219b68d207b9a1f514 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
| qa_update() { | |
| docker pull quay.io/tiramisu/mr.docs | |
| } | |
| qa() { | |
| 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 "$1" | |
| sudo chown -R svx:svx docs | |
| } | |
| _qa() { | |
| local cur prev opts | |
| cur="${COMP_WORDS[COMP_CWORD]}" | |
| prev="${COMP_WORDS[COMP_CWORD-1]}" | |
| opts="html linkcheck spellcheck" | |
| COMPREPLY=( $(compgen -W "${opts}" -- ${cur}) ) | |
| } | |
| complete -F _qa qa |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment