From 98fb31f0c806b214051e4ebc359f93a268376c17 Mon Sep 17 00:00:00 2001 From: Serhii Frolov Date: Thu, 1 Feb 2024 18:04:39 +0100 Subject: [PATCH 1/2] fix(api): add cloud tags --- antora-playbook-local.yml | 2 ++ antora-playbook.yml | 2 ++ lib/api_json.js | 2 +- 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/antora-playbook-local.yml b/antora-playbook-local.yml index a6db0da0..6e9e69d7 100644 --- a/antora-playbook-local.yml +++ b/antora-playbook-local.yml @@ -273,6 +273,8 @@ antora: - Manage Accounts - Manage Organizations - Manage Clusters + - Organizations and Accounts + - Manage Organizations data: - title: What is a client? url: https://www.youtube.com/embed/lkQEAdgxvbE diff --git a/antora-playbook.yml b/antora-playbook.yml index d425b9a7..184000ed 100644 --- a/antora-playbook.yml +++ b/antora-playbook.yml @@ -287,6 +287,8 @@ antora: - Manage Accounts - Manage Organizations - Manage Clusters + - Organizations and Accounts + - Manage Organizations data: - title: What is a client? url: https://www.youtube.com/embed/lkQEAdgxvbE diff --git a/lib/api_json.js b/lib/api_json.js index b99519ab..af31f58b 100644 --- a/lib/api_json.js +++ b/lib/api_json.js @@ -10,7 +10,7 @@ module.exports.register = function ({config}) { const addEntity = ({title, url, tags, type, order}) => { const arr = tags.split(',').map(cat => cat.trim()) if (config.tags && !arr.some(name => (config.tags ?? []).includes(name))) { - throw Error(`Wrong cloud tag '${name}'`) + throw Error(`Wrong cloud tag '${arr.join(', ')}' in '${title}'`) } content.push({ title: title && title.trim(), From ec11a0be553d504ad08dc0ccbbf33a8172eaa7a9 Mon Sep 17 00:00:00 2001 From: Serhii Frolov Date: Thu, 1 Feb 2024 18:07:44 +0100 Subject: [PATCH 2/2] fix(api): add cloud tags --- antora-playbook-local.yml | 2 -- antora-playbook.yml | 2 -- 2 files changed, 4 deletions(-) diff --git a/antora-playbook-local.yml b/antora-playbook-local.yml index 6e9e69d7..a6db0da0 100644 --- a/antora-playbook-local.yml +++ b/antora-playbook-local.yml @@ -273,8 +273,6 @@ antora: - Manage Accounts - Manage Organizations - Manage Clusters - - Organizations and Accounts - - Manage Organizations data: - title: What is a client? url: https://www.youtube.com/embed/lkQEAdgxvbE diff --git a/antora-playbook.yml b/antora-playbook.yml index 184000ed..d425b9a7 100644 --- a/antora-playbook.yml +++ b/antora-playbook.yml @@ -287,8 +287,6 @@ antora: - Manage Accounts - Manage Organizations - Manage Clusters - - Organizations and Accounts - - Manage Organizations data: - title: What is a client? url: https://www.youtube.com/embed/lkQEAdgxvbE