Skip to content

Commit 30f7104

Browse files
fern-supportKapil GowruKapil Gowru
authored
feat: added cookbooks design (#192)
* feat: added cookbooks design * fix: added icon and hover effects * fix: cleaned up home page styling * fix: added an image fallback for video * fix: added an image fallback for video * fix: space between within card --------- Co-authored-by: Kapil Gowru <[email protected]> Co-authored-by: Kapil Gowru <[email protected]>
1 parent d8ae9f4 commit 30f7104

File tree

10 files changed

+439
-145
lines changed

10 files changed

+439
-145
lines changed

fern/assets/custom-styles.css

Lines changed: 37 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,6 @@
1414
border-bottom: 0;
1515
}
1616

17-
.fern-search-bar {
18-
background-color: #75757640 !important;
19-
box-shadow: none !important;
20-
}
21-
22-
.fern-search-bar:hover {
23-
background-color: #75757659 !important;
24-
}
25-
2617
.fern-sidebar-container > nav {
2718
padding-left: 0 !important;
2819
}
@@ -54,6 +45,10 @@
5445
border-right: 1px solid rgba(255, 255, 255, 0.1) !important;
5546
}
5647

48+
#fern-search-button {
49+
background-color: var(--grayscale-3) !important;
50+
}
51+
5752
.fern-breadcrumb-item {
5853
font-weight: 500;
5954
}
@@ -64,4 +59,36 @@
6459

6560
.fern-mdx-link {
6661
font-weight: 500 !important;
67-
}
62+
}
63+
64+
/* Styling for the sidebar icon in the left nav */
65+
.fern-sidebar-icon {
66+
padding: 0.375rem;
67+
background-color: var(--grayscale-4);
68+
border-radius: 0.25rem;
69+
}
70+
71+
/* Hide expand icon for Cookbooks in sidebar */
72+
.fern-sidebar-link[href="/docs/guides"] .fern-sidebar-link-expand {
73+
display: none !important;
74+
}
75+
76+
/* Hide the sidebar group for Cookbooks */
77+
.fern-sidebar-link[href="/docs/guides"] + .fern-sidebar-group {
78+
display: none !important;
79+
}
80+
81+
/* Change font-semibold to font-medium in fern-cards */
82+
.fern-card .font-semibold {
83+
font-weight: 500 !important; /* medium weight */
84+
}
85+
86+
/* Remove opacity-50 from links in the Cookbooks section */
87+
.fern-sidebar-link-container:has(a.fern-sidebar-link[href^="/docs/guides"]) a.fern-sidebar-link.opacity-50 {
88+
opacity: 1 !important;
89+
}
90+
91+
/* Remove bottom borderfrom header */
92+
.fern-header {
93+
border-bottom: 0 !important;
94+
}
Lines changed: 14 additions & 0 deletions
Loading
Lines changed: 14 additions & 0 deletions
Loading
Lines changed: 9 additions & 0 deletions
Loading
242 KB
Binary file not shown.
742 KB
Loading

fern/docs.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ navigation:
7171
skip-slug: true
7272
contents:
7373
- section: Cookbooks
74-
icon: regular book
74+
icon: duotone book
7575
path: pages/05-guides/index.mdx
7676
slug: guides
7777
contents:
@@ -358,7 +358,7 @@ navigation:
358358
slug: real-time
359359
hidden: true
360360
- section: SDKs
361-
icon: cubes
361+
icon: duotone cubes
362362
contents:
363363
- link: Python
364364
href: https://github.com/AssemblyAI/assemblyai-python-sdk
@@ -371,7 +371,7 @@ navigation:
371371
- link: C#
372372
href: https://github.com/AssemblyAI/assemblyai-csharp-sdk
373373
- section: Integrations
374-
icon: code-fork
374+
icon: duotone code-fork
375375
path: pages/06-integrations/index.mdx
376376
contents:
377377
- section: LangChain
@@ -565,7 +565,7 @@ colors:
565565
layout:
566566
page-width: full
567567
searchbar-placement: header
568-
header-height: 80px
568+
header-height: 56px
569569
sidebar-width: 316px
570570
tabs-placement: header
571571
logo:

0 commit comments

Comments
 (0)