Last active
January 11, 2016 18:15
-
-
Save svx/0ce0a0697ae372c3e044 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 | |
| doctest_update() { | |
| docker pull quay.io/tiramisu/mr.docs | |
| } | |
| doctest() { | |
| if [ -d "docs/_build" ]; then | |
| sudo 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 $USER docs | |
| } | |
| _doctest() { | |
| 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 _doctest doctest |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment