summaryrefslogtreecommitdiff
path: root/docsite/Makefile
diff options
context:
space:
mode:
authorMatt Martz <matt@sivel.net>2014-01-02 19:35:29 -0600
committerMatt Martz <matt@sivel.net>2014-01-06 17:15:04 -0600
commitcc440d0a6424ff570b1a0a68de69e4c6ffc61e68 (patch)
tree1d230f33fc5e0423d25b603f13692cb012e3c0af /docsite/Makefile
parente3c0c148e4a27319972dc3f7fd999d358336415c (diff)
downloadansible-cc440d0a6424ff570b1a0a68de69e4c6ffc61e68.tar.gz
Add staticmin make target for compressing docs related css and js files, currently only theme.css
Diffstat (limited to 'docsite/Makefile')
-rw-r--r--docsite/Makefile10
1 files changed, 7 insertions, 3 deletions
diff --git a/docsite/Makefile b/docsite/Makefile
index ab4649e370..d8d01e0f8c 100644
--- a/docsite/Makefile
+++ b/docsite/Makefile
@@ -4,13 +4,13 @@ FORMATTER=../hacking/module_formatter.py
all: clean docs
-docs: clean modules
+docs: clean modules staticmin
./build-site.py
-viewdocs: clean
+viewdocs: clean staticmin
./build-site.py view
-htmldocs:
+htmldocs: staticmin
./build-site.py rst
clean:
@@ -18,6 +18,8 @@ clean:
-rm -f .buildinfo
-rm -f *.inv
-rm -rf *.doctrees
+ @echo "Cleaning up minified css files"
+ find . -type f -name "*.min.css" -delete
@echo "Cleaning up byte compiled python stuff"
find . -regex ".*\.py[co]$$" -delete
@echo "Cleaning up editor backup files"
@@ -29,4 +31,6 @@ clean:
modules: $(FORMATTER) ../hacking/templates/rst.j2
PYTHONPATH=../lib $(FORMATTER) -t rst --template-dir=../hacking/templates --module-dir=../library -o rst/
+staticmin:
+ yuicompressor --type css -o _themes/srtd/static/css/theme.min.css _themes/srtd/static/css/theme.css