 (hiccups/defhtml literal [n]
   [:span.literal-c3029 n])
 
-(hiccups/defhtml fn-link [nme]
-  [:a.fn-a8476 (encode nme)])
+(defn- nme->cljdocs-url [nme]
+  (-> nme
+    (clojure.string/replace "?" "_q")
+    encode-uri))
+
+(defn- docs-href [nme nme-space]
+  (str "http://clojuredocs.org/"
+       (encode-uri nme-space) "/"
+       (nme->cljdocs-url nme)))
+
+(hiccups/defhtml fn-link
+  ([nme] (fn-link nme "clojure.core"))
+  ([nme nme-space]
+    [:a.fn-a8476
+      {:href (docs-href nme nme-space)}
+      (encode nme)]))
 
 ;;------------------------------------------------------------------------------
 ;; Sections

            (fn-link "get")
            (fn-link "subs")
            (literal "(clojure.string/)")
            (fn-link "join")
            (fn-link "escape")
            (fn-link "split")
            (fn-link "split-lines")
            (fn-link "replace")
            (fn-link "replace-first")
            (fn-link "reverse")]]
        [:tr.odd-372e6
          [:td.label-9e0b7 "Regex"]
          [:td.body-885f4

            (fn-link "re-matches")
            (fn-link "re-pattern")
            (literal "(clojure.string/)")
            (fn-link "replace" clj-string)
            (fn-link "replace-first" clj-string)]]
        [:tr.even-ff837
          [:td.label-9e0b7 "Letters"]
          [:td.body-885f4
            (literal "(clojure.string/)")
            (fn-link "capitalize" clj-string)
            (fn-link "lower-case" clj-string)
            (fn-link "upper-case" clj-string)]]
        [:tr.odd-372e6
          [:td.label-9e0b7 "Trim"]
          [:td.body-885f4
            (literal "(clojure.string/)")
            (fn-link "trim" clj-string)
            (fn-link "trim-newline" clj-string)
            (fn-link "triml" clj-string)
            (fn-link "trimr" clj-string)]]
        [:tr.even-ff837
          [:td.label-9e0b7 "Test"]
          [:td.body-885f4
            (fn-link "char")
            (fn-link "string?")
            (literal "(clojure.string/)")
            (fn-link "blank?" clj-string)]]]]])

(hiccups/defhtml atoms-section []
  [:div.section-31efe
