From 198e034ac8f3f1370fe25682c0fa638c0b7106bc Mon Sep 17 00:00:00 2001 From: Bohdan Zhuravel Date: Tue, 1 Apr 2014 17:45:14 +0300 Subject: [PATCH] Guard now checks for changes in static files --- Guardfile | 5 +++++ Makefile | 9 +++------ source/_static/curebit.css | 2 +- 3 files changed, 9 insertions(+), 7 deletions(-) diff --git a/Guardfile b/Guardfile index 362052f82..dfe8ecf09 100644 --- a/Guardfile +++ b/Guardfile @@ -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 diff --git a/Makefile b/Makefile index e53e46b3b..9e1e92f16 100644 --- a/Makefile +++ b/Makefile @@ -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 ' where 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: @@ -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: diff --git a/source/_static/curebit.css b/source/_static/curebit.css index 5414879f0..795a85238 100644 --- a/source/_static/curebit.css +++ b/source/_static/curebit.css @@ -404,7 +404,7 @@ div.hidden { } /* FIREFOX SPECIFIC */ -@-moz-document url-prefix() { +@-moz-document url-prefix() { .button { padding-bottom: 8px; padding-top: 6px;