cljdoc

https://cljdoc.org/ & https://github.com/cljdoc/cljdoc
Nolan 2019-12-20T22:36:34.013600Z

hi there! new to cljdoc, but really invigoratingly awesome effort. im gonna take the plunge here pretty soon regardless, but im curious about how you (@martinklepsch) are thinking about something i could see myself running into. ive looked for examples of this, but havent found much yet (but maybe have been looking in the wrong places). ive got a few libraries that have JS APIs as well, but the articles ill be writing will apply to usage from all hosts. so the urge is to put JS examples adjacent to to the CLJ/S examples. would having some JS documentation sprinkled in violate any sort of mechanical or conceptual integrity of cljdoc? i dont have any existing (formal) documentation, otherwise linking out might make more sense. since this is a new documentation effort, id love for it all to be in a central place. i noticed that datascript has a relatively thin wiki article on the JS API in github, but no mention of it in the cljdoc. it may be a stupid question (either: "duh, just put it in there!" or "keep your JS to yourself!"), just trying to get an idea of how you're thinking about this. this is probably related to the javadoc discussion literally inches above this ^, but just 👌 slightly different? since from what i can tell, there was existing documentation in the mix. in any case, apologies if this should be considered a duplicate

Nolan 2019-12-20T22:38:28.014200Z

separately, cljdoc is truly gorgeous to read

Nolan 2019-12-20T22:38:38.014400Z

i mean wow.

dominicm 2019-12-20T23:16:25.016100Z

It's up to you I guess. I wouldn't expect cljdoc to do much analysis necessarily. You could hide the js examples using asciidoc #ifdef

Nolan 2019-12-20T23:31:30.018100Z

right on. thats what i had suspected would be the response, but just wanted to toss it out there and see what came back. thanks @dominicm.

martinklepsch 2019-12-20T23:40:07.021200Z

@nolan it’s unlikely that cljdoc will integrate analysis/api docs for Java or JavaScript on time horizon that is relevant for you. I personally tend to consider them out of scope but I’m also not going to be in anyone’s way if they have a strong urge to push this.

👍 1
martinklepsch 2019-12-20T23:41:07.023500Z

What you can do for now is putting JS API docs into markdown/asciidoc files and potentially generate those files using a third party tool

Nolan 2019-12-20T23:41:22.023800Z

oh, yeah, i dont even think id really use or urgently desire JS analysis tools. itd be more about any conceptual impedance of having any sort of JS documentation on cljdoc, if that was some sort of sin or whatnot

martinklepsch 2019-12-20T23:41:54.024600Z

If you think it’s helpful for the users of your thing it’s wanted on cljdoc :)

💯 1
👏 1
1
🙏 1
Nolan 2019-12-20T23:43:39.026300Z

epic epic epic. thanks again. looking very forward to working with it. absolutely loved the talk at clojuretre on it...just rewatched it again and got all fired up about docs

martinklepsch 2019-12-20T23:47:12.026600Z

Very happy to hear!

martinklepsch 2019-12-20T23:47:39.027200Z

Looking forward to see what you‘ll make ☺️