@@ -41,11 +41,14 @@ const COMPONENT_NAME = `{{{page.component.title}}}`.trim();
41
41
/* *
42
42
* The “catalog” of product/API tags we want available by default.
43
43
* For Cloud, we intentionally exclude "Admin API" from defaults.
44
+ * For Self-Managed, we intentionally exclude Cloud Control Plane/Data Plane APIs from defaults.
44
45
*/
45
- const INITIAL_TAGS =
46
- COMPONENT_NAME === ' Cloud'
47
- ? [' Labs' , ' Schema Registry API' , ' HTTP Proxy API' , ' Cloud Control Plane API' , ' Cloud Data Plane API' ]
48
- : [' Labs' , ' Connect' , ' Admin API' , ' Schema Registry API' , ' HTTP Proxy API' , ' Cloud Control Plane API' , ' Cloud Data Plane API' ];
46
+ const TAGS_BY_COMPONENT = {
47
+ Cloud: [' Labs' , ' Schema Registry API' , ' HTTP Proxy API' , ' Cloud Control Plane API' , ' Cloud Data Plane API' ],
48
+ ' Self-Managed' : [' Labs' , ' Connect' , ' Admin API' , ' Schema Registry API' , ' HTTP Proxy API' ],
49
+ };
50
+ const DEFAULT_TAGS = [' Labs' , ' Connect' , ' Admin API' , ' Schema Registry API' , ' HTTP Proxy API' , ' Cloud Control Plane API' , ' Cloud Data Plane API' ];
51
+ const INITIAL_TAGS = TAGS_BY_COMPONENT [COMPONENT_NAME ] || DEFAULT_TAGS ;
49
52
50
53
/* * Version added to the “View all” link to scope whole-site search. */
51
54
const VERSION = PRERELEASE === ' true'
0 commit comments