-
Notifications
You must be signed in to change notification settings - Fork 48
Fix glossterm macro usage #1569
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
Open
kbatuigas
wants to merge
1
commit into
main
Choose a base branch
from
test-glossterm-skill
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🧩 Analysis chain
🏁 Script executed:
Repository: redpanda-data/docs
Length of output: 101
🏁 Script executed:
Repository: redpanda-data/docs
Length of output: 9401
🏁 Script executed:
Repository: redpanda-data/docs
Length of output: 143
🌐 Web query:
AsciiDoc glossterm macro syntax comma notation💡 Result:
In AsciiDoc / Asciidoctor, the
glosstermmacro is written using the inline macro “target + attribute list” form:glossterm:<term>[<definition>]glossterm:my term[myDefinition](definition is optional in some implementations) [1], [2]So the “comma notation” (i.e.,
macro:[a, b, c]) is not part ofglossterm’s syntax; commas are generally used to separate multiple positional attributes in an attribute list for macros that define more than one positional attribute (e.g.,indexterm:[primary, secondary, tertiary]) [3]. By contrast,glosstermtakes the term as the target (after:) and (optionally) the definition as the first positional attribute (inside[]) [1], [2].If you’re thinking of commas because you saw them used inside other macros (e.g.,
kbd:[Ctrl,T]), that’s a macro-specific shorthand for that macro, not a general rule that applies toglossterm[4].Sources: [1] (Redpanda docs-extensions-and-macros README:
glosstermusage), [2] (antora-extensions-and-macros package docs:glosstermusage), [3] (Asciidoctor user manual:indextermcomma-separated positional attributes), [4] (Asciidoctor keyboard macro: comma-separated keys).🌐 Web query:
AsciiDoc glossterm macro correct syntax example💡 Result:
glosstermis not a built-in AsciiDoc/Asciidoctor macro; it’s provided by glossary extensions (e.g., antora-extensions-and-macros / redpanda-data docs-extensions-and-macros). In those extensions, the inline macro syntax is:my term)myDefinition, often optional if defined elsewhere) [1][2]Minimal working example (with the matching glossary block macro used by the same extensions):
This collects
glosstermdefinitions and renders them as a glossary/definition list whenglossary::[]is placed later in the document [3].Sources: [1] [2] [3]
🏁 Script executed:
Repository: redpanda-data/docs
Length of output: 267
🏁 Script executed:
Repository: redpanda-data/docs
Length of output: 44
🏁 Script executed:
Repository: redpanda-data/docs
Length of output: 44
🏁 Script executed:
# Check glossary file size and structure wc -l modules/reference/pages/glossary.adocRepository: redpanda-data/docs
Length of output: 102
🏁 Script executed:
# Get the full glossary file cat modules/reference/pages/glossary.adocRepository: redpanda-data/docs
Length of output: 267
🏁 Script executed:
Repository: redpanda-data/docs
Length of output: 44
🏁 Script executed:
Repository: redpanda-data/docs
Length of output: 44
🏁 Script executed:
Repository: redpanda-data/docs
Length of output: 255
🏁 Script executed:
Repository: redpanda-data/docs
Length of output: 2141
🏁 Script executed:
Repository: redpanda-data/docs
Length of output: 227
🏁 Script executed:
Repository: redpanda-data/docs
Length of output: 89
🏁 Script executed:
# Check antora.yml for glossterm extension configuration cat ./antora.ymlRepository: redpanda-data/docs
Length of output: 5750
🏁 Script executed:
# Check package.json for dependencies related to glossterm or macro extensions cat ./package.jsonRepository: redpanda-data/docs
Length of output: 1321
🏁 Script executed:
Repository: redpanda-data/docs
Length of output: 121
🏁 Script executed:
Repository: redpanda-data/docs
Length of output: 44
🏁 Script executed:
Repository: redpanda-data/docs
Length of output: 90
🏁 Script executed:
Repository: redpanda-data/docs
Length of output: 46
🏁 Script executed:
Repository: redpanda-data/docs
Length of output: 44
🌐 Web query:
@redpanda-data/docs-extensions-and-macros glossterm syntax documentation💡 Result:
In
@redpanda-data/docs-extensions-and-macros, theglosstermmacro is an inline AsciiDoc macro with this syntax:glossterm:<term>[<definition>]glossterm:my term[myDefinition]term(required)definition(optional) — can be omitted if the term is already defined in thesharedcomponent or inlocal-termsinantora.yml. (github.com)Related attributes (configuration options):
glossary-log-termsglossary-term-role(default role isglossary-term)glossary-links(set tofalseto disable links)glossary-page(resource ID of the page that contains the glossary)glossary-tooltip(title,true, ordata-<attribute-name>) (github.com)Citations:
Remove the comma from glossterm macro syntax.
The glossterm macros use incorrect syntax with a comma separator:
glossterm:<term>[,<display>]. Per the@redpanda-data/docs-extensions-and-macrosdocumentation, the correct syntax isglossterm:<term>[<display>]without the comma. Update the three glossterm calls on this line to remove the leading comma:glossterm:listener[listeners]glossterm:seed server[seed servers]glossterm:advertised listener[advertised listeners]🤖 Prompt for AI Agents