From e7dd42a299e59efc915bc10e28e6981d48b23605 Mon Sep 17 00:00:00 2001 From: Maxime Besson Date: Mon, 25 May 2020 19:37:21 +0200 Subject: [PATCH] doc: add website_documentation make target make website_documentation WEBSITE_DIR=/var/www/documentation/2.0 --- Makefile | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Makefile b/Makefile index ccc4dda11..da640663a 100644 --- a/Makefile +++ b/Makefile @@ -133,6 +133,9 @@ LLNGTESTLDAP_SLAPD_BIN=/usr/sbin/slapd LLNGTESTLDAP_SLAPADD_BIN=/usr/sbin/slapadd LLNGTESTLDAP_SCHEMA_DIR=/etc/ldap/schema +# Default website destination +WEBSITE_DIR=doc/sources/admin/_build/html + # Other SRCCOMMONDIR=lemonldap-ng-common SRCHANDLERDIR=lemonldap-ng-handler @@ -1000,6 +1003,7 @@ clean: common_clean handler_clean portal_clean manager_clean stop_web_server @rm -f $$(find */ -name '*bak' -delete) @rm -rf doc/devel @rm -rf doc/pages/documentation/current/* + @rm -rf "$(WEBSITE_DIR)" @rm -vf *gz *zip @rm -rf lemonldap-ng-$(VERSION) @echo "Cleaned" @@ -1132,6 +1136,10 @@ documentation: -Dhtml_theme_path=. -Dhtml_theme=manager_doc_theme\ doc/sources/admin/ doc/pages/documentation/current/ +website_documentation: + sphinx-build -b html -d /tmp/doctrees \ + doc/sources/admin/ "$(WEBSITE_DIR)" + test-diff: @for file in `find lemonldap-ng-*/lib -type f`; do \ $(DIFF) $$file `echo $$file|sed -e s/lib/blib\\\/lib/`; \