-
-
Notifications
You must be signed in to change notification settings - Fork 48
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Tweak bb doc task that offers cljdoc previews (#319)
The `doc` command has the same commands. Workflow remains: - `bb doc start` to start cljdoc docker image - while verifying, repeat: 1. make some edits 2. commit and push edits to branch 3. `bb doc ingest` to locally install jar and then ingest it into cljdoc 4. `bb doc view` to bring up docs in your browser (or if already open simply refresh them in browser) - when done: `bb doc stop` to stop cljdoc docker image Because polylith generates 2 artifacts the `ingest` and `view` commands optionally take `poly` (the default) or `api` as an extra arg. This effort was to get a preview flow working for polylith. We can address other issues, such as not documenting internal namespaces as a separate effort. Some details: - cleaned out unused gunk from `bb.edn`, wasn't sure if tasks other than `doc` are needed, so left them in. - added `install` and `version` commands to `build.clj` - switched to modern bb-isms in `cljdoc-preview.clj` - switched from nubank/docopt to babashka/cli - switched from babashka/curl to babashka/http-client - took advantage of newer babashka/fs functions - turfed all my script helpers
- Loading branch information
1 parent
88e7ab4
commit 53f3620
Showing
7 changed files
with
134 additions
and
260 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.