|
16 | 16 | :global-vars {*warn-on-reflection* true} |
17 | 17 | :plugins [[lein-codox "0.10.7"] |
18 | 18 | [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 |
22 | 31 | ;; 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" |
24 | 33 | ;; 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 |
30 | 48 | :codox {:namespaces [clojure.test.check |
31 | 49 | clojure.test.check.clojure-test |
32 | 50 | clojure.test.check.generators |
|
0 commit comments