Skip to content

Commit a233827

Browse files
committed
Improve codox release process comments
1 parent 8304c5d commit a233827

1 file changed

Lines changed: 27 additions & 9 deletions

File tree

project.clj

Lines changed: 27 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -16,17 +16,35 @@
1616
:global-vars {*warn-on-reflection* true}
1717
:plugins [[lein-codox "0.10.7"]
1818
[lein-cljsbuild "1.1.5"]]
19-
;; To generate codox files for a release:
20-
;; 1) checkout the tagged git commit
21-
;; 2) tweak the project.clj version to match, since
19+
;; To generate codox files (which are hosted on the gh-pages branch)
20+
;; for a release:
21+
;;
22+
;; 1) if the current content should be preserved as documentation
23+
;; for an old release, first copy it to a subdirectory and
24+
;; add a link in doc/api-docs-for-older-versions.md (on the
25+
;; master branch, I guess, though that won't help when building
26+
;; from an older tag, so you may also manually add that change
27+
;; to the api-docs-for-older-versions.html file on the gh-pages
28+
;; branch as well, which is no fun)
29+
;; 2) checkout the tagged git commit
30+
;; 3) tweak the project.clj version to match, since
2231
;; jenkins only updates the pom.xml
23-
;; 3) tweak the :source-uri entry below, replacing "master"
32+
;; 4) tweak the :source-uri entry below, replacing "master"
2433
;; with the appropriate tag
25-
;; 4) run `lein codox`
26-
;; 5) copy target/doc into the gh-pages branch source tree
27-
;; 6) optionally also make sure the appropriate version-specific
28-
;; subdirectories are populated, and linked to from
29-
;; doc/api-docs-for-older-versions.md
34+
;; 5) run `lein codox`
35+
;; 6) copy target/doc into the gh-pages branch source tree, commit
36+
;; and push; e.g., if you have the gh-pages branch open on a
37+
;; worktree at gitignored/gh-pages, then this might work:
38+
;; D1=target/doc
39+
;; D2=gitignored/gh-pages
40+
;; for file in $(ls $D1); do
41+
;; if [[ -e $D2/$file ]]; then
42+
;; rm -rf $D2/$file
43+
;; fi
44+
;; cp -r {$D1,$D2}/$file
45+
;; done
46+
;; 7) check the result at http://clojure.github.io/test.check/ ;
47+
;; the source links should go to the correct tag on github
3048
:codox {:namespaces [clojure.test.check
3149
clojure.test.check.clojure-test
3250
clojure.test.check.generators

0 commit comments

Comments
 (0)