@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
|
|
612
|
-
if (component.name
|
|
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
|
|