From b52cbd5e5c811b9c3a80a0840758bba2356b3bab Mon Sep 17 00:00:00 2001 From: Vivek Jain Date: Thu, 23 May 2024 11:54:07 +0530 Subject: [PATCH] Add filter constants for custom dropdown filter Signed-off-by: Vivek Jain --- src/utils/searchConstant.ts | 63 +++++++++++++++++++++++++++++-------- 1 file changed, 50 insertions(+), 13 deletions(-) diff --git a/src/utils/searchConstant.ts b/src/utils/searchConstant.ts index eeef5eef108..df5e818a965 100644 --- a/src/utils/searchConstant.ts +++ b/src/utils/searchConstant.ts @@ -1,42 +1,41 @@ export const allFacets = [ 'language:en', [ - 'docusaurus_tag:default', - 'docusaurus_tag:docs-apis-current', - 'docusaurus_tag:docs-cli-wallet-1-0-current', - 'docusaurus_tag:docs-maintain-current', - 'docusaurus_tag:docs-iota-tips-current', - 'docusaurus_tag:docs-community-current', 'docusaurus_tag:docs-get-started-current', 'docusaurus_tag:docs-learn-current', - 'docusaurus_tag:docs-iota-sdk-1-0-current', 'docusaurus_tag:docs-build-current', + 'docusaurus_tag:docs-iota-sdk-1-0-current', 'docusaurus_tag:docs-identity-rs-1-0-current', 'docusaurus_tag:docs-identity-rs-1-1-current', 'docusaurus_tag:docs-identity-rs-1-2-current', + 'docusaurus_tag:docs-stronghold-rs-1-1-current', + 'docusaurus_tag:docs-apis-current', + 'docusaurus_tag:docs-cli-wallet-1-0-current', + 'docusaurus_tag:docs-community-current', 'docusaurus_tag:docs-isc-v1-0-0-rc-6-current', 'docusaurus_tag:docs-iota-sandbox-current', - 'docusaurus_tag:docs-stronghold-rs-1-1-current', - 'docusaurus_tag:docs-wasp-v1-0-0-rc-6-current', 'docusaurus_tag:docs-introduction-docs-stardust-current', 'docusaurus_tag:docs-chronicle-1-0-rc-2-current', + 'docusaurus_tag:docs-maintain-current', 'docusaurus_tag:docs-hornet-2-0-current', + 'docusaurus_tag:docs-wasp-v1-0-0-rc-6-current', + 'docusaurus_tag:default', + 'docusaurus_tag:docs-iota-tips-current', ], ]; export const facetNamesJson = { + 'docusaurus_tag:docs-get-started-current': 'Get Started', + 'docusaurus_tag:docs-learn-current': 'Learn', 'docusaurus_tag:default': 'Tutorial', 'docusaurus_tag:docs-apis-current': 'Apis', 'docusaurus_tag:docs-cli-wallet-1-0-current': 'Cli Wallet', 'docusaurus_tag:docs-maintain-current': 'Maintain', - 'docusaurus_tag:docs-iota-tips-current': 'Tips', - 'docusaurus_tag:docs-get-started-current': 'Get Started', - 'docusaurus_tag:docs-learn-current': 'Learn', 'docusaurus_tag:docs-identity-rs-1-2-current': 'Identity.rs 1.2', 'docusaurus_tag:docs-identity-rs-1-1-current': 'Identity.rs 1.1', 'docusaurus_tag:docs-identity-rs-1-0-current': 'Identity.rs', 'docusaurus_tag:docs-iota-sandbox-current': 'Iota', - 'docusaurus_tag:docs-build-current': 'Sandbox', + 'docusaurus_tag:docs-build-current': 'Build', 'docusaurus_tag:docs-isc-v1-0-0-rc-6-current': 'ISC', 'docusaurus_tag:docs-stronghold-rs-1-1-current': 'Stronghold', 'docusaurus_tag:docs-iota-core-1-0-current': 'Iota Core', @@ -46,4 +45,42 @@ export const facetNamesJson = { 'docusaurus_tag:docs-introduction-docs-stardust-current': 'Stardust', 'docusaurus_tag:docs-chronicle-1-0-rc-2-current': 'Chronicle', 'docusaurus_tag:docs-community-current': 'Community', + 'docusaurus_tag:docs-iota-tips-current': 'Tips', }; +export const subFilters = [ + 'Wasp', + 'Hornet', + 'Identity.rs', + 'Cli Wallet', + 'Apis', + 'Stronghold', + 'Iota sdk', + 'ISC', + 'Iota', + 'Stardust', + 'Chronicle', + 'Community', +]; +export const subChildFilters = ['Identity.rs 1.2', 'Identity.rs 1.1']; +export const buildSubFilters = [ + 'docusaurus_tag:docs-iota-sdk-1-0-current', + 'docusaurus_tag:docs-identity-rs-1-0-current', + 'docusaurus_tag:docs-identity-rs-1-2-current', + 'docusaurus_tag:docs-identity-rs-1-1-current', + 'docusaurus_tag:docs-stronghold-rs-1-1-current', + 'docusaurus_tag:docs-apis-current', + 'docusaurus_tag:docs-cli-wallet-1-0-current', + 'docusaurus_tag:docs-community-current', + 'docusaurus_tag:docs-isc-v1-0-0-rc-6-current', + 'docusaurus_tag:docs-iota-sandbox-current', + 'docusaurus_tag:docs-introduction-docs-stardust-current', + 'docusaurus_tag:docs-chronicle-1-0-rc-2-current', +]; +export const identitySubFilters = [ + 'docusaurus_tag:docs-identity-rs-1-2-current', + 'docusaurus_tag:docs-identity-rs-1-1-current', +]; +export const maintainSubFilters = [ + 'docusaurus_tag:docs-wasp-v1-0-0-rc-6-current', + 'docusaurus_tag:docs-hornet-2-0-current', +];