@redpanda-data/docs-extensions-and-macros 5.47.3 → 5.48.0
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.
package/package.json
CHANGED
|
@@ -177,7 +177,9 @@ function renderStub({ title, file, description, includePrefix, attributes, hasMe
|
|
|
177
177
|
* @param {string} params.navFile - Consumer nav.adoc path
|
|
178
178
|
* @param {string} params.plugin - Plugin command name (e.g. ai)
|
|
179
179
|
* @param {string} params.includePrefix - Antora resource prefix for includes
|
|
180
|
-
* @param {Array<string>} [params.attributes] - Page attributes for new stubs
|
|
180
|
+
* @param {Array<string>} [params.attributes] - Page attributes for new stubs.
|
|
181
|
+
* Defaults to none: a page's maturity is a documentation-team decision, so
|
|
182
|
+
* a consumer that wants a label on new stubs passes it with --attribute.
|
|
181
183
|
* @param {boolean} [params.dryRun]
|
|
182
184
|
* @returns {Object} { created, deleted, keptNonStub, navUpdated, renameCandidates }
|
|
183
185
|
*/
|
|
@@ -187,7 +189,7 @@ function reconcileStubs({
|
|
|
187
189
|
navFile,
|
|
188
190
|
plugin,
|
|
189
191
|
includePrefix,
|
|
190
|
-
attributes = [
|
|
192
|
+
attributes = [],
|
|
191
193
|
dryRun = false
|
|
192
194
|
}) {
|
|
193
195
|
const managedStubRe = new RegExp(`include::[^\\[]*(?:partial|page)\\$[^\\[]*rpk-${plugin}/([\\w.-]+\\.adoc)\\[`)
|