Skip to content

Commit b29b16a

Browse files
committed
add some docs to -main
1 parent e0cd269 commit b29b16a

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

codox/src/codox/main.clj

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,18 @@
109109
:documents documents)))))
110110

111111
(defn -main
112+
"The main entry point for reading API information from files in a directory.
113+
114+
To analyze a project (debugging etc.) follow these steps:
115+
116+
1. unzip the project's jar into a directory
117+
2. add the project's coordinates to the local `deps.edn` file
118+
3. add the jar contents directory to `:paths` in `deps.edn`
119+
120+
You can then call this main function as follows:
121+
122+
clj -m codox.main clojurescript jar-contents-dir/
123+
clj -m codox.main clojure jar-contents-dir/"
112124
[lang path]
113125
(println "Analyzing lang:" lang)
114126
(println "Analyzing path:" path)

0 commit comments

Comments
 (0)