Created
May 26, 2011 07:14
-
-
Save sugamasao/992696 to your computer and use it in GitHub Desktop.
watchrでrstファイルを監視
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
# gem install watchr でインストールできるよ | |
# watchr hogehoge.rb で実行するよ | |
require 'watchr' | |
target_file = 'hogehoge.rst' | |
watch(target_file) do |md| | |
system("date;rst2html.py #{md[0]} #{File.basename(md[0], '.rst')}.html") | |
end | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment