Commits

Anonymous committed 6232c48

google analytics のコードをドキュメントに埋め込めるようにした

  • Participants
  • Parent commits e52d483

Comments (0)

Files changed (4)

 syntax: glob
 build/
+source/_templates
-de20e91de994c1fc26b21e5ff5a91ee9bc74459f main_repo
+f2fc2c40dda079cc9315e4a364ed694c021c4dc7 main_repo
 PAPEROPT_letter = -D latex_paper_size=letter
 ALLSPHINXOPTS   = -d $(BUILDDIR)/doctrees $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) source
 
-.PHONY: help clean html dirhtml singlehtml pickle json htmlhelp qthelp devhelp epub latex latexpdf text man changes linkcheck doctest samples samples-clean
+.PHONY: help clean html dirhtml singlehtml pickle json htmlhelp qthelp devhelp epub latex latexpdf text man changes linkcheck doctest samples samples-clean google-analytics-on google-analytics-off
 
 help:
 	@echo "Please use \`make <target>' where <target> is one of"
 	for sdir in source/samples/*; do \
 		[ -e $$sdir/Makefile ] && make -C $$sdir clean; \
 		done
+
+
+google-analytics-on:
+	@[ ! -e source/_templates ] && ln -s __templates source/_templates \
+		|| echo 'already on'
+
+google-analytics-off:
+	@[ -L source/_templates ] && rm source/_templates || echo 'not on'

File source/__templates

+../main_repo/doc/source/__templates