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

Support for multiple macros on the same page #640

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

LukeCz
Copy link

@LukeCz LukeCz commented Jan 2, 2023

Hi, the current design assumes there is only one hardcoded swagger-ui div per page. When the macro is used multiple times, the content goes always to the 1st div. This proposed change is to parametrize the div name and script name using a simple global counter.

Hi, the current design assumes there is only one hardcoded swagger-ui div per page. When the macro is used multiple times, the content goes always to the 1st div.
This proposed change is to parametrize the div name and script name using a simple global counter.
Copy link
Collaborator

@osfameron osfameron left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @LukeCz, this is interesting thank you for the contribution.

I don't know of cases where we want to have multiple SwaggerUI macros, does this PR respond to a particular requirement or bug on a specific page in the Couchbase docs?

If it's a general enhancement for all users of Antora, it might be worth suggesting to https://gitlab.com/antora/antora/ (and we do periodically update our extensions from this upstream as required).

@osfameron osfameron requested a review from simon-dew January 4, 2023 16:15
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.

2 participants