Skip to content

Commit 6d33896

Browse files
committed
lazily load doc strings
1 parent 6c25633 commit 6d33896

5 files changed

Lines changed: 209 additions & 188 deletions

File tree

CHANGELOG.md

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,6 @@
1414

1515
### Enhancements
1616
* #32: Asynchronously load implementation
17-
* new function `java-time/load-java-time` to force loading
18-
* by default, implementation is loaded asynchronously, use system property `java-time.no-async-load=true`
19-
to disable
2017

2118
### Internal
2219
* Remove `java-time.util/get-static-fields-of-type`

project.clj

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,17 +19,22 @@
1919
[org.threeten/threeten-extra ~threeten-extra-version]]
2020
:plugins [[lein-codox "0.10.8"]
2121
[jonase/eastwood "1.2.3"]]
22-
:codox {:namespaces [java-time java-time.repl]
23-
:doc-files ["README.md" "CHANGELOG.md"]
24-
:metadata {:doc/format :markdown}
25-
:output-path "docs"
26-
:source-uri "https://github.com/dm3/clojure.java-time/blob/{git-commit}/{filepath}#L{line}"}
22+
2723
:source-paths ["dev"]
2824
:global-vars {*warn-on-reflection* true}
2925
:eastwood {:exclude-namespaces [java-time
3026
;;FIXME
3127
java-time-test]
3228
:exclude-linters []}}
29+
;; lein doc
30+
:codox {:injections [(require 'java-time)
31+
(require 'java-time.impl.load)
32+
(java-time.impl.load/load-java-time)]
33+
:codox {:namespaces [java-time java-time.repl]
34+
:doc-files ["README.md" "CHANGELOG.md"]
35+
:metadata {:doc/format :markdown}
36+
:output-path "docs"
37+
:source-uri "https://github.com/dm3/clojure.java-time/blob/{git-commit}/{filepath}#L{line}"}}
3338
:async-profiler
3439
{:jvm-opts ["-Djdk.attach.allowAttachSelf" "-XX:+UnlockDiagnosticVMOptions" "-XX:+DebugNonSafepoints"]
3540
:dependencies [[com.clojure-goes-fast/clj-async-profiler "0.3.1"]]}

0 commit comments

Comments
 (0)