Skip to content

Commit a7e3a9f

Browse files
kgowruKapil GowruKapil Gowru
authored
Add other specs disabled (#214)
Co-authored-by: Kapil Gowru <[email protected]> Co-authored-by: Kapil Gowru <[email protected]>
1 parent cb5ff16 commit a7e3a9f

File tree

122 files changed

+9915
-722
lines changed

Some content is hidden

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

122 files changed

+9915
-722
lines changed

fern/assets/styles.css

Lines changed: 51 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -67,12 +67,12 @@
6767
margin: 0.5rem 1rem 0 1rem;
6868
}
6969

70-
.fern-product-selector-radio-group {
70+
.fern-product-selector-radio-group {
7171
display: grid;
7272
grid-template-columns: repeat(3, 1fr);
7373
gap: 1.5rem;
7474
padding: 1.25rem;
75-
height: 164px;
75+
height: 248px;
7676

7777
> a {
7878
max-width: 320px;
@@ -104,6 +104,11 @@
104104
grid-row: 2;
105105
}
106106

107+
> a[href*="cli-api-reference"] {
108+
grid-column: 1;
109+
grid-row: 3;
110+
}
111+
107112
> a[href*="openapi"]:before {
108113
content: "Supported Specs";
109114
font-weight: 500;
@@ -133,21 +138,24 @@
133138
}
134139
}
135140

136-
> a[href*="cli-api-reference"] {
137-
grid-column: 3;
138-
grid-row: 3;
139-
transform: translateY(-64px);
140-
141-
.fern-selection-item-icon {
142-
width: 1.5rem;
143-
height: 1.5rem;
144-
}
145-
}
146-
141+
/* > a[href*="asyncapi"]:before {
142+
content: "Docs coming soon";
143+
font-weight: 500;
144+
position: absolute;
145+
top: -1.75rem;
146+
left: 0.5rem;
147+
} */
148+
147149
> a[href*="asyncapi"] {
148150
grid-column: 3;
149151
grid-row: 3;
150152
transform: translateY(-64px);
153+
pointer-events: none;
154+
cursor: not-allowed;
155+
156+
/* > div > div > div {
157+
align-items: flex-start;
158+
} */
151159

152160
.fern-selection-item-icon {
153161
width: 1.5rem;
@@ -158,7 +166,13 @@
158166
> a[href*="openrpc"] {
159167
grid-column: 3;
160168
grid-row: 4;
161-
transform: translateY(-64px);
169+
transform: translateY(-88px);
170+
pointer-events: none;
171+
cursor: not-allowed;
172+
173+
/* > div > div > div {
174+
align-items: flex-start;
175+
} */
162176

163177
.fern-selection-item-icon {
164178
width: 1.5rem;
@@ -169,8 +183,14 @@
169183
> a[href*="grpc"] {
170184
grid-column: 3;
171185
grid-row: 5;
172-
transform: translateY(-64px);
186+
transform: translateY(-88px);
187+
pointer-events: none;
188+
cursor: not-allowed;
173189

190+
/* > div > div > div {
191+
align-items: flex-start;
192+
} */
193+
174194
.fern-selection-item-icon {
175195
width: 1.5rem;
176196
height: 1.5rem;
@@ -209,18 +229,31 @@
209229
content: url("https://fern-docs.s3.us-east-2.amazonaws.com/product-switcher/product-switcher-askfern-dark.png") !important;
210230
}
211231

232+
:is(.dark) .fern-product-selector-radio-group a[href*="cli-api-reference"] img {
233+
content: url("https://fern-docs.s3.us-east-2.amazonaws.com/product-switcher/product-switcher-cliapi-dark.png") !important;
234+
}
235+
212236
:is(.dark) .fern-product-selector-radio-group a[href*="openapi-definition"] img {
213237
content: url("https://fern-docs.s3.us-east-2.amazonaws.com/product-switcher/openapi-definition-dark.png") !important;
214238
}
215239

216-
:is(.dark) .fern-product-selector-radio-group a[href*="cli-api-reference"] img {
217-
content: url("https://fern-docs.s3.us-east-2.amazonaws.com/product-switcher/cli-api-reference-dark.png") !important;
218-
}
219240

220241
:is(.dark) .fern-product-selector-radio-group a[href*="fern-definition"] img {
221242
content: url("https://fern-docs.s3.us-east-2.amazonaws.com/product-switcher/fern-definition-dark.png") !important;
222243
}
223244

245+
:is(.dark) .fern-product-selector-radio-group a[href*="asyncapi"] img {
246+
content: url("https://fern-docs.s3.us-east-2.amazonaws.com/product-switcher/asyncapi-dark.png") !important;
247+
}
248+
249+
:is(.dark) .fern-product-selector-radio-group a[href*="openrpc"] img {
250+
content: url("https://fern-docs.s3.us-east-2.amazonaws.com/product-switcher/openrpc-dark.png") !important;
251+
}
252+
253+
:is(.dark) .fern-product-selector-radio-group a[href*="grpc"] img {
254+
content: url("https://fern-docs.s3.us-east-2.amazonaws.com/product-switcher/grpc-dark.png") !important;
255+
}
256+
224257
/*** END -- PRODUCT SELECTOR STYLING ***/
225258

226259
/*** START -- DOCS HOMEPAGE STYLING ***/

fern/docs.yml

Lines changed: 22 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -63,28 +63,32 @@ products:
6363
slug: fern-definition
6464

6565
- display-name: CLI & API Reference
66+
subtitle: Manage and configure your Fern projects via CLI & APIs.
6667
path: ./products/cli-api-reference/cli-api-reference.yml
6768
icon: fa-regular fa-terminal
68-
image: ./images/product-switcher/cli-api-reference-light.png
69+
image: ./images/product-switcher/product-switcher-cliapi-light.png
6970
slug: cli-api-reference
71+
72+
- display-name: AsyncAPI
73+
subtitle: Docs coming soon
74+
path: ./products/asyncapi-def/asyncapi-def.yml
75+
icon: fa-regular fa-bolt
76+
image: ./images/product-switcher/asyncapi-light.png
77+
slug: asyncapi
7078

71-
# - display-name: AsyncAPI
72-
# path: ./products/asyncapi-def/asyncapi-def.yml
73-
# icon: fa-regular fa-bolt
74-
# image: ./images/product-switcher/asyncapi-def.png
75-
# slug: asyncapi
76-
77-
# - display-name: OpenRPC
78-
# path: ./products/openrpc-def/openrpc-def.yml
79-
# icon: fa-regular fa-code
80-
# image: ./images/product-switcher/openrpc-def.png
81-
# slug: openrpc
79+
- display-name: OpenRPC
80+
subtitle: Docs coming soon
81+
path: ./products/openrpc-def/openrpc-def.yml
82+
icon: fa-regular fa-code
83+
image: ./images/product-switcher/openrpc-light.png
84+
slug: openrpc
8285

83-
# - display-name: gRPC
84-
# path: ./products/grpc-def/grpc-def.yml
85-
# icon: fa-regular fa-plug
86-
# image: ./images/product-switcher/grpc-def.png
87-
# slug: grpc
86+
- display-name: gRPC
87+
subtitle: Docs coming soon
88+
path: ./products/grpc-def/grpc-def.yml
89+
icon: fa-regular fa-plug
90+
image: ./images/product-switcher/grpc-light.png
91+
slug: grpc
8892

8993

9094
css: ./assets/styles.css
@@ -470,7 +474,7 @@ redirects:
470474
destination: /learn/openapi-definition/extensions/:slug*
471475
permanent: true
472476
- source: /learn/api-definition/openapi/frameworks/:slug*
473-
destination: /learn/openapi-definition/server-frameworks/:slug*
477+
destination: /learn/openapi-definition/frameworks/:slug*
474478
permanent: true
475479
- source: /learn/api-definition/openapi/:slug*
476480
destination: /learn/openapi-definition/:slug*
2.13 KB
Loading
2.02 KB
Loading
1.92 KB
Loading
1.89 KB
Loading
2.15 KB
Loading
2.12 KB
Loading
5.47 KB
Loading
4.48 KB
Loading

0 commit comments

Comments
 (0)