Skip to content

Instantly share code, notes, and snippets.

@svx
Created October 5, 2015 14:44
Show Gist options
  • Select an option

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

Select an option

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