Skip to content

Commit f9631ef

Browse files
Kapil GowruKapil Gowru
authored andcommitted
feat: adding self host and mcp server
1 parent d2e5490 commit f9631ef

File tree

7 files changed

+149
-87
lines changed

7 files changed

+149
-87
lines changed

fern/assets/styles.css

Lines changed: 53 additions & 55 deletions
Original file line numberDiff line numberDiff line change
@@ -372,46 +372,6 @@ 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-
415375
.dashed-pattern-left {
416376
position: absolute;
417377
left: -4rem;
@@ -557,6 +517,11 @@ a[href*="changelog"] svg {
557517
min-height: 100vh;
558518
position: relative;
559519

520+
/* Hide all anchor links on the homepage */
521+
[data-radix-popper-content-wrapper]:has(span[id^="radix-"]) {
522+
display: none !important;
523+
}
524+
560525
.dashed-pattern-left {
561526
position: absolute;
562527
left: -1rem;
@@ -648,7 +613,7 @@ a[href*="changelog"] svg {
648613
.card-header {
649614
display: flex;
650615
flex-direction: column;
651-
gap: 0.25rem;
616+
/* gap: 0.25rem; */
652617
}
653618

654619
.card-title {
@@ -676,7 +641,7 @@ a[href*="changelog"] svg {
676641
}
677642

678643
.card-description {
679-
font-size: 1rem;
644+
font-size: 0.875rem;
680645
color: var(--grayscale-10);
681646
}
682647

@@ -770,6 +735,14 @@ a[href*="changelog"] svg {
770735
align-items: flex-start;
771736
}
772737

738+
.community-card-header {
739+
display: flex;
740+
align-items: center;
741+
gap: 0.5rem;
742+
flex-direction: column;
743+
align-items: flex-start;
744+
}
745+
773746
.community-card-title {
774747
font-size: 1rem;
775748
font-weight: bold;
@@ -831,15 +804,17 @@ a[href*="changelog"] svg {
831804
/* Responsive Design - Mobile First */
832805
@media (max-width: 640px) {
833806
.main-content {
834-
padding: 2rem 1rem;
807+
padding: 2rem 0rem;
835808
}
836809

837810
.dashed-pattern-left {
838811
left: 0px;
812+
display: none;
839813
}
840814

841815
.dashed-pattern-right {
842816
right: 0px;
817+
display: none;
843818
}
844819

845820
.hero-section {
@@ -857,27 +832,27 @@ a[href*="changelog"] svg {
857832
}
858833

859834
.sdks-card {
860-
padding: 1rem;
835+
padding: 2rem 1rem;
861836
}
862837

863838
.docs-card {
864-
padding: 1rem;
839+
padding: 2rem 1rem;
865840
border-left: none;
866841
grid-column: 1;
867842
grid-row: auto;
868843
}
869844

870845
.ai-search-card {
871-
padding: 1rem;
846+
padding: 2rem 1rem;
872847
}
873848

874849
.card-title {
875850
font-size: 1.375rem;
876851
}
877852

878-
.card-description {
853+
/* .card-description {
879854
font-size: 1.0625rem;
880-
}
855+
} */
881856

882857
.language-icons {
883858
flex-wrap: wrap;
@@ -917,7 +892,7 @@ a[href*="changelog"] svg {
917892
}
918893

919894
.community-section {
920-
padding: 2rem 1.5rem;
895+
padding: 2rem 1rem;
921896
}
922897

923898
.community-grid {
@@ -928,15 +903,15 @@ a[href*="changelog"] svg {
928903
.community-card {
929904
border-radius: 0.5rem;
930905
transition: all 0.2s ease;
906+
}
931907

932-
&:hover {
933-
border-color: var(--grayscale-6);
934-
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
935-
}
908+
.community-card-header {
909+
flex-direction: row;
910+
align-items: center;
936911
}
937912

938913
.help-section {
939-
padding: 2rem 1.5rem;
914+
padding: 2rem 1rem;
940915
}
941916

942917
.help-buttons {
@@ -996,12 +971,35 @@ a[href*="changelog"] svg {
996971
will-change: transform;
997972
/* Ensure click events can reach the canvas */
998973
pointer-events: auto;
974+
min-height: 104px;
999975
}
1000976

1001977
.sdk-rive:hover {
1002978
transform: translateY(-3px) !important;
1003979
}
1004980

981+
.docs-rive {
982+
min-height: 213px;
983+
}
984+
985+
.ask-fern-rive {
986+
min-height: 114px;
987+
}
988+
989+
@media (max-width: 640px) {
990+
.sdk-rive {
991+
min-height: inherit;
992+
}
993+
994+
.docs-rive {
995+
min-height: inherit;
996+
}
997+
998+
.ask-fern-rive {
999+
min-height: inherit;
1000+
}
1001+
}
1002+
10051003
/* Ensure the canvas can receive clicks and is properly layered */
10061004
.rive-container {
10071005
width: 100%;
@@ -1031,4 +1029,4 @@ a[href*="changelog"] svg {
10311029
display: inline-block;
10321030
}
10331031

1034-
/*** END -- LANDING PAGE STYLING ***/
1032+
/*** END -- LANDING PAGE STYLING ***/
349 KB
Loading
329 KB
Loading

fern/products/docs/pages/getting-started/overview.mdx

Lines changed: 37 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ subtitle: A website builder for beautiful agent and developer-friendly docs.
1111
<div className="dashed-pattern-right"></div>
1212

1313
<h2>Get started</h2>
14-
<p>Build a docs site quickly by importing your existing styling and specs.</p>
14+
<p>Build a docs site quickly by importing your existing syling and specs.</p>
1515

1616
<CardGroup cols={2}>
1717
<a class="fern-card interactive not-prose relative block p-6 text-base" href="/docs/getting-started/quickstart">
@@ -31,7 +31,7 @@ subtitle: A website builder for beautiful agent and developer-friendly docs.
3131
</div>
3232
</a>
3333

34-
<a class="fern-card interactive not-prose rounded-3 relative block border p-6 text-base" href="/docs/configuration/what-is-docs-yml">
34+
<a class="fern-card interactive not-prose rounded-3 relative block border p-6 text-base" href="/docs/customization/what-is-docs-yml">
3535
<div class="flex items-start flex-col space-y-3">
3636
<img class="mx-auto dark:hidden" alt="Configure with ease" src="./images/configure.png" />
3737
<img class="mx-auto hidden dark:block" alt="Configure with ease" src="./images/configure-dark.png" />
@@ -115,7 +115,41 @@ subtitle: A website builder for beautiful agent and developer-friendly docs.
115115
<img src="./images/arrow-right-white.svg" alt="Arrow right light" className="arrow-right hidden dark:block m-0" noZoom />
116116
</div>
117117
<div class="text-(color:--grayscale-a11) font-light">
118-
<p>Get instant answers to questions about your docs from a personalized chatbot.</p>
118+
<p>A personalized chatbot that can answer questions about your documentation.</p>
119+
</div>
120+
</div>
121+
</div>
122+
</a>
123+
124+
<a class="fern-card interactive not-prose rounded-3 relative block border p-6 text-base" href="/docs/self-hosted/overview">
125+
<div class="flex items-start flex-col space-y-3">
126+
<img class="mx-auto dark:hidden" alt="Visual Editor" src="./images/self-host-light.png" />
127+
<img class="mx-auto hidden dark:block" alt="Visual Editor" src="./images/ask-fern-dark.png" />
128+
<div class="w-full space-y-1 overflow-hidden">
129+
<div class="text-(color:--grayscale-a12) text-body text-base font-semibold card-title">
130+
Self-host your docs
131+
<img src="./images/arrow-right-black.svg" alt="Arrow right light" className="arrow-right dark:hidden m-0" noZoom />
132+
<img src="./images/arrow-right-white.svg" alt="Arrow right light" className="arrow-right hidden dark:block m-0" noZoom />
133+
</div>
134+
<div class="text-(color:--grayscale-a11) font-light">
135+
<p>Deploy on your own infrastructure to meet security or compliance requirements.</p>
136+
</div>
137+
</div>
138+
</div>
139+
</a>
140+
141+
<a class="fern-card interactive not-prose rounded-3 relative block border p-6 text-base" href="/ask-fern/getting-started/what-is-ask-fern">
142+
<div class="flex items-start flex-col space-y-3">
143+
<img class="mx-auto dark:hidden" alt="Visual Editor" src="./images/mcp-server-light.png" />
144+
<img class="mx-auto hidden dark:block" alt="Visual Editor" src="./images/ask-fern-dark.png" />
145+
<div class="w-full space-y-1 overflow-hidden">
146+
<div class="text-(color:--grayscale-a12) text-body text-base font-semibold card-title">
147+
Fern's MCP Server
148+
<img src="./images/arrow-right-black.svg" alt="Arrow right light" className="arrow-right dark:hidden m-0" noZoom />
149+
<img src="./images/arrow-right-white.svg" alt="Arrow right light" className="arrow-right hidden dark:block m-0" noZoom />
150+
</div>
151+
<div class="text-(color:--grayscale-a11) font-light">
152+
<p>Add Fern's MCP server to your AI agentic workflows.</p>
119153
</div>
120154
</div>
121155
</div>

0 commit comments

Comments
 (0)