Skip to content
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

Expose Links in Catalog #1184

Merged

Conversation

abelsromero
Copy link
Member

Kind of change

  • Bug fix
  • New non-breaking feature
  • New breaking feature
  • Documentation update
  • Build improvement

Description

What is the goal of this pull request?
Expose Links in the Catalog Assest to offer the same features as in core Asciidoctor https://docs.asciidoctor.org/asciidoctor/latest/api/catalog-assets/.

How does it achieve that?

Add new Link interface and accessors methods to Catalog interface.

There are also some improvements to javadocs to ImageReference.

Are there any alternative ways to implement this?

Original links in Asciidoctor are just a string and I could have gone with just that. But I decided to wrap them in an Java interface to protect from future evolutions. I can imagine maybe at some point Link also contain information about the text or attributes being applied in the macro.

Are there any implications of this pull request? Anything a user must know?
No

Issue

Fixes #1183

Release notes

Please add a corresponding entry to the file CHANGELOG.adoc

@abelsromero abelsromero force-pushed the issue-1183-add-links-to-catalog branch from ed322f7 to 03968ff Compare April 21, 2023 14:19
Add new Link interface and accessors methods to Catalog interface.
Original links in asciidoctor are just a string but here we wrap them
in an object to protect from future evolutions.

Fixes asciidoctor#1183
@robertpanzer robertpanzer merged commit 7a3dde0 into asciidoctor:main Apr 22, 2023
@robertpanzer
Copy link
Member

Awesome! That's great!

@abelsromero abelsromero deleted the issue-1183-add-links-to-catalog branch April 22, 2023 15:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Expose 'links' from catalog assets
2 participants