 
 ;; location of the clojure & clojurescript repos to parse
 (def repo-dir "repos")
+
+(def docs-repo-dir "cljs-api-docs")
 
 ;; location of the documents generated by this program
 (def ^:dynamic *output-dir* nil)

        strip-path (subs path (inc (count repo)))]
    (str "https://github.com/clojure/" repo "/blob/" version "/" strip-path
         "#L" start-line "-L" end-line)))

;;------------------------------------------------------------
;; Repo Helpers

        versions (split-lines (:out sh-return))]
    versions))

(defn get-version-num
  [v]
  (Integer/parseInt (subs v 1)))

(defn get-versions-to-parse
  [latest]
  (let [versions (get-repo-versions)]
    (if-not latest
      [nil versions]
      (let [latest-num (get-version-num latest)]
        (split-with #(<= (get-version-num %) latest-num) versions)))))

(defn checkout-version!
  [v]
