Skip to content

Commit c9f7e78

Browse files
noahraynor-vapiNoah Raynorroshan-vapi
authored
Simulations documentation (#917)
* added simulations and quickstart * fixed simulations description to match v2 and added advanced * a few fixes * alpha badges * adjusting alpha badge * formatting alpha badge * fix subheader and make it white * scope white text for subtitle only to this page * fixed faq * more faq fixes --------- Co-authored-by: Noah Raynor <noah.raynor@vapi.ai> Co-authored-by: roshan <roshan@vapi.ai>
1 parent 34fe0c2 commit c9f7e78

File tree

4 files changed

+1638
-0
lines changed

4 files changed

+1638
-0
lines changed

fern/assets/styles.css

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,14 @@
3838
border: 1px solid #C7D2FE;
3939
}
4040

41+
/* Alpha badge - purple to match dashboard */
42+
.vapi-badge-alpha {
43+
background-color: rgba(168, 85, 247, 0.2) !important;
44+
color: #A78BFA !important;
45+
border: 1px solid rgba(168, 85, 247, 0.4) !important;
46+
border-color: rgba(168, 85, 247, 0.4) !important;
47+
}
48+
4149
/* Dark mode adjustments */
4250
:is(.dark) .vapi-badge-assistant {
4351
background-color: #134E4A;
@@ -57,6 +65,42 @@
5765
border: 1px solid #6366F1;
5866
}
5967

68+
:is(.dark) .vapi-badge-alpha {
69+
background-color: rgba(168, 85, 247, 0.2) !important;
70+
color: #C4B5FD !important;
71+
border: 1px solid rgba(168, 85, 247, 0.4) !important;
72+
border-color: rgba(168, 85, 247, 0.4) !important;
73+
}
74+
75+
/* Override Fern's pre-release availability badge to show "Alpha" with purple styling */
76+
.fern-docs-badge[title="Pre-release"] {
77+
background-color: rgba(168, 85, 247, 0.2) !important;
78+
border-color: rgba(168, 85, 247, 0.4) !important;
79+
font-size: 0 !important;
80+
position: relative !important;
81+
min-width: 52px !important;
82+
min-height: 24px !important;
83+
display: inline-flex !important;
84+
}
85+
86+
.fern-docs-badge[title="Pre-release"]::after {
87+
content: "Alpha";
88+
position: absolute;
89+
top: 50%;
90+
left: 50%;
91+
transform: translate(-50%, -50%);
92+
color: #A78BFA;
93+
font-size: 0.75rem;
94+
line-height: 1;
95+
white-space: nowrap;
96+
}
97+
98+
:is(.dark) .fern-docs-badge[title="Pre-release"] {
99+
background-color: rgba(168, 85, 247, 0.2) !important;
100+
color: #C4B5FD !important;
101+
border-color: rgba(168, 85, 247, 0.4) !important;
102+
}
103+
60104
/* for a grid of videos */
61105

62106
.video-grid {
@@ -233,4 +277,9 @@ html.dark button[data-highlighted] .fern-api-property-meta {
233277

234278
.light .fern-theme-default.fern-container {
235279
background-color: #fff !important;
280+
}
281+
282+
/* Fix: Make subtitle white on Simulations pages in dark mode */
283+
:is(.dark) [id*="simulations"] .prose-p\:text-\(color\:--grayscale-a11\) :where(p):not(:where([class~=not-prose],[class~=not-prose] *)) {
284+
color: var(--grayscale-12) !important;
236285
}

fern/docs.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -290,6 +290,16 @@ navigation:
290290
- page: Advanced
291291
path: observability/evals-advanced.mdx
292292
icon: fa-light fa-clipboard-check
293+
- section: Simulations
294+
icon: fa-light fa-flask-vial
295+
availability: pre-release
296+
contents:
297+
- page: Quickstart
298+
path: observability/simulations-quickstart.mdx
299+
icon: fa-light fa-rocket
300+
- page: Advanced
301+
path: observability/simulations-advanced.mdx
302+
icon: fa-light fa-flask-vial
293303
- page: Boards
294304
path: observability/boards-quickstart.mdx
295305
icon: fa-light fa-chart-line

0 commit comments

Comments
 (0)