Show namespaces

This commit is contained in:
oakes
2014-03-31 12:28:13 -04:00
parent f1e3458edc
commit 1cc40a3b32
2 changed files with 16 additions and 12 deletions

View File

@@ -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}

View File

@@ -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]