Fork me on GitHub
#cljdoc
<
2019-07-13
>
lread20:07:40

Heya! I am happily writing up some asciidocs for a project that will eventually end up on cljdocs. I have been using a browser extension (https://github.com/asciidoctor/asciidoctor-browser-extension) to test locally and now am verifying locally with cljdocs itself. I am noticing that some formatting is stronger from the browser plugin. Actually the browser plugin seems to almost match the asciidoctor docs, so I can point there for examples.

lread20:07:34

One example is the callout formatting. Quite nice from asciidoctor https://asciidoctor.org/docs/user-manual/#callouts, but not nearly as obvious from cljdocs when I am testing locally.

lread20:07:21

We get the nice strong black numbered circles on asscidoctor and instead text like (1) that does not catch the eye as well from cljdoc.

lread20:07:28

Also, source code blocks can have a title, this is pretty clear in this example: https://asciidoctor.org/docs/user-manual/#applying-source-highlighting but the title appears, in my testing, as normal text for cljdoc.

lread20:07:24

Anyway, I am happy to raise illustrative git issues (and fix if you are interested) if you agree that these types of changes are of interest.

martinklepsch20:07:58

Totally of interest 👌🙌

lread20:07:49

Coolio will doolio!

😊 4
parrot 4
lread20:07:59

I’m currently struggling with how to express a root relative link in asciidocs (in general, nothing cljdoc specific here). This would allow me to have a link that automatically works when testing locally with cljdoc and after it was published. My use case is linking from an article to an api. I’d like to say link:/d/clj-commons/rewrite-cljc/CURRENT/api/rewrite-cljc/parse[parse API docs] instead of [parse API docs] Anybody know if this can work in asciidocs?

martinklepsch21:07:55

I’m not sure I fully understand. Would you like to use relative links in the source document?

lread21:07:22

I was thinking relative from the root (aka domain) would be cleanest, but I don’t think asciidoc can do those. I’ll poke around a bit more.

lread21:07:35

Oh hmm… I should probably not use root relative because my docs will also be read from github.

martinklepsch21:07:07

Yeah, that’s something I’d like to support if possible - if possible docs should be readable on GitHub/etc. that’s why all the relative link rewriting stuff is in place for articles

martinklepsch21:07:50

Potentially we could rewrite source file links to their respective API docs but there will be other trade offs around that decision

lread21:07:31

I’m going to happily abandon my little relative link quest for now. Does not seem worth it. simple_smile