From 0a5f56e0dec07cdd9da6eefd823d173ffe6cf77a Mon Sep 17 00:00:00 2001 From: Rob Winch Date: Tue, 20 Jun 2023 11:04:16 -0500 Subject: [PATCH] Remove fix-component-name-display.js We no longer bring in tags that were broken --- antora-playbook.yml | 1 - .../extensions/fix-component-name-display.js | 23 ------------------- 2 files changed, 24 deletions(-) delete mode 100644 lib/antora/extensions/fix-component-name-display.js diff --git a/antora-playbook.yml b/antora-playbook.yml index bd4b491977..3459317ea5 100644 --- a/antora-playbook.yml +++ b/antora-playbook.yml @@ -6,7 +6,6 @@ antora: - require: '@springio/antora-extensions/latest-version-extension' - require: '@springio/antora-extensions/inject-collector-cache-config-extension' - '@antora/collector-extension' - - ./lib/antora/extensions/fix-component-name-display.js - '@antora/atlas-extension' - require: '@springio/antora-extensions/tabs-migration-extension' # uncomment this option to save the migrated content to the worktree diff --git a/lib/antora/extensions/fix-component-name-display.js b/lib/antora/extensions/fix-component-name-display.js deleted file mode 100644 index 42dac11976..0000000000 --- a/lib/antora/extensions/fix-component-name-display.js +++ /dev/null @@ -1,23 +0,0 @@ -'use strict' - -/** - * The purpose of this extension is to fix invalid metadata saved to either antora.yml or gradle.properties in certain - * tags. This invalid metadata prevents Antora from classifying the component versions properly. - * - * This extension addresses with the following cases: - * - * . the boolean value on the prerelease key is incorrectly quoted - * . the prerelease tag is set to true for a GA version - * . the value of the name key is empty - * . the value of the displayVersion key doesn't match the actual version - * . the -SNAPSHOT suffix is appended to the value of the version key instead of the value of the prerelease key - * - * This extension should be listed directly after @antora/collector-extension. - */ -module.exports.register = function () { - this.once('contentAggregated', ({ contentAggregate }) => { - contentAggregate.forEach((componentVersionBucket) => { - Object.assign(componentVersionBucket, { name: 'security', display: 'Spring Security' }) - }) - }) -}