Skip to content

Commit 5cd9558

Browse files
authored
Update API label/badge and clean banner whitespace (#23)
* Update API label/badge and clean banner whitespace Rename the navigation label for the Threat Intelligence API from "Beta API" to "NPM standard API" and change the badge text from "New" to "Beta" (badge variant remains "tip"). Also remove an extra blank/whitespace line after the banner content in astro.config.mjs. These are non-functional wording/formatting updates. * Rename Beta API to Npm Dataset API (Beta) Update docs to refer to the Npm Dataset API (Beta): change page title and intro in beta.md and update overview wording in overview.md. Also adjust custom.css comments and whitespace (align sidebar badge comment, remove trailing whitespace, and add final newline) to reflect the new name and clean up formatting.
1 parent cb280ef commit 5cd9558

4 files changed

Lines changed: 11 additions & 11 deletions

File tree

astro.config.mjs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ export default defineConfig({
7373
banner: {
7474
enabled: false,
7575
content: 'Black Friday Deal - <a href="https://patchstack.com/black-friday-2024/" target="about:blank">50% off dev plan for 6 months</a>',
76-
76+
7777
},
7878
integrations: [
7979
postmanFromOpenAPI(),
@@ -147,8 +147,8 @@ export default defineConfig({
147147
{ slug: 'api-solutions/threat-intelligence-api/extended' },
148148
{ slug: 'api-solutions/threat-intelligence-api/api-properties' },
149149
{
150-
label: 'Beta API',
151-
badge: { text: 'New', variant: 'tip' },
150+
label: 'NPM standard API',
151+
badge: { text: 'Beta', variant: 'tip' },
152152
collapsed: true,
153153
items: [
154154
{ slug: 'api-solutions/threat-intelligence-api/beta' },

src/content/docs/API solutions/Threat Intelligence API/beta.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
title: "Beta API"
2+
title: "Npm Dataset API (Beta)"
33
excerpt: "Beta vulnerability endpoints — npm support, Resource-based shape, offset and cursor pagination, include=details."
44
hidden: false
55
metadata:
@@ -11,7 +11,7 @@ sidebar:
1111
label: "Guide"
1212
---
1313

14-
_The Beta API is a new generation of the Threat Intelligence API, currently available to **selected partners working directly with Patchstack**. It lives alongside the v2 API (Standard / Extended) and adds npm coverage, an optional full advisory body, a consistent nested response shape, and cursor pagination. If you'd like access to run an integration on Beta, [contact us](https://patchstack.com/for-hosts/)._
14+
_The Npm Dataset API (Beta) is a new generation of the Threat Intelligence API, currently available to **selected partners working directly with Patchstack**. It lives alongside the v2 API (Standard / Extended) and adds npm coverage, an optional full advisory body, a consistent nested response shape, and cursor pagination. If you'd like access to run an integration on Beta, [contact us](https://patchstack.com/for-hosts/)._
1515

1616
> **Interactive reference:** Every endpoint, parameter, request body and response shape is documented in the [Threat Intelligence API (Beta) reference](/api-reference/threat-intelligence-beta/).
1717

src/content/docs/API solutions/Threat Intelligence API/overview.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: "Overview"
33
excerpt: ""
4-
metadata:
4+
metadata:
55
image: []
66
robots: "index"
77
createdAt: "Thu Jun 01 2023 12:04:17 GMT+0000 (Coordinated Universal Time)"
@@ -12,7 +12,7 @@ sidebar:
1212
hidden: false
1313
---
1414

15-
Patchstack publishes three ways to consume its vulnerability database. Standard and Extended are the stable tiers of the v2 API; the Beta API is a new generation available to selected partners only.
15+
Patchstack publishes three ways to consume its vulnerability database. Standard and Extended are the stable tiers of the v2 API; the Npm Dataset API (Beta) is a new generation available to selected partners only.
1616

1717
## Which API should I use?
1818

src/styles/custom.css

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ header button {
7272
--sl-color-black: #ffffff;
7373
--sl-color-bg-nav: #24272f;
7474
--sl-color-text-invert:#24272f;
75-
75+
7676

7777
starlight-theme-select select,
7878
starlight-theme-select option,
@@ -111,7 +111,7 @@ header button {
111111
border: 0;
112112
}
113113
.tagline {
114-
font-family: Faktum Regular, sans-serif;
114+
font-family: Faktum Regular, sans-serif;
115115
font-size: 1rem;
116116
line-height: var(--sl-line-height);
117117
}
@@ -137,10 +137,10 @@ header button {
137137
margin-bottom: 30px;
138138
}
139139

140-
/* Match sidebar group labels that carry a badge (e.g. Beta API [New]) to the
140+
/* Match sidebar group labels that carry a badge (e.g. Npm Dataset API (Beta) [New]) to the
141141
weight/size of sibling leaf links, so the badge carries the emphasis
142142
instead of the label doubling up. */
143143
.group-label .large:has(+ .sl-badge) {
144144
font-size: var(--sl-text-sm);
145145
font-weight: normal;
146-
}
146+
}

0 commit comments

Comments
 (0)