I have come across two issues. I have quite a big file, which consists of chapters, and I can create a beautiful PDF from it. The master file,
document.adoc looks like this:
(...)
:sectlinks:
:idprefix:
:idseparator: -
= Title
toc::[]
include::chapter1.adoc[]
include::chapter2.adoc[]
(...)
I have come across two issues which I cannot handle despite a lot of Google-Fu:
1. I want to have a link in
chapter1, which redirects the user to a specific fragment (
anchor) in
chapter2 (I believe this is called inter-document cross reference). I saw
this topic, but following the included example project didn't work out for me. When generating either a PDF or a HTML version of the document, the link still redirects to e.g. chapter2.pdf#anchor (non-existing file), and not to document.pdf#anchor . I would like this to also work in multiple pages HTML output, which leads me to the second question...
2. ...what is the best and simplest way to transform these .adoc files to a simple
multiple pages HTML with a working search bar? What tools should I use and in what order, is there a way to do this from this master
document.adoc file?