Skip to content

Commit

Permalink
Make sure we put the json index in thee right subdirectory
Browse files Browse the repository at this point in the history
  • Loading branch information
tomfaulhaber committed Nov 10, 2010
1 parent e639bec commit 6fde1c7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/autodoc/build_html.clj
Original file line number Diff line number Diff line change
Expand Up @@ -481,9 +481,9 @@ vars in ns-info that begin with that letter"
[ns-info branch-info]
(when (params :build-json-index)
(with-open [out (writer (file (params :output-path)
(when (:first? branch-info)
(branch-subdir (:name branch-info)))
*index-json-file*))]
(str (when (not (:first? branch-info))
(str (branch-subdir (:name branch-info)) "/"))
*index-json-file*)))]
(binding [*out* out]
(pprint-json (structured-index ns-info (:name branch-info)))))))

Expand Down

0 comments on commit 6fde1c7

Please sign in to comment.