Skip to content

Commit 6fde1c7

Browse files
committed
Make sure we put the json index in thee right subdirectory
1 parent e639bec commit 6fde1c7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/autodoc/build_html.clj

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -481,9 +481,9 @@ vars in ns-info that begin with that letter"
481481
[ns-info branch-info]
482482
(when (params :build-json-index)
483483
(with-open [out (writer (file (params :output-path)
484-
(when (:first? branch-info)
485-
(branch-subdir (:name branch-info)))
486-
*index-json-file*))]
484+
(str (when (not (:first? branch-info))
485+
(str (branch-subdir (:name branch-info)) "/"))
486+
*index-json-file*)))]
487487
(binding [*out* out]
488488
(pprint-json (structured-index ns-info (:name branch-info)))))))
489489

0 commit comments

Comments
 (0)