Links and one page HTML

Posted by melix on
URL: https://discuss.asciidoctor.org/Links-and-one-page-HTML-tp429.html

Hi guys,

As some of you are aware, we started writing the new documentation for the Groovy language using Asciidoctor (and the Gradle plugin). We faced several "minor" issues but so far so good, nothing critical yet. However, there's one place were we didn't find any answer: currently, we're generating one file per asciidoc source file plus a big "index.html" file corresponding to the whole documentation bundled in a single file (using include directives). This works quite good but there's a problem with links. For example, one can write this:

link:invokedynamic-support.html

Which would be good to link from one page to another, but when rendering the full page (index.html), we would like it to be replaced with an internal link.

Any idea how we can do this?

Thanks!