Commit a1201b9a authored by Robert Ricci's avatar Robert Ricci

Only include the GA tokens when installing on the live site

parent 3c27dbe8
......@@ -34,6 +34,13 @@ cloudlab: $(SOURCES)
cp -r $(GENI_LIB_DIR)/docs/build/html cloudlab-manual/geni-lib
scribble --htmls ++style cloudlab-manual.css ++arg --clab ++arg --geni-lib-dir ++arg $(GENI_LIB_DIR) cloudlab-manual.scrbl
cloudlab-ga: $(SOURCES)
-mkdir cloudlab-manual/
cd $(GENI_LIB_DIR)/docs && $(MAKE) html
-rm -rf cloudlab-manual/geni-lib/
cp -r $(GENI_LIB_DIR)/docs/build/html cloudlab-manual/geni-lib
scribble --htmls ++style cloudlab-manual.css ++arg --ga ++arg --clab ++arg --geni-lib-dir ++arg $(GENI_LIB_DIR) cloudlab-manual.scrbl
phantomnet: $(SOURCES)
-mkdir phantomnet-manual/
cd $(GENI_LIB_DIR)/docs && $(MAKE) html
......@@ -82,7 +89,7 @@ install-all: install-live install-cloudlab install-phantomnet install-emulab
install-live: apt
-rsync -v -az -e ssh --delete apt-manual/ $(INSTALL_LIVE)
install-cloudlab: cloudlab
install-cloudlab: cloudlab-ga
-rsync -v -az -e ssh --delete cloudlab-manual/ $(INSTALL_CLAB)
install-phantomnet: phantomnet
......
......@@ -18,6 +18,7 @@
(define tb-mode (make-parameter 'apt))
(define doc-mode (make-parameter 'html))
(define include-ga (make-parameter #f))
(define geni-lib-dir (make-parameter null))
(command-line
......@@ -29,6 +30,7 @@
["--elab" "Compile manual for Emulab" (tb-mode 'elab)]
#:once-each
["--pdf" "Compile PDF version of the manual" (doc-mode 'pdf)]
["--ga" "Include Google Analytics code" (include-ga #t)]
["--geni-lib-dir" gld "Give the path to geni-lib" (geni-lib-dir gld)]
)
......@@ -41,7 +43,7 @@
(make-style "main-body"
(list (js-style-addition "highlight.pack.js")
(js-style-addition "download-code.js")
(if (clab?) (js-style-addition "ga-cloudlab.js") null)
(if (and (clab?) (include-ga)) (js-style-addition "ga-cloudlab.js") null)
(make-css-addition "highlight-default.css"))))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment