Skip to content

Instantly share code, notes, and snippets.

@f440
Created August 18, 2013 07:48
Show Gist options
  • Save f440/6260460 to your computer and use it in GitHub Desktop.
Save f440/6260460 to your computer and use it in GitHub Desktop.
Sphinx utilities
Sphinx Utilities
================
# Setup
pip install -r requirements.txt
bundle install
# Usage
foreman start
source 'https://rubygems.org'
gem 'guard-livereload'
gem 'guard-shell'
gem 'rb-fsevent'
gem 'foreman'
gem 'terminal-notifier-guard'
guard 'shell' do
watch(%r{(.*)\.rst}) do |m|
system("sphinx-build -b html -d build/doctrees source build/html")
end
end
guard 'livereload' do
watch(%r{(.*)\.rst})
end
web: ruby -run -e httpd -- --port=3000 build/html
gaurd: bundle exec guard
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment