summaryrefslogtreecommitdiff
path: root/docs/docsite/Makefile
diff options
context:
space:
mode:
authorBrian Coca <brian.coca+git@gmail.com>2017-03-23 01:13:23 -0400
committerBrian Coca <bcoca@users.noreply.github.com>2017-03-24 15:52:36 -0400
commit424e1946f435c5228b450d802a16a585a7798665 (patch)
tree9b93634262a2addc329d2dbda7dbc92483824e39 /docs/docsite/Makefile
parentb4c47ebf680bd652913387a03aafa6dbc4d66ec0 (diff)
downloadansible-424e1946f435c5228b450d802a16a585a7798665.tar.gz
moved docs generation and templates to docs/
Diffstat (limited to 'docs/docsite/Makefile')
-rw-r--r--docs/docsite/Makefile15
1 files changed, 8 insertions, 7 deletions
diff --git a/docs/docsite/Makefile b/docs/docsite/Makefile
index 0288d8ffc8..35a9258399 100644
--- a/docs/docsite/Makefile
+++ b/docs/docsite/Makefile
@@ -1,7 +1,7 @@
OS := $(shell uname -s)
SITELIB = $(shell python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()"):
-FORMATTER=../../hacking/module_formatter.py
-DUMPER=../../hacking/dump_playbook_attributes.py
+FORMATTER=../bin/plugin_formatter.py
+DUMPER=../bin/dump_keywords.py
ifeq ($(shell echo $(OS) | egrep -ic 'Darwin|FreeBSD|OpenBSD|DragonFly'),1)
CPUS ?= $(shell sysctl hw.ncpu|awk '{print $$2}')
else
@@ -12,7 +12,7 @@ all: docs
docs: clean htmldocs
-htmldocs: directives modules staticmin
+htmldocs: keywords modules staticmin
CPUS=$(CPUS) $(MAKE) -f Makefile.sphinx html
webdocs: docs
@@ -36,14 +36,15 @@ clean:
-rm rst/*_by_category.rst
-rm rst/*_module.rst
-rm rst/playbooks_directives.rst
+ -rm rst/playbooks_keywords.rst
.PHONEY: docs clean
-directives: $(FORMATTER) ../../hacking/templates/rst.j2
- PYTHONPATH=../../lib $(DUMPER) --template-dir=../../hacking/templates --output-dir=rst/ -d ./directive_desc.yml
+keywords: $(FORMATTER) ../templates/playbooks_keywords.rst.j2
+ PYTHONPATH=../../lib $(DUMPER) --template-dir=../templates --output-dir=rst/ -d ./keyword_desc.yml
-modules: $(FORMATTER) ../../hacking/templates/rst.j2
- PYTHONPATH=../../lib $(FORMATTER) -t rst --template-dir=../../hacking/templates --module-dir=../../lib/ansible/modules -o rst/
+modules: $(FORMATTER) ../templates/plugin.rst.j2
+ PYTHONPATH=../../lib $(FORMATTER) -t rst --template-dir=../templates --module-dir=../../lib/ansible/modules -o rst/
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