diff --git a/doclet/resources/classes.edn b/doclet/resources/classes.edn index ccd5b7e..6eb10d9 100644 --- a/doclet/resources/classes.edn +++ b/doclet/resources/classes.edn @@ -16,7 +16,7 @@ "attribute! :blending" :static-methods} "Body" {"body!" :methods} "BodyDef" {"body-def" :fields} - "Bresenham2" {"bresenham2!" :methods} + "Bresenham2" {"bresenham-2!" :methods} "BSpline" {"b-spline!" :methods} "Button.ButtonStyle" {"style :button" :constructors} "CatmullRomSpline" {"catmull-rom-spline!" :methods} diff --git a/doclet/src/clojure/play_clj_doclet/html.clj b/doclet/src/clojure/play_clj_doclet/html.clj index 4985ec0..dab8d89 100644 --- a/doclet/src/clojure/play_clj_doclet/html.clj +++ b/doclet/src/clojure/play_clj_doclet/html.clj @@ -16,19 +16,23 @@ [:b (str name)] " " (string/join ", " (map param args))] - (when text [:i text])]) + (when text + [:i text])]) (defn create-from-file - [parsed-file] - (for [group (:groups parsed-file)] - [:div - [:h1 {} (:name group)] - (:docstring group) - (for [[name items] (:java group)] - [:div - (when (not= (:name group) name) - [:h3 name]) - (map item items)])])) + [{:keys [ns groups] :as parsed-file}] + [:div + (when (and ns (> (count groups) 0)) + [:h1 ns]) + (for [group groups] + [:div + [:h2 {} (:name group)] + (:docstring group) + (for [[name items] (:java group)] + [:div + (when (not= (:name group) name) + [:h3 name]) + (map item items)])])]) (defn create [parsed-files]