-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
201 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
name: Preview Docs | ||
|
||
on: pull_request | ||
|
||
jobs: | ||
run: | ||
runs-on: ubuntu-latest | ||
permissions: write-all | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
|
||
- name: Install Fern | ||
run: npm install -g fern-api | ||
|
||
- name: Generate preview URL | ||
id: generate-docs | ||
env: | ||
FERN_TOKEN: ${{ secrets.FERN_TOKEN }} | ||
run: | | ||
OUTPUT=$(fern generate --docs --preview --log-level debug 2>&1) || true | ||
echo "$OUTPUT" | ||
URL=$(echo "$OUTPUT" | grep -oP 'Published docs to \K.*(?= \()') | ||
echo "Preview URL: $URL" | ||
echo "🌿 Preview your docs: $URL" > preview_url.txt | ||
- name: Comment URL in PR | ||
uses: thollander/[email protected] | ||
with: | ||
filePath: preview_url.txt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
name: Publish Docs | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
run: | ||
runs-on: ubuntu-latest | ||
if: ${{ github.event_name == 'push' && contains(github.ref, 'refs/heads/main') && github.run_number > 1 }} | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
|
||
- name: Install Fern | ||
run: npm install -g fern-api | ||
|
||
- name: Publish Docs | ||
env: | ||
FERN_TOKEN: ${{ secrets.FERN_TOKEN }} | ||
run: fern generate --docs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,98 @@ | ||
--- | ||
layout: custom | ||
--- | ||
|
||
<style> | ||
{` | ||
body { | ||
background-color: #000; | ||
background-image: url("https://vapi.ai/assets/SolutionsBg-714aa4a1.svg"); | ||
background-position: center top; | ||
background-repeat: no-repeat; | ||
background-size: cover; | ||
margin-top: 100px; | ||
} | ||
h1 { | ||
background: linear-gradient(110deg, #fff 18.62%, #afdee9 121.64%); | ||
-webkit-background-clip: text; | ||
-webkit-font-smoothing: antialiased; | ||
-webkit-text-fill-color: transparent; | ||
} | ||
.full { | ||
width: 100%; | ||
height: 100vh; | ||
display: flex; | ||
flex-direction: column; | ||
align-items: center; | ||
padding-top: 100px; | ||
} | ||
.floating { | ||
animation: floating 4s ease-in-out infinite !important; | ||
} | ||
@keyframes floating { | ||
0% { transform: translate(0, 0px); } | ||
50% { transform: translate(0, 20px); } | ||
100% { transform: translate(0, -0px); } | ||
} | ||
.vapi { | ||
position: relative; | ||
display: flex; | ||
flex-direction: column; | ||
flex: 1 1 0%; | ||
} | ||
.vapi .fern-card { | ||
border-radius: 20px !important; | ||
border: 1px solid rgba(148, 255, 210, 0.8) !important; | ||
background: radial-gradient(72.24% 136.19% at 52.51% 0%, rgba(0, 0, 0, 0) 0%, rgba(15, 32, 28, 0.08) 57.49%, rgba(128, 209, 255, 0.2) 90.03%, rgba(128, 255, 171, 0.2) 100%), rgba(0, 0, 0, 0.95) !important; | ||
backdrop-filter: blur(4px) !important; | ||
} | ||
.not-vapi .fern-card { | ||
border-radius: 20px !important; | ||
border: 1px solid rgba(255, 255, 255, 0.2) !important; | ||
background: rgba(0, 0, 0, 0.7) !important; | ||
backdrop-filter: blur(4px) !important; | ||
} | ||
.cards { | ||
padding-top: 100px; | ||
width: 75%; | ||
} | ||
`} | ||
</style> | ||
|
||
<div class="full dark"> | ||
<h1>Welcome to Vapi's</h1> | ||
<h1>Developer Documentation</h1> | ||
<p>Build, test, & deploy voice AI agents in minutes rather than months</p> | ||
|
||
<div class="cards"> | ||
<CardGroup cols={2}> | ||
<div class="not-vapi"> | ||
<Card | ||
title="The status quo" | ||
icon="fa-solid fa-waveform-lines" | ||
color="#BCC5CC" | ||
> | ||
Months to work to production, continued DevOps and R&D investment. | ||
</Card> | ||
</div> | ||
<div class="vapi"> | ||
<img src="https://vapi.ai/assets/ComparisonCardTop-16f844a0.svg" /> | ||
<Card | ||
title="Using Vapi" | ||
icon={<svg width="32" height="32" viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M15.3062 13.4393C15.4321 13.695 15.6921 13.8572 15.9771 13.858C16.2622 13.8587 16.523 13.6978 16.6502 13.4427L19.9263 6.87415C20.8632 4.99584 23.1771 4.21162 25.0968 5.14201C27.0107 6.0696 27.7888 8.34107 26.855 10.2132L19.4167 25.1269C18.7688 26.4257 17.4225 27.2537 15.9425 27.25C14.4625 27.2463 13.1205 26.4116 12.4794 25.1096L5.13642 10.1959C4.21237 8.31916 5.00207 6.05154 6.92086 5.13351C8.84542 4.21272 11.1552 5.00861 12.0823 6.89148L15.3062 13.4393Z" stroke="#94FFD2" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path></svg>} | ||
> | ||
In production tonight, world-class pushing DevOps and R&D. | ||
</Card> | ||
<img src="https://vapi.ai/assets/ComparisonCardBottom-d214c8de.svg" /> | ||
</div> | ||
</CardGroup> | ||
</div> | ||
</div> |