-
-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ENHANCEMENT: Page hierarchy based on nav.adoc #26
Comments
@andreas-hempel thanks for this input. I also thought into that direction, yet failed to find a suitable approach for that. There is a simple technical reason, the output plugin interface receives the already translated .html files and i do not have access to the asciidoc source (at least no convinient). However, i keep this in mind and will try to make this possible, since this would be a really nice feature. |
Hello @PacoVK, the generated navigation is contained in the <nav> tag in every HTML file. There, the navigation is mapped in corresponding <ul> and <li> tags. The target file can then be found in the corresponding href attributes. Would this be an idea for building the navigation in confluence?
Unfortunately, this approach is only indirect, but could be used as an experimental feature. Kind Regards, |
I guess the idea is good 🤔 would also very much like this feature! |
I really put many thoughts into this, because i do see value in here. However i still could not manage to get a satisfying solution to that. The navigation is totally free and up to the user how to structure and title. This can lead to lots of duplicates and naming conflicts. While Antora could handle that easily, Confluence cannot due to the constraint how pages are designed and Captain could eg. not guess what is a cross-ref and which is the main link in. a nav. This means every page that get linked in a nav more than once across the whole Antora docs, would be duplicated and would also need a prefix, which in the end also means changes to that page are very hard to propagate and track. any idea/ recommendation would be appreciated :) |
Hmm... In Antora, page has breadcrumbs at its top. So it knows what is its "primary" path, no? UPD: Yep, I've just tried. The first page reference in |
Hello @PacoVK,
in Antora I define the navigation for the generated HTML in the nav.adoc file.
When I transfer the documentation to confluence, the page hierarchy from the nav.adoc file is lost.
Is there a possibility in a future version that the page hierarchy in confluence will correspond to the one defined in the nav.adoc file?
In the attachment you will find an example project to illustrate.
confluence-issue.zip
WORAROUND:
I currently have to move the pages manually. If I execute the transfer from Antora again, the page hierarchy is retained, new pages are then inserted at the top level and have to be edited manually. It would be great if this could be done automatically, especially for larger documentation.
Kind Regards,
Andreas
The text was updated successfully, but these errors were encountered: