@redpanda-data/docs-extensions-and-macros 3.0.9 → 3.0.11
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.
|
@@ -66,7 +66,7 @@ module.exports.register = function ({ config }) {
|
|
|
66
66
|
|
|
67
67
|
console.log(chalk.green(`Merged terms into glossary for ${component} component${version? version: ''}.`));
|
|
68
68
|
} else {
|
|
69
|
-
logger.
|
|
69
|
+
logger.info(`Skipping ${title} ${version} - No glossary page (reference:glossary.adoc) found`)
|
|
70
70
|
}
|
|
71
71
|
}
|
|
72
72
|
}
|
package/macros/config-ref.js
CHANGED
|
@@ -29,7 +29,7 @@ function inlineConfigMacro(context) {
|
|
|
29
29
|
const [configRef, isLink, path] = target.split(',');
|
|
30
30
|
const isKubernetes = parent.getDocument().getAttributes()['env-kubernetes'] !== undefined;
|
|
31
31
|
const content = buildConfigReference({ configRef, isKubernetes, isLink: isLink === 'true', path });
|
|
32
|
-
return this.createInline(parent, 'quoted', content);
|
|
32
|
+
return this.createInline(parent, 'quoted', `\`${content}\``, { attributes: {'subs': 'quotes' }});
|
|
33
33
|
});
|
|
34
34
|
}
|
|
35
35
|
}
|
package/macros/glossary.js
CHANGED
|
@@ -135,7 +135,7 @@ module.exports.register = function (registry, config = {}) {
|
|
|
135
135
|
const termExistsInContext = context.gloss.some((candidate) => candidate.term === term);
|
|
136
136
|
if ((termExistsInContext && links) || (links && customLink)) {
|
|
137
137
|
inline = customLink
|
|
138
|
-
? self.createInline(parent, 'anchor', target, { type: 'link', target: customLink, attributes: attrs })
|
|
138
|
+
? self.createInline(parent, 'anchor', target, { type: 'link', target: customLink, attributes: { ...attrs, window: '_blank', rel: 'noopener noreferrer' } })
|
|
139
139
|
: self.createInline(parent, 'anchor', target, { type: 'xref', target: `${glossaryPage}#${termId(term)}`, reftext: target, attributes: attrs })
|
|
140
140
|
} else {
|
|
141
141
|
inline = self.createInline(parent, 'quoted', target, { attributes: attrs })
|
package/macros/helm-ref.js
CHANGED
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
|
|
12
12
|
const buildConfigReference = ({ helmRef }) => {
|
|
13
13
|
let ref = '';
|
|
14
|
-
ref = helmRef ? `For default values and documentation for configuration options, see the https://artifacthub.io/packages/helm/redpanda-data/redpanda?modal=values&path=${helmRef}[values.yaml
|
|
14
|
+
ref = helmRef ? `For default values and documentation for configuration options, see the https://artifacthub.io/packages/helm/redpanda-data/redpanda?modal=values&path=${helmRef}[\`values.yaml\`^] file.` : `For default values and documentation for configuration options, see the https://artifacthub.io/packages/helm/redpanda-data/redpanda?modal=values[\`values.yaml\`^] file.`;
|
|
15
15
|
return ref;
|
|
16
16
|
}
|
|
17
17
|
|
|
@@ -20,7 +20,7 @@ function inlineConfigMacro(context) {
|
|
|
20
20
|
this.process((parent, target, attrs) => {
|
|
21
21
|
const [helmRef] = target.split(',');
|
|
22
22
|
const content = buildConfigReference({ helmRef });
|
|
23
|
-
return this.createInline(parent, 'quoted', content);
|
|
23
|
+
return this.createInline(parent, 'quoted', content, { attributes: {'subs': 'quotes' }});
|
|
24
24
|
});
|
|
25
25
|
}
|
|
26
26
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@redpanda-data/docs-extensions-and-macros",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.11",
|
|
4
4
|
"description": "Antora extensions and macros developed for Redpanda documentation.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"antora",
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
},
|
|
15
15
|
"scripts": {
|
|
16
16
|
"build": "antora --to-dir docs --fetch local-antora-playbook.yml",
|
|
17
|
-
"serve": "wds --node-resolve --open preview/test --watch --root-dir docs"
|
|
17
|
+
"serve": "wds --node-resolve --open preview/test/ --watch --root-dir docs"
|
|
18
18
|
},
|
|
19
19
|
"contributors": [
|
|
20
20
|
{
|