Commit bada25de authored by Robert Ricci's avatar Robert Ricci

Parameterize the name of the testbed

You can now pass a command line arg to scribble to turn on CloudLab
mode. Right now, all this does is change the binding for @(tb)
parent 643d3374
......@@ -15,7 +15,7 @@ all: $(SOURCES)
scribble --htmls ++style apt-manual.css $(TOPLEVEL).scrbl
cloudlab: $(SOURCES)
scribble --htmls ++style cloudlab-manual.css cloudlab-manual.scrbl
scribble --htmls ++style cloudlab-manual.css ++arg cloudlab cloudlab-manual.scrbl
clean:
-rm -rf $(TOPLEVEL)/
......
......@@ -3,9 +3,10 @@
@(require "defs.rkt")
@title[#:version apt-version
#:date (date->string (current-date))]{The ClouLab Manual}
#:date (date->string (current-date))]{The CloudLab Manual}
@author[
"The University of Utah" "Clemson University" "The University of Wisconsin" "The University of Massachusetts" "Raytheon BBN Technologies" "US Ignite"
"The CloudLab Team"
]
@include-section["getting-started.scrbl"]
......@@ -5,12 +5,19 @@
(require racket/draw)
(require racket/system)
(require racket/port)
(require racket/vector)
(provide (all-defined-out))
; Check to see if we are building Apt or CloudLab documentation
(define tb-mode
(if (vector-member "cloudlab" (current-command-line-arguments))
'cloudlab
'apt))
(define apt-base-url "https://www.aptlab.net/")
(define tb (lambda () "Apt"))
(define tb (lambda () (if (equal? tb-mode 'cloudlab) "CloudLab" "Apt")))
; We want the 'version' to be the date of the most recent commit
(define apt-version
......
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