# Cljdoc alpha

**URL:** <https://clojureverse.org/t/cljdoc-alpha/2172>\
**Category:** cljdoc\
**Tags:** documentation\
**Created:** [May 22, 2018, 3:44pm UTC](https://clojureverse.org/t/cljdoc-alpha/2172 "2018-05-22T15:44:32Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![martinklepsch](https://clojureverse.org/user_avatar/clojureverse.org/martinklepsch/32/80_2.png) [@martinklepsch](https://clojureverse.org/u/martinklepsch)\
**Post date:** [May 22, 2018, 3:44pm UTC](https://clojureverse.org/t/cljdoc-alpha/2172/1 "2018-05-22T15:44:32Z")

</div>

Hey everyone! 👋

Over the last months I’ve been working on **cljdoc** , a platform to build, host and view documentation for Clojure/Script libraries. Some notable capabilities:

- **Platform Aware** , i.e. documentation covers both platforms, `.clj` and `.cljs`.
- **Versioned** , i.e. old versions are kept available
- **It’s A Database.** Enabling many more interesting use-cases down the road.
- **Support for non-API documentation.** You can define a tree of articles and provide it via your Git repo.
- **Hassle-free for library authors.**

The [homepage](https://cljdoc.xyz/) has all the information and some further links.

In the long run I hope that this platform can help drive improvements to documentation in the Clojure ecosystem. I’d love to see docsets for [documentation browser apps](https://kapeli.com/dash), [live examples](https://github.com/oakes/Dynadoc) right next to documentation. I’d love to see the Clojure community be a place where other communities draw inspiration from for their own documentation tooling.\*

Please give it a shot and let me know what you think!

* * *

PS. I’m considering opening an org on [OpenCollective](http://opencollective.com/) to ensure this is a sustainable effort. For our application we need more stars on [GitHub](https://github.com/martinklepsch/cljdoc) 😉

\* Shout out to [https://docs.rs](https://docs.rs) and [https://hexdocs.pm](https://hexdocs.pm) for being an inspiration for this project.

---

<div class="post-metadata">

**Author:** ![alanmarazzi](https://clojureverse.org/user_avatar/clojureverse.org/alanmarazzi/32/1094_2.png) [@alanmarazzi](https://clojureverse.org/u/alanmarazzi)\
**Post date:** [May 22, 2018, 3:47pm UTC](https://clojureverse.org/t/cljdoc-alpha/2172/2 "2018-05-22T15:47:15Z")

</div>

The homepage link is broken

---

<div class="post-metadata">

**Author:** ![martinklepsch](https://clojureverse.org/user_avatar/clojureverse.org/martinklepsch/32/80_2.png) [@martinklepsch](https://clojureverse.org/u/martinklepsch)\
**Post date:** [May 22, 2018, 3:50pm UTC](https://clojureverse.org/t/cljdoc-alpha/2172/3 "2018-05-22T15:50:00Z")

</div>

> [@alanmarazzi](#):
>
> The homepage link is broken

Are you sure? It’s working fine for me.

---

<div class="post-metadata">

**Author:** ![sveri](https://clojureverse.org/user_avatar/clojureverse.org/sveri/32/63_2.png) [@sveri](https://clojureverse.org/u/sveri)\
**Post date:** [May 22, 2018, 6:22pm UTC](https://clojureverse.org/t/cljdoc-alpha/2172/4 "2018-05-22T18:22:33Z")

</div>

This looks good so far.

If I may, it would be nice that instead of seeing an empty page when opening a project / library to instantly display the README, if it is available in that project.

---

<div class="post-metadata">

**Author:** ![martinklepsch](https://clojureverse.org/user_avatar/clojureverse.org/martinklepsch/32/80_2.png) [@martinklepsch](https://clojureverse.org/u/martinklepsch)\
**Post date:** [May 22, 2018, 8:08pm UTC](https://clojureverse.org/t/cljdoc-alpha/2172/5 "2018-05-22T20:08:13Z")

</div>

> [@sveri](#):
>
> If I may, it would be nice that instead of seeing an empty page when opening a project / library to instantly display the README, if it is available in that project.

Yeah, that’s a good idea. Deployed 🚀 ([commit](https://github.com/martinklepsch/cljdoc/commit/edc8d3f3c1e047429d0dbacf60b9a85743421810))

---

<div class="post-metadata">

**Author:** ![mjmeintjes](https://clojureverse.org/user_avatar/clojureverse.org/mjmeintjes/32/860_2.png) [@mjmeintjes](https://clojureverse.org/u/mjmeintjes)\
**Post date:** [May 22, 2018, 8:34pm UTC](https://clojureverse.org/t/cljdoc-alpha/2172/6 "2018-05-22T20:34:44Z")

</div>

This is a great idea. Hopefully it can become a useful resource. I think it’ll be a great way to discover good libraries as well in the future - knowing that they have good documentation is at least a indication of quality.

Just one question - if the project documentation articles are in a separate repo, is it possible to refer to that repo inside the edn config file?

---

<div class="post-metadata">

**Author:** ![martinklepsch](https://clojureverse.org/user_avatar/clojureverse.org/martinklepsch/32/80_2.png) [@martinklepsch](https://clojureverse.org/u/martinklepsch)\
**Post date:** [May 22, 2018, 8:41pm UTC](https://clojureverse.org/t/cljdoc-alpha/2172/7 "2018-05-22T20:41:09Z")

</div>

> [@mjmeintjes](#):
>
> Just one question - if the project documentation articles are in a separate repo, is it possible to refer to that repo inside the edn config file?

Currently that’s not possible. I personally think there is value in versioning documentation alongside code but would be curious to get more context around how you would make use of that…

---

<div class="post-metadata">

**Author:** ![mjmeintjes](https://clojureverse.org/user_avatar/clojureverse.org/mjmeintjes/32/860_2.png) [@mjmeintjes](https://clojureverse.org/u/mjmeintjes)\
**Post date:** [May 22, 2018, 9:05pm UTC](https://clojureverse.org/t/cljdoc-alpha/2172/8 "2018-05-22T21:05:46Z")

</div>

I was just curious, as I know some projects that I use have documentation is separate repositories, e.g keechma - [https://github.com/keechma/keechma-docs](https://github.com/keechma/keechma-docs), [https://github.com/shadow-cljs/shadow-cljs.github.io](https://github.com/shadow-cljs/shadow-cljs.github.io).

Was just wondering whether it would be possible to add projects like that without having to change the current documentation websites/processes.

---

<div class="post-metadata">

**Author:** ![martinklepsch](https://clojureverse.org/user_avatar/clojureverse.org/martinklepsch/32/80_2.png) [@martinklepsch](https://clojureverse.org/u/martinklepsch)\
**Post date:** [May 22, 2018, 9:16pm UTC](https://clojureverse.org/t/cljdoc-alpha/2172/9 "2018-05-22T21:16:48Z")

</div>

Got it, thanks! 🙂 It’s technically possible to enable this kind of thing but one thing that works fairly well when the docs are stored with the source is linking Git revisions to Maven/Clojars releases. This allows us to show documentation appropriate for a given version instead of just showing the latest (possibly with API docs that conflict this non-API documentation).

While possible this kind of linking would become more tricky when done across multiple repos.

I hope this makes sense! A [related discussion](https://github.com/martinklepsch/cljdoc/issues/31) also came up in a GitHub issue (there are situations where you want to update articles after a release has been cut).

---

<div class="post-metadata">

**Author:** ![l3nz](https://clojureverse.org/user_avatar/clojureverse.org/l3nz/32/713_2.png) [@l3nz](https://clojureverse.org/u/l3nz)\
**Post date:** [May 23, 2018, 6:40am UTC](https://clojureverse.org/t/cljdoc-alpha/2172/10 "2018-05-23T06:40:14Z")

</div>

Well done. Is there a canonical way to link to Cljdoc from a project repo, like a badge or something? At the moment I’m using a direct link.

---

<div class="post-metadata">

**Author:** ![martinklepsch](https://clojureverse.org/user_avatar/clojureverse.org/martinklepsch/32/80_2.png) [@martinklepsch](https://clojureverse.org/u/martinklepsch)\
**Post date:** [May 23, 2018, 6:48am UTC](https://clojureverse.org/t/cljdoc-alpha/2172/11 "2018-05-23T06:48:30Z")

</div>

> [@l3nz](#):
>
> Is there a canonical way to link to Cljdoc from a project repo, like a badge or something?

Not yet but definitely intending to have this kind of thing. In the meantime, maybe this [shields.io](http://shields.io) badge is a good start?

![](https://img.shields.io/badge/cljdoc-1.0.0-blue.svg)

```plaintext
https://img.shields.io/badge/cljdoc-1.0.0-blue.svg

```

---

<div class="post-metadata">

**Author:** ![l3nz](https://clojureverse.org/user_avatar/clojureverse.org/l3nz/32/713_2.png) [@l3nz](https://clojureverse.org/u/l3nz)\
**Post date:** [May 23, 2018, 7:16am UTC](https://clojureverse.org/t/cljdoc-alpha/2172/12 "2018-05-23T07:16:03Z")

</div>

Looks great in blue [https://github.com/l3nz/cli-matic](https://github.com/l3nz/cli-matic)

---

<div class="post-metadata">

**Author:** ![kumarshantanu](https://clojureverse.org/user_avatar/clojureverse.org/kumarshantanu/32/678_2.png) [@kumarshantanu](https://clojureverse.org/u/kumarshantanu)\
**Post date:** [May 23, 2018, 9:22am UTC](https://clojureverse.org/t/cljdoc-alpha/2172/13 "2018-05-23T09:22:31Z")

</div>

This is so awesome! A minor nitpick though - the embedded links (in README.md) are probably not rendered correctly, e.g. here: [https://cljdoc.xyz/d/preflex/preflex/0.4.0/doc/readme/](https://cljdoc.xyz/d/preflex/preflex/0.4.0/doc/readme/)

Shantanu

---

<div class="post-metadata">

**Author:** ![alanmarazzi](https://clojureverse.org/user_avatar/clojureverse.org/alanmarazzi/32/1094_2.png) [@alanmarazzi](https://clojureverse.org/u/alanmarazzi)\
**Post date:** [May 23, 2018, 10:00am UTC](https://clojureverse.org/t/cljdoc-alpha/2172/14 "2018-05-23T10:00:08Z")

</div>

You’re right, sorry I was behind a proxy that weirdly doesn’t accept that connection and isn’t clear about it 😅

---

<div class="post-metadata">

**Author:** ![martinklepsch](https://clojureverse.org/user_avatar/clojureverse.org/martinklepsch/32/80_2.png) [@martinklepsch](https://clojureverse.org/u/martinklepsch)\
**Post date:** [May 23, 2018, 10:10am UTC](https://clojureverse.org/t/cljdoc-alpha/2172/15 "2018-05-23T10:10:28Z")

</div>

The link isn’t rendered correctly because there is no tag in the corresponding git repo for version 0.4.0.

We could fall back to master for this case or simply throw an error. Will look into it. Thanks for bringing this up and glad to hear this is useful to you 🙌

---

<div class="post-metadata">

**Author:** ![green-coder](https://clojureverse.org/user_avatar/clojureverse.org/green-coder/32/1752_2.png) [@green-coder](https://clojureverse.org/u/green-coder)\
**Post date:** [May 23, 2018, 10:39am UTC](https://clojureverse.org/t/cljdoc-alpha/2172/16 "2018-05-23T10:39:14Z")

</div>

This is great.

What I miss is a link somewhere to return to the root of the website (for example from [https://cljdoc.xyz/d/reagent/reagent/0.8.1/doc/readme/](https://cljdoc.xyz/d/reagent/reagent/0.8.1/doc/readme/) we need a link to go back to [https://cljdoc.xyz](https://cljdoc.xyz))

---

<div class="post-metadata">

**Author:** ![martinklepsch](https://clojureverse.org/user_avatar/clojureverse.org/martinklepsch/32/80_2.png) [@martinklepsch](https://clojureverse.org/u/martinklepsch)\
**Post date:** [May 23, 2018, 12:19pm UTC](https://clojureverse.org/t/cljdoc-alpha/2172/17 "2018-05-23T12:19:46Z")

</div>

> [@green-coder](#):
>
> What I miss is a link somewhere to return to the root of the website (for example from [https://cljdoc.xyz/d/reagent/reagent/0.8.1/doc/readme/](https://cljdoc.xyz/d/reagent/reagent/0.8.1/doc/readme/) we need a link to go back to [https://cljdoc.xyz](https://cljdoc.xyz))

Fixed, the “cljdoc alpha” badge now links back to the homepage:

 ![07](https://clojureverse.org/uploads/default/original/2X/7/719dc0c9de8b2bea56492a5b65bec6d2d4b71ba6.png)

---

<div class="post-metadata">

**Author:** ![martinklepsch](https://clojureverse.org/user_avatar/clojureverse.org/martinklepsch/32/80_2.png) [@martinklepsch](https://clojureverse.org/u/martinklepsch)\
**Post date:** [May 23, 2018, 4:45pm UTC](https://clojureverse.org/t/cljdoc-alpha/2172/18 "2018-05-23T16:45:07Z")

</div>

Just deployed some code that adds source-links to projects that are linked to GitHub properly (git tag or sha in pom.xml). Unfortunately the change requires a rebuild of documentation to take effect so it won’t be available for all projects immediately.

See it in action here: [https://cljdoc.xyz/d/reagent/reagent/0.8.1/api/reagent.core](https://cljdoc.xyz/d/reagent/reagent/0.8.1/api/reagent.core)  
And note that all links are tied to a specific git revision, **not simply master.** 🙂

---

<div class="post-metadata">

**Author:** ![pesterhazy](https://clojureverse.org/user_avatar/clojureverse.org/pesterhazy/32/395_2.png) [@pesterhazy](https://clojureverse.org/u/pesterhazy)\
**Post date:** [May 23, 2018, 4:47pm UTC](https://clojureverse.org/t/cljdoc-alpha/2172/19 "2018-05-23T16:47:30Z")

</div>

Fantastic! Works really well

---

<div class="post-metadata">

**Author:** ![martinklepsch](https://clojureverse.org/user_avatar/clojureverse.org/martinklepsch/32/80_2.png) [@martinklepsch](https://clojureverse.org/u/martinklepsch)\
**Post date:** [May 29, 2018, 8:12pm UTC](https://clojureverse.org/t/cljdoc-alpha/2172/20 "2018-05-29T20:12:23Z")

</div>

Some **features shipped** recently:

- Build logs: [overview](https://cljdoc.xyz/builds) & [individual](https://cljdoc.xyz/builds/35)
- Articles now have an “Edit on GitHub” link at the end of the page ([example](https://cljdoc.xyz/d/com.bhauman/spell-spec/0.1.0/doc/readme/))
- If you [properly specify your SCM url](https://github.com/martinklepsch/cljdoc/blob/master/doc/userguide/faq.md#how-do-i-set-scm-info-for-my-project), we show links to source for each var.  
These links are tied to the specific Git revision for the given version ([example](https://cljdoc.xyz/d/com.bhauman/spell-spec/0.1.0/api/spell-spec.alpha#strict-keys))
- Support for -SNAPSHOT releases
- Lots of bugs introduced & fixed 😅

If you would like to **contribute** , there are several issues tagged as [“Good First Issue”](https://github.com/martinklepsch/cljdoc/issues?q=is%3Aissue+is%3Aopen+label%3A%22Good+First+Issue%22).

- If you’re good with JS and frontend stuff, [create a search UI](https://github.com/martinklepsch/cljdoc/issues/41).
- Want to smash some small bugs? [Here you go](https://github.com/martinklepsch/cljdoc/issues?utf8=%E2%9C%93&q=is%3Aissue+is%3Aopen+label%3ABug+label%3A%22Good+First+Issue%22)!
- Want to help make cljdoc more reliable? [Set up error tracking](https://github.com/martinklepsch/cljdoc/issues/48)
- Want to improve how cljdoc pages are shown on Google, Twitter & co? [Improve the meta tags we add to our pages](https://github.com/martinklepsch/cljdoc/issues/33).

If you’d like to contribute but none of these tickle your fancy… join #cljdoc on Slack and say hi! 🙂

There’s also a couple of larger things to think about: data model + storage & coming up with innovative twists on documentation that make it more useful. (Think emphasizing well documented vars/namespaces, examples, etc.)

I’ll personally focus on two things:

- **Tracking releases on Clojars.** In order to build docs for every release on Clojars we need to know when new releases are published. Clojars doesn’t have a datafeed for this and I’ll try to either contribute that to the Clojars API or work with their search API if it turns out sufficient.
- **Provide offline bundles.** I’m in contact with the creator of [Dash](https://kapeli.com/dash) (my favorite documentation browser) and it seems that we might get to integrate cljdoc sooner rather than later. As far as I understand this also means cljdoc docsets will be available for [Zeal](https://zealdocs.org/) - a cross platform OSS alternative.

See you around 👋

[Next page](https://clojureverse.org/t/cljdoc-alpha/2172.md?page=2)
