Skip to content

Commit a1fad35

Browse files
Kapil GowruKapil Gowru
authored andcommitted
fix: added api-definitions product
1 parent 8c3ec2b commit a1fad35

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

80 files changed

+14917
-50
lines changed

fern/assets/styles.css

Lines changed: 11 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -181,75 +181,53 @@ h1, h2, h3 {
181181
}
182182
}
183183

184-
> a[href*="fern-def"] {
184+
> a[href*="asyncapi"] {
185185
grid-column: 3;
186186
grid-row: 2;
187187
transform: translateY(-32px);
188-
188+
189189
.fern-selection-item-icon {
190190
width: 1.5rem;
191191
height: 1.5rem;
192192
}
193193
}
194194

195-
/* > a[href*="asyncapi"]:before {
196-
content: "Docs coming soon";
197-
font-weight: 500;
198-
position: absolute;
199-
top: -1.75rem;
200-
left: 0.5rem;
201-
} */
202-
203-
> a[href*="asyncapi"] {
195+
> a[href*="openrpc"] {
204196
grid-column: 3;
205197
grid-row: 3;
206198
transform: translateY(-64px);
207-
pointer-events: none;
208-
cursor: not-allowed;
209-
210-
/* > div > div > div {
211-
align-items: flex-start;
212-
} */
213199

214200
.fern-selection-item-icon {
215201
width: 1.5rem;
216202
height: 1.5rem;
217203
}
218204
}
219205

220-
> a[href*="openrpc"] {
206+
> a[href*="grpc"] {
221207
grid-column: 3;
222208
grid-row: 4;
223-
transform: translateY(-88px);
224-
pointer-events: none;
225-
cursor: not-allowed;
226-
227-
/* > div > div > div {
228-
align-items: flex-start;
229-
} */
209+
transform: translateY(-96px);
230210

231211
.fern-selection-item-icon {
232212
width: 1.5rem;
233213
height: 1.5rem;
234214
}
235215
}
236216

237-
> a[href*="grpc"] {
217+
> a[href*="fern-def"] {
238218
grid-column: 3;
239219
grid-row: 5;
240-
transform: translateY(-88px);
241-
pointer-events: none;
242-
cursor: not-allowed;
243-
244-
/* > div > div > div {
245-
align-items: flex-start;
246-
} */
220+
transform: translateY(-96px);
247221

248222
.fern-selection-item-icon {
249223
width: 1.5rem;
250224
height: 1.5rem;
251225
}
252226
}
227+
228+
> a[href*="api-definitions"] {
229+
display: none;
230+
}
253231
}
254232
}
255233

fern/docs.yml

Lines changed: 39 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -43,46 +43,49 @@ products:
4343
slug: ask-fern
4444
subtitle: Let users find answers in your documentation instantly
4545

46-
- display-name: OpenAPI
47-
path: ./products/openapi-def/openapi-def.yml
48-
icon: fa-regular fa-book
49-
image: ./images/product-switcher/openapi-definition-light.png
50-
slug: openapi-definition
51-
52-
- display-name: Fern Definition
53-
path: ./products/fern-def/fern-def.yml
54-
icon: fa-regular fa-seedling
55-
image: ./images/product-switcher/fern-definition-light.png
56-
slug: fern-definition
57-
5846
- display-name: CLI & API Reference
59-
subtitle: Manage and configure your Fern projects via CLI & APIs.
47+
subtitle: Manage and configure your Fern projects
6048
path: ./products/cli-api-reference/cli-api-reference.yml
6149
icon: fa-regular fa-terminal
6250
image: ./images/product-switcher/product-switcher-cliapi-light.png
6351
slug: cli-api-reference
6452

53+
- display-name: API Definitions
54+
path: ./products/api-def/api-def.yml
55+
icon: fa-regular fa-book
56+
image: ./images/product-switcher/product-switcher-apireference-light.png
57+
slug: api-definitions
58+
59+
- display-name: OpenAPI
60+
path: ./products/openapi-def/openapi-def.yml
61+
icon: fa-regular fa-book
62+
image: ./images/product-switcher/openapi-definition-light.png
63+
slug: openapi-definition
64+
6565
- display-name: AsyncAPI
66-
subtitle: Docs coming soon
6766
path: ./products/asyncapi-def/asyncapi-def.yml
6867
icon: fa-regular fa-bolt
6968
image: ./images/product-switcher/asyncapi-light.png
7069
slug: asyncapi-definition
71-
70+
7271
- display-name: OpenRPC
73-
subtitle: Docs coming soon
7472
path: ./products/openrpc-def/openrpc-def.yml
7573
icon: fa-regular fa-code
7674
image: ./images/product-switcher/openrpc-light.png
7775
slug: openrpc-definition
7876

7977
- display-name: gRPC
80-
subtitle: Docs coming soon
8178
path: ./products/grpc-def/grpc-def.yml
8279
icon: fa-regular fa-plug
8380
image: ./images/product-switcher/grpc-light.png
8481
slug: grpc-definition
8582

83+
- display-name: Fern Definition
84+
path: ./products/fern-def/fern-def.yml
85+
icon: fa-regular fa-seedling
86+
image: ./images/product-switcher/fern-definition-light.png
87+
slug: fern-definition
88+
8689

8790
css: ./assets/styles.css
8891

@@ -550,3 +553,22 @@ redirects:
550553
destination: /learn/cli-api-reference/api-reference/tokens/:slug*
551554
permanent: true
552555

556+
# ============================================================================
557+
# API REFERENCE REDIRECTS
558+
# ============================================================================
559+
560+
- source: /learn/openapi-definition/:slug*
561+
destination: /api-definitions/openapi/:slug*
562+
permanent: true
563+
- source: /learn/asyncapi-definition/:slug*
564+
destination: /learn/api-definitions/asyncapi/:slug*
565+
permanent: true
566+
- source: /learn/openrpc-definition/:slug*
567+
destination: /learn/api-definitions/openrpc/:slug*
568+
permanent: true
569+
- source: /learn/grpc-definition/:slug*
570+
destination: /learn/api-definitions/grpc/:slug*
571+
permanent: true
572+
- source: /learn/fern-definition/:slug*
573+
destination: /learn/api-definitions/ferndef/:slug*
574+
permanent: true

0 commit comments

Comments
 (0)