Skip to content

Commit 5f4417f

Browse files
kgowruKapil Gowru
andauthored
fix: added self hosting and cleaned up mermaid diagram and icons for … (#377)
Co-authored-by: Kapil Gowru <[email protected]>
1 parent ad5dd41 commit 5f4417f

File tree

6 files changed

+82
-27
lines changed

6 files changed

+82
-27
lines changed

fern/assets/styles.css

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,60 @@
3737
background-color: transparent !important;
3838
}
3939

40+
.fern-button-text {
41+
font-weight: 500 !important;
42+
}
43+
44+
.fern-layout-footer.not-prose {
45+
margin-top: 4rem !important;
46+
}
47+
48+
.prose {
49+
color: var(--grayscale-12) !important;
50+
}
51+
52+
h1, h2, h3 {
53+
letter-spacing: -0.02em !important;
54+
}
55+
56+
/*** START -- MERMAID DIAGRAMS STYLING ***/
57+
#mermaid-svg {
58+
rect {
59+
stroke: var(--accent-a6) !important;
60+
fill: var(--accent-a3) !important;
61+
}
62+
63+
tspan, text {
64+
font-family: var(--font-body) !important;
65+
color: var(--grayscale-10) !important;
66+
}
67+
68+
line, .messageLine0 {
69+
stroke: var(--grayscale-a9) !important;
70+
}
71+
72+
#arrowhead path {
73+
fill: var(--grayscale-9) !important;
74+
stroke: var(--grayscale-9) !important;
75+
}
76+
77+
.actor-line {
78+
stroke: var(--accent-a6) !important;
79+
}
80+
81+
.actor-top {
82+
rx: 1rem !important;
83+
ry: 1rem !important;
84+
}
85+
86+
.actor-bottom {
87+
rx: 1rem !important;
88+
ry: 1rem !important;
89+
}
90+
}
91+
92+
/*** END -- MERMAID DIAGRAMS STYLING ***/
93+
4094
/*** START -- PRODUCT SELECTOR STYLING ***/
4195
@media (min-width: 1024px) {
4296
div[data-testid="product-dropdown-content"] {

fern/docs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ products:
1919
path: ./products/home/home.yml
2020
# icon: fa-regular fa-home
2121
image: ./images/product-switcher/product-switcher-home-light.png
22-
slug: home
22+
slug:
2323
subtitle: Products that elevate your developer experience
2424

2525
- display-name: SDKs

fern/products/docs/docs.yml

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -17,64 +17,64 @@ navigation:
1717
contents:
1818
- page: Overview
1919
path: ./pages/component-library/default-components/overview.mdx
20-
icon: fa-regular fa-book
20+
icon: fa-duotone fa-book
2121
- page: Accordions
2222
path: ./pages/component-library/default-components/accordions.mdx
23-
icon: fa-regular fa-chevron-down
23+
icon: fa-duotone fa-chevron-down
2424
- page: Accordion Groups
2525
path: ./pages/component-library/default-components/accordion-groups.mdx
26-
icon: fa-regular fa-chevrons-down
26+
icon: fa-duotone fa-chevrons-down
2727
- page: Aside
2828
path: ./pages/component-library/default-components/aside.mdx
2929
icon: fa-regular fa-comment-dots
3030
- page: Button
3131
path: ./pages/component-library/default-components/button.mdx
32-
icon: fa-regular fa-arrow-pointer
32+
icon: fa-duotone fa-arrow-pointer
3333
- page: Callouts
3434
path: ./pages/component-library/default-components/callouts.mdx
35-
icon: fa-regular fa-exclamation-triangle
35+
icon: fa-duotone fa-exclamation-triangle
3636
- page: Cards
3737
path: ./pages/component-library/default-components/cards.mdx
38-
icon: fa-regular fa-id-card
38+
icon: fa-duotone fa-id-card
3939
- page: Card Groups
4040
path: ./pages/component-library/default-components/card-groups.mdx
41-
icon: fa-regular fa-grid-2
41+
icon: fa-duotone fa-grid-2
4242
- page: Code Blocks
4343
path: ./pages/component-library/default-components/code-blocks.mdx
44-
icon: fa-regular fa-code
44+
icon: fa-duotone fa-code
4545
- page: Embed
4646
path: ./pages/component-library/default-components/embed.mdx
47-
icon: fa-regular fa-window-restore
47+
icon: fa-duotone fa-window-restore
4848
- page: Endpoint Request Snippet
4949
path: ./pages/component-library/default-components/endpoint-request-snippet.mdx
50-
icon: fa-regular fa-arrow-up
50+
icon: fa-duotone fa-arrow-up
5151
slug: request-snippet
5252
- page: Endpoint Response Snippet
5353
path: ./pages/component-library/default-components/endpoint-response-snippet.mdx
54-
icon: fa-regular fa-arrow-down
54+
icon: fa-duotone fa-arrow-down
5555
slug: response-snippet
5656
- page: Endpoint Schema Snippet
5757
path: ./pages/component-library/default-components/endpoint-schema-snippet.mdx
58-
icon: fa-regular fa-sitemap
58+
icon: fa-duotone fa-sitemap
5959
slug: schema-snippet
6060
- page: Frames
6161
path: ./pages/component-library/default-components/frames.mdx
62-
icon: fa-regular fa-window-maximize
62+
icon: fa-duotone fa-window-maximize
6363
- page: Icons
6464
path: ./pages/component-library/default-components/icons.mdx
65-
icon: fa-regular fa-icons
65+
icon: fa-duotone fa-icons
6666
- page: Parameter Fields
6767
path: ./pages/component-library/default-components/parameter-fields.mdx
68-
icon: fa-regular fa-list
68+
icon: fa-duotone fa-list
6969
- page: Steps
7070
path: ./pages/component-library/default-components/steps.mdx
71-
icon: fa-regular fa-list-ol
71+
icon: fa-duotone fa-list-ol
7272
- page: Tabs
7373
path: ./pages/component-library/default-components/tabs.mdx
74-
icon: fa-regular fa-folder-open
74+
icon: fa-duotone fa-folder-open
7575
- page: Tooltips
7676
path: ./pages/component-library/default-components/tooltips.mdx
77-
icon: fa-regular fa-comment
77+
icon: fa-duotone fa-comment
7878
- page: Visual Editor
7979
path: ./pages/component-library/writing-content/visual-editor.mdx
8080
- page: Reusable Markdown

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,4 +121,4 @@ subtitle: A website builder for beautiful agent and developer-friendly docs.
121121
</div>
122122
</a>
123123
</CardGroup>
124-
</div>
124+
</div>

fern/products/docs/pages/getting-started/project-structure.mdx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,9 @@ The `assets` folder contains any images or videos used in your documentation. Yo
6666

6767
## `docs.yml`
6868

69-
The `docs.yml` file is the configuration file that defines the navigation, theme, and hosting details of your documentation. You can customize the appearance and behavior of your documentation by editing this file.
69+
The `docs.yml` file is the heart of your Fern documentation site. This configuration file controls your documentation's navigation structure, visual design, site functionality, and hosting settings.
70+
71+
For complete configuration options, see the [docs.yml reference](/docs/customization/what-is-docs-yml).
7072

7173
<CodeBlock title="fern/docs.yml of this website">
7274
```yml

fern/products/home/pages/welcome.mdx

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -159,11 +159,6 @@ import { FernFooter } from "../../../components/FernFooter";
159159
<img src="./images/arrow-right-black.svg" alt="Arrow right light" className="dark:hidden" noZoom />
160160
<img src="./images/arrow-right-white.svg" alt="Arrow right light" className="hidden dark:block" noZoom />
161161
</a>
162-
<a className="fern-button minimal normal w-fit gap-1 a-btn" href="/docs/customization/what-is-docs-yml">
163-
Configure your docs
164-
<img src="./images/arrow-right-black.svg" alt="Arrow right light" className="dark:hidden" noZoom />
165-
<img src="./images/arrow-right-white.svg" alt="Arrow right light" className="hidden dark:block" noZoom />
166-
</a>
167162
<a className="fern-button minimal normal w-fit gap-1 a-btn" href="/docs/api-references/generate-api-ref">
168163
Bring your own API spec
169164
<img src="./images/arrow-right-black.svg" alt="Arrow right light" className="dark:hidden" noZoom />
@@ -174,7 +169,11 @@ import { FernFooter } from "../../../components/FernFooter";
174169
<img src="./images/arrow-right-black.svg" alt="Arrow right light" className="dark:hidden" noZoom />
175170
<img src="./images/arrow-right-white.svg" alt="Arrow right light" className="hidden dark:block" noZoom />
176171
</a>
177-
172+
<a className="fern-button minimal normal w-fit gap-1 a-btn" href="/docs/self-hosted/overview">
173+
Self host your docs
174+
<img src="./images/arrow-right-black.svg" alt="Arrow right light" className="dark:hidden" noZoom />
175+
<img src="./images/arrow-right-white.svg" alt="Arrow right light" className="hidden dark:block" noZoom />
176+
</a>
178177
</div>
179178
</div>
180179

0 commit comments

Comments
 (0)