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
#pip install watchdog | |
#sudo apt-get install xvkbd | |
#!/bin/bash | |
watchmedo shell-command \ | |
--patterns="*.rst" \ | |
--ignore-pattern='_build/*' \ | |
--recursive \ | |
--command='make html && xvkbd -window Firefox -text "\Cr"' |
It's a combination of two useful tidbits.
One introduces Watchdog:
http://jacobian.org/writing/auto-building-sphinx/
The other introduces xvkbd:
http://stackoverflow.com/a/15589391/456878
No comments:
Post a Comment