Skip to content

Commit 581f077

Browse files
kgowruKapil Gowrudevalog
authored
fix: added api-definitions product (#426)
Co-authored-by: Kapil Gowru <[email protected]> Co-authored-by: Devin Logan <[email protected]>
1 parent 4d8f99e commit 581f077

File tree

134 files changed

+775
-642
lines changed

Some content is hidden

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

134 files changed

+775
-642
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: 60 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
instances:
2-
- url: fern-v2.docs.buildwithfern.com/learn/v2
2+
- url: fern-v2.docs.buildwithfern.com/learn
33
- url: fern.docs.buildwithfern.com/learn
44
custom-domain: buildwithfern.com/learn
55
edit-this-page:
@@ -43,46 +43,48 @@ 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/openapi-definition-light.png
57+
slug: api-definitions
58+
59+
- display-name: OpenAPI
60+
path: ./products/api-def/api-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
67-
path: ./products/asyncapi-def/asyncapi-def.yml
66+
path: ./products/api-def/api-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
74-
path: ./products/openrpc-def/openrpc-def.yml
72+
path: ./products/api-def/api-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
81-
path: ./products/grpc-def/grpc-def.yml
78+
path: ./products/api-def/api-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/api-def/api-def.yml
85+
icon: fa-regular fa-seedling
86+
image: ./images/product-switcher/fern-definition-light.png
87+
slug: fern-definition
8688

8789
css: ./assets/styles.css
8890

@@ -190,7 +192,7 @@ redirects:
190192
destination: /learn/sdks/deep-dives/local-previews
191193
permanent: true
192194
- source: /learn/sdks/capabilities/auto-pagination
193-
destination: /learn/v2/sdks/deep-dives/auto-pagination
195+
destination: /learn/sdks/deep-dives/auto-pagination
194196
permanent: true
195197
- source: /learn/sdks/capabilities/idempotency-headers
196198
destination: /learn/sdks/deep-dives/idempotency
@@ -336,12 +338,21 @@ redirects:
336338
- source: /learn/docs/building-and-customizing-your-docs/navigation
337339
destination: /learn/docs/navigation/overview
338340
permanent: true
341+
- source: /learn/docs/navigation/overview
342+
destination: /learn/docs/configuration/navigation
343+
permanent: true
339344
- source: /learn/docs/building-and-customizing-your-docs/versioning
340345
destination: /learn/docs/navigation/versions
341346
permanent: true
347+
- source: /learn/docs/navigation/versions
348+
destination: /learn/docs/configuration/versions
349+
permanent: true
342350
- source: /learn/docs/building-and-customizing-your-docs/announcements
343351
destination: /learn/docs/navigation/announcement-banner
344352
permanent: true
353+
- source: /learn/docs/navigation/announcement-banner
354+
destination: /learn/docs/customization/announcement-banner
355+
permanent: true
345356
- source: /learn/docs/building-and-customizing-your-docs/links-and-redirects
346357
destination: /learn/docs/seo/redirects
347358
permanent: true
@@ -351,12 +362,18 @@ redirects:
351362
- source: /learn/docs/building-and-customizing-your-docs/hiding-content
352363
destination: /learn/docs/navigation/hiding-content
353364
permanent: true
365+
- source: /learn/docs/navigation/hiding-content
366+
destination: /learn/docs/customization/hiding-content
367+
permanent: true
354368
- source: /learn/docs/building-and-customizing-your-docs/pull-request-preview
355369
destination: /learn/docs/preview-publish/previewing-changes-in-a-pr
356370
permanent: true
357371
- source: /learn/docs/building-and-customizing-your-docs/product-switching
358372
destination: /learn/docs/navigation/products
359373
permanent: true
374+
- source: /learn/docs/navigation/products
375+
destination: /learn/docs/configuration/products
376+
permanent: true
360377
- source: /learn/docs/building-and-customizing-your-docs/custom-css-global-js
361378
destination: /learn/docs/customization/custom-css-js
362379
permanent: true
@@ -388,6 +405,9 @@ redirects:
388405
- source: /learn/docs/content/changelog
389406
destination: /learn/docs/navigation/changelogs
390407
permanent: true
408+
- source: /learn/docs/navigation/changelogs
409+
destination: /learn/docs/customization/changelogs
410+
permanent: true
391411
- source: /learn/docs/content/visual-editor
392412
destination: /learn/docs/writing-content/visual-editor
393413
permanent: true
@@ -550,3 +570,21 @@ redirects:
550570
destination: /learn/cli-api-reference/api-reference/tokens/:slug*
551571
permanent: true
552572

573+
# ============================================================================
574+
# API REFERENCE REDIRECTS
575+
# ============================================================================
576+
- source: /learn/openapi-definition/:slug*
577+
destination: /learn/api-definitions/openapi/:slug*
578+
permanent: true
579+
- source: /learn/asyncapi-definition/:slug*
580+
destination: /learn/api-definitions/asyncapi/:slug*
581+
permanent: true
582+
- source: /learn/openrpc-definition/:slug*
583+
destination: /learn/api-definitions/openrpc/:slug*
584+
permanent: true
585+
- source: /learn/grpc-definition/:slug*
586+
destination: /learn/api-definitions/grpc/:slug*
587+
permanent: true
588+
- source: /learn/fern-definition/:slug*
589+
destination: /learn/api-definitions/ferndef/:slug*
590+
permanent: true

0 commit comments

Comments
 (0)