1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

fixed webdoc generation

This commit is contained in:
Brian Coca 2017-01-06 11:23:29 -05:00
parent 40ecc3188f
commit d108a6f0fc

View file

@ -1,6 +1,6 @@
SITELIB = $(shell python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()") SITELIB = $(shell python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")
FORMATTER=../hacking/module_formatter.py FORMATTER=../../hacking/module_formatter.py
DUMPER=../hacking/dump_playbook_attributes.py DUMPER=../../hacking/dump_playbook_attributes.py
CPUS ?= 1 CPUS ?= 1
all: clean docs all: clean docs
@ -42,11 +42,11 @@ clean:
.PHONEY: docs clean .PHONEY: docs clean
directives: $(FORMATTER) ../hacking/templates/rst.j2 directives: $(FORMATTER) ../../hacking/templates/rst.j2
PYTHONPATH=../lib $(DUMPER) --template-dir=../hacking/templates --output-dir=rst/ PYTHONPATH=../../lib $(DUMPER) --template-dir=../../hacking/templates --output-dir=rst/
modules: $(FORMATTER) ../hacking/templates/rst.j2 modules: $(FORMATTER) ../../hacking/templates/rst.j2
PYTHONPATH=../lib $(FORMATTER) -t rst --template-dir=../hacking/templates --module-dir=../lib/ansible/modules -o rst/ PYTHONPATH=../../lib $(FORMATTER) -t rst --template-dir=../../hacking/templates --module-dir=../../lib/ansible/modules -o rst/
staticmin: staticmin:
cat _themes/srtd/static/css/theme.css | sed -e 's/^[ ]*//g; s/[ ]*$$//g; s/\([:{;,]\) /\1/g; s/ {/{/g; s/\/\*.*\*\///g; /^$$/d' | sed -e :a -e '$$!N; s/\n\(.\)/\1/; ta' > _themes/srtd/static/css/theme.min.css cat _themes/srtd/static/css/theme.css | sed -e 's/^[ ]*//g; s/[ ]*$$//g; s/\([:{;,]\) /\1/g; s/ {/{/g; s/\/\*.*\*\///g; /^$$/d' | sed -e :a -e '$$!N; s/\n\(.\)/\1/; ta' > _themes/srtd/static/css/theme.min.css