Skip to content

Commit

Permalink
Guard now checks for changes in static files
Browse files Browse the repository at this point in the history
  • Loading branch information
zhuravel committed Apr 1, 2014
1 parent 9b3ec97 commit 198e034
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 7 deletions.
5 changes: 5 additions & 0 deletions Guardfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,13 @@ guard 'shell' do
watch(%r{(.*)\.rst}) do |m|
system("sphinx-build -b html -d build/doctrees source build/html")
end

watch(%r{^source/_static/}) do |m|
system("rsync -az source/_static build/html")
end
end

guard 'livereload' do
watch(%r{(.*)\.rst})
watch(%r{^source/_static/})
end
9 changes: 3 additions & 6 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@ ifeq ($(shell which $(SPHINXBUILD) >/dev/null 2>&1; echo $$?), 1)
$(error The '$(SPHINXBUILD)' command was not found. Make sure you have Sphinx installed, then set the SPHINXBUILD environment variable to point to the full path of the '$(SPHINXBUILD)' executable. Alternatively you can add the directory with the executable to your PATH. If you don't have Sphinx installed, grab it from http://sphinx-doc.org/)
endif

.PHONY: help clean html preview deploy
.PHONY: help clean html server deploy

help:
@echo "Please use \`make <target>' where <target> is one of"
@echo " html to make standalone HTML files"
@echo " preview to make standalone HTML files and open index.html in the default browser"
@echo " server to make standalone HTML files and run the server on localhost:5000"
@echo " deploy to commit and deploy changes to GitHub"

clean:
Expand All @@ -29,11 +29,8 @@ html:
@echo
@echo "Build finished. The HTML pages are in $(BUILDDIR)/html."

preview:
make clean && make html

server:
make preview
make clean && make html
foreman start

deploy:
Expand Down
2 changes: 1 addition & 1 deletion source/_static/curebit.css
Original file line number Diff line number Diff line change
Expand Up @@ -404,7 +404,7 @@ div.hidden {
}

/* FIREFOX SPECIFIC */
@-moz-document url-prefix() {
@-moz-document url-prefix() {
.button {
padding-bottom: 8px;
padding-top: 6px;
Expand Down

0 comments on commit 198e034

Please sign in to comment.