@redpanda-data/docs-extensions-and-macros 4.16.1 → 4.16.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -50,6 +50,7 @@ module.exports.register = function () {
50
50
  let directiveText = directiveMarkdown.replace(/^>\s*/, '')
51
51
 
52
52
  // Convert markdown links [text](url) to HTML <a> tags
53
+ // Add space after <a to match afdocs test pattern expectations
53
54
  // Add tabindex="-1" and aria-hidden="true" to remove from tab order and hide from assistive tech
54
55
  directiveText = directiveText.replace(/\[([^\]]+)\]\(([^)]+)\)/g, '<a href="$2" tabindex="-1" aria-hidden="true">$1</a>')
55
56
 
@@ -607,9 +607,10 @@ function generateNavigationSection(siteUrl, contentCatalog, components) {
607
607
 
608
608
  // Generate component sitemaps dynamically
609
609
  nav += `### Component sitemaps\n\n`;
610
+ const internalComponents = ['home', 'shared', 'search', 'api'];
610
611
  components.forEach(component => {
611
- // Skip internal components like 'home'
612
- if (component.name === 'home') return;
612
+ // Skip internal/utility components
613
+ if (internalComponents.includes(component.name)) return;
613
614
  nav += `- [${component.title}](${siteUrl}/sitemap-${component.name}.md)\n`;
614
615
  });
615
616
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@redpanda-data/docs-extensions-and-macros",
3
- "version": "4.16.1",
3
+ "version": "4.16.3",
4
4
  "description": "Antora extensions and macros developed for Redpanda documentation.",
5
5
  "keywords": [
6
6
  "antora",