diff options
author | Brian Coca <brian.coca+git@gmail.com> | 2016-12-22 13:03:16 -0500 |
---|---|---|
committer | Brian Coca <bcoca@users.noreply.github.com> | 2017-01-06 09:16:59 -0500 |
commit | 57f8b791d672ec520036973db235071656f45077 (patch) | |
tree | d907e3c11067065e804296722fd8f135c666304f /docs/docsite/Makefile | |
parent | b139a67c71743f0fa824fc4c7d0e36ea5feeadee (diff) | |
download | ansible-57f8b791d672ec520036973db235071656f45077.tar.gz |
consolidated docs
point to new doc locations
removed non existing dirs
Diffstat (limited to 'docs/docsite/Makefile')
-rw-r--r-- | docs/docsite/Makefile | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/docs/docsite/Makefile b/docs/docsite/Makefile new file mode 100644 index 0000000000..8fb4673007 --- /dev/null +++ b/docs/docsite/Makefile @@ -0,0 +1,52 @@ +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 +CPUS ?= 1 + +all: clean docs + +docs: clean directives modules staticmin + ./build-site.py -j $(CPUS) + -(cp *.ico htmlout/) + -(cp *.jpg htmlout/) + -(cp *.png htmlout/) + +variables: + (mkdir -p htmlout/) + dot variables.dot -Tpng -o htmlout/variables.png + +viewdocs: clean staticmin + ./build-site.py -j $(CPUS) view + +htmldocs: staticmin + ./build-site.py -j $(CPUS) rst + +webdocs: htmldocs + +clean: + -rm -rf htmlout + -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" + find . -type f \( -name "*~" -or -name "#*" \) -delete + find . -type f \( -name "*.swp" \) -delete + @echo "Cleaning up generated rst" + -rm rst/list_of_*.rst + -rm rst/*_by_category.rst + -rm rst/*_module.rst + +.PHONEY: docs clean + +directives: $(FORMATTER) ../hacking/templates/rst.j2 + PYTHONPATH=../lib $(DUMPER) --template-dir=../hacking/templates --output-dir=rst/ + +modules: $(FORMATTER) ../hacking/templates/rst.j2 + PYTHONPATH=../lib $(FORMATTER) -t rst --template-dir=../hacking/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 |