Skip to content

Commit 0ba536f

Browse files
author
Kapil Gowru
committed
fix: updated redirect
1 parent 4efbfff commit 0ba536f

File tree

13 files changed

+90
-49
lines changed

13 files changed

+90
-49
lines changed

fern/assets/styles.css

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -372,6 +372,46 @@ a[href*="changelog"] svg {
372372
.sdks-homepage {
373373
position: relative;
374374

375+
.changelog-button {
376+
display: flex;
377+
padding: 0.25rem 0.5rem;
378+
align-items: center;
379+
justify-content: center;
380+
border-radius: 0.5rem;
381+
transition: background-color 0.15s ease-in-out;
382+
position: relative;
383+
height: 2rem;
384+
text-decoration: none !important;
385+
386+
img {
387+
flex-shrink: 0;
388+
width: 16px;
389+
height: 16px;
390+
position: relative;
391+
}
392+
393+
div {
394+
font-size: 1rem;
395+
white-space: nowrap;
396+
max-width: 0;
397+
opacity: 0;
398+
overflow: hidden;
399+
transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
400+
width: 0;
401+
}
402+
403+
&:hover {
404+
gap: 0.25rem;
405+
background-color: var(--grayscale-a3);
406+
407+
div {
408+
max-width: 200px;
409+
opacity: 1;
410+
width: fit-content;
411+
}
412+
}
413+
}
414+
375415
.dashed-pattern-left {
376416
position: absolute;
377417
left: -4rem;

fern/docs.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -57,31 +57,31 @@ products:
5757
slug: api-definitions
5858

5959
- display-name: OpenAPI
60-
path: ./products/api-def/api-def.yml
60+
path: ./products/api-def/openapi-def.yml
6161
icon: fa-regular fa-book
6262
image: ./images/product-switcher/openapi-definition-light.png
6363
slug: openapi-definition
6464

6565
- display-name: AsyncAPI
66-
path: ./products/api-def/api-def.yml
66+
path: ./products/api-def/asyncapi-def.yml
6767
icon: fa-regular fa-bolt
6868
image: ./images/product-switcher/asyncapi-light.png
6969
slug: asyncapi-definition
7070

7171
- display-name: OpenRPC
72-
path: ./products/api-def/api-def.yml
72+
path: ./products/api-def/openrpc-def.yml
7373
icon: fa-regular fa-code
7474
image: ./images/product-switcher/openrpc-light.png
7575
slug: openrpc-definition
7676

7777
- display-name: gRPC
78-
path: ./products/api-def/api-def.yml
78+
path: ./products/api-def/grpc-def.yml
7979
icon: fa-regular fa-plug
8080
image: ./images/product-switcher/grpc-light.png
8181
slug: grpc-definition
8282

8383
- display-name: Fern Definition
84-
path: ./products/api-def/api-def.yml
84+
path: ./products/api-def/ferndef-def.yml
8585
icon: fa-regular fa-seedling
8686
image: ./images/product-switcher/fern-definition-light.png
8787
slug: fern-definition
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
navigation:
2+
- page: AsyncAPI Definition Redirect Page
3+
path: ./pages/asyncapi-empty.mdx
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
navigation:
2+
- page: Fern Definition Redirect Page
3+
path: ./pages/ferndef-empty.mdx

fern/products/api-def/grpc-def.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
navigation:
2+
- page: gRPC Definition Redirect Page
3+
path: ./pages/grpc-empty.mdx
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
navigation:
2+
- page: OpenAPI Definition Redirect Page
3+
path: ./pages/openapi-empty.mdx
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
navigation:
2+
- page: OpenRPC Definition Redirect Page
3+
path: ./pages/openrpc-empty.mdx
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
title: AsyncAPI Definition Redirect Page
3+
description: This is an empty page used to redirect to the AsyncAPI Definition pages.
4+
---
5+
6+
<Warning>This page is empty. Please visit the [AsyncAPI Definition](/api-definitions/asyncapi/overview) page for more information.</Warning>
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
title: Fern Definition Redirect Page
3+
description: This is an empty page used to redirect to the Fern Definition pages.
4+
---
5+
6+
<Warning>This page is empty. Please visit the [Fern Definition](/api-definitions/ferndef/overview) page for more information.</Warning>
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
title: gRPC Definition Redirect Page
3+
description: This is an empty page used to redirect to the gRPC Definition pages.
4+
---
5+
6+
<Warning>This page is empty. Please visit the [gRPC Definition](/api-definitions/grpc/overview) page for more information.</Warning>

0 commit comments

Comments
 (0)