       (docs-routes public-protocol relative-root-url))))
 
 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
-;;; Documentation Generation
-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
-
-;; XXX Remove this section during work on CMR-4094, when it will no longer be
-;; used.
-
-(defn header
-  "Defines the header of the generated documentation page."
-  [title]
-  (format
-    "<!DOCTYPE html>
-     <html>
-     <head>
-       <meta charset=\"UTF-8\" />
-       <title>%s</title>
-         <!--[if lt IE 9 ]>
-           <script src=\"http://html5shiv.googlecode.com/svn/trunk/html5.js\"></script>
-           <![endif]-->
-           <link rel=\"stylesheet\" href=\"bootstrap.min.css\">
-           <script src=\"jquery.min.js\"></script>
-           <script src=\"bootstrap.min.js\"></script>
-           <script>
-            // Display markdown generated tables with bootstrap styling.
-            // see http://getbootstrap.com/css/#tables
-            $(function(){ $(\"table\").addClass(\"table table-bordered table-striped table-hover table-condensed table-responsive\"); });
-           </script>
-       </head>
-       <body lang=\"en-US\">
-         <div class=\"container\">
-         <h1>%s</h1>"
-         title title))
-
-(def footer
-  "Defines the footer of the generated documentation page."
-  "</div></body></html>")
-
-(defn renderer
-  "Given a hash-map of HTML page data, renders a complete HTML page."
-  [data]
-  (str (header (:page-title data))
-       (:page-content data)
-       footer))
-
-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
 ;;; Core API Documentation Functions
 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
 

  (:import
   [org.pegdown PegDownProcessor
                Extensions]))

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;; Routing Setup


  ## Generating Documentation

  At the lowest level, static files can be generated with the `generate`
  function in this namespace. As noted above, you should also add an alias in
  the `project.clj` for generating the documentation in the `project.clj`. At
  that point, documentation may be generated for a project by simply executing
  the following at the command line:

  ```
  $ lein generate-docs
  ```"
  (:require
   [clojure.java.io :as io]
