On Thu, Apr 9, 2015 at 3:41 AM, henrik42 <henrikhe...@web.de> wrote: > Hi, > > I'd like to ship my app *incl. documentation* as an uberjar to end-users > and give them access to the docs via HTTP. > I plan to use codox/marginalia/markdown-clj to produce the HTML in lein > build and then build the uberjar incl. the generated HTML. > > The app will have a CLI but as a plus I'd like to offer something like > > java -jar uber.jar view-docs > > which should run an HTTP Server and start-up the users default browser and > connect that to the HTTP Server (with no-proxy). > > Is there a simple out-of-the-box way to do that? Or should I just use > jetty and ring? >
I would call `run-jetty` with the `wrap-resource` middleware, and have the handler default to 404. As for opening a browser window, there's `browse-url`. http://clojure.github.io/clojure/clojure.java.browse-api.html -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en --- You received this message because you are subscribed to the Google Groups "Clojure" group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.