Open
Description
Yesterday, 2021-08-22 I learned about Antora at FrOSCon 2021. It was presented by the developer of the IntelliJ Asciidoctor Plugin.
While I'm not yet using Asciidoctor, I only learned about it a day ago ;), It sounds quite promising and useful, what he presented. Unfortunately there is no recording available yet.
Features
workspace
antora.yml
- detect
antora.yml
files in the workspace and ask user if they want to enable Antora support
site-manifest.json
- allow to configure a path to a site-manifest.json file
- read and parse the site-manifest.json file to provide autocompletion on pages (xref, include, link...)
Preview
- include AsciiDoc attributes defined in the
antora.yml
in the preview #691 - resolve
image
resource IDs in the preview - resolve
include
resource IDs in the preview - resolve
xref
resource IDs in the preview
Navigate
- support "Go to" (cmd+click) on image resource IDs (for instance,
image:2.0@cli:commands:seaswell.png[]
) #692 - support "Go to" (cmd+click) on xref resource IDs (for instance,
xref:module:filename.adoc[]
) - support "Go to" (cmd+click) on include resource IDs (for instance,
include::include::ROOT:partial$treeline-warning.adoc[]
)
Auto-completion
- add images auto-completion when Antora is enabled #693
- images within the same module
- images from other modules
- images from other components
- add includes auto-completion in this order
- attachments within the same module
- attachments from other modules
- attachments from other components
- add xref auto-completion in this order
- pages within the same module
- pages from other modules
- pages from other components
Suggestions/actions
- transform a resource ID to a fully qualified ID (for instance, from
image:seaswell.png[]
toimage:2.0@cli:commands:seaswell.png[]
) - suggest to simplify a resource ID (for instance, from
image:2.0@cli:commands:seaswell.png
toimage:seaswell.png[]
if the image is referenced in the same component/module/version)