Skip to content

Commit 3e7b17a

Browse files
authored
feat: Updated docs (#166)
* Updated docs * New structure * Updated docs * Added Stitcher and Player reference * Integrated scalar * Finished docs * More docs
1 parent c66f7b7 commit 3e7b17a

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

49 files changed

+1028
-1188
lines changed

docs/.vitepress/config.mts

Lines changed: 74 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ export default defineConfig({
5151
},
5252
{
5353
text: "Reference",
54-
link: "/reference/player",
54+
link: "/reference/api",
5555
activeMatch: "/reference/",
5656
},
5757
{
@@ -108,46 +108,80 @@ function sidebarGuide() {
108108
text: "Getting Started",
109109
link: "getting-started",
110110
},
111+
{
112+
text: "What's included",
113+
link: "whats-included",
114+
},
111115
],
112116
},
113117
{
114-
text: "Project",
118+
text: "Manage media",
115119
items: [
116120
{
117-
text: "What's included",
118-
link: "whats-included",
121+
text: "Overview",
122+
link: "media-overview",
119123
},
120124
{
121-
text: "Building blocks",
122-
link: "building-blocks",
125+
text: "Media processing",
126+
link: "media-processing",
123127
items: [
124128
{
125-
text: "Video processing",
126-
link: "video-processing",
129+
text: "Import video",
130+
link: "media-import-video",
127131
},
128132
{
129-
text: "Video personalization",
130-
link: "video-personalization",
133+
text: "Transcode & package",
134+
link: "media-transcode-package",
131135
},
132136
{
133-
text: "Player",
134-
link: "player",
137+
text: "Storage",
138+
link: "media-storage",
135139
},
136140
],
137141
},
138142
{
139-
text: "Tutorials",
143+
text: "Dashboard",
144+
link: "media-dashboard",
145+
},
146+
],
147+
},
148+
{
149+
text: "Stitcher",
150+
items: [
151+
{
152+
text: "Overview",
153+
link: "stitcher-overview",
154+
},
155+
{
156+
text: "Create a session",
157+
link: "stitcher-create-a-session",
158+
},
159+
{
160+
text: "Features",
140161
items: [
141162
{
142-
text: "Play adaptive video",
143-
link: "tutorials/play-adaptive-video"
163+
text: "Filtering",
164+
link: "stitcher-filtering",
165+
},
166+
{
167+
text: "HLS interstitials",
168+
link: "stitcher-hls-interstitials",
144169
},
145170
{
146-
text: "Add bumper like Netflix",
147-
link: "tutorials/add-bumper-like-netflix"
148-
}
149-
]
150-
}
171+
text: "Ad insertion",
172+
link: "stitcher-ad-insertion",
173+
},
174+
],
175+
},
176+
],
177+
},
178+
{
179+
text: "Player",
180+
items: [
181+
{
182+
text: "Overview",
183+
link: "player-overview",
184+
},
151185
],
152186
},
153187
{
@@ -172,8 +206,26 @@ function sidebarReference() {
172206
text: "Reference",
173207
items: [
174208
{
175-
text: "Player",
176-
link: "/player",
209+
text: "Services",
210+
items: [
211+
{
212+
text: "API",
213+
link: "api",
214+
},
215+
{
216+
text: "Stitcher",
217+
link: "stitcher",
218+
},
219+
],
220+
},
221+
{
222+
text: "Packages",
223+
items: [
224+
{
225+
text: "Player",
226+
link: "player",
227+
},
228+
],
177229
},
178230
],
179231
},
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<template>
2+
<Content class="api-reference" />
3+
</template>
4+
5+
<style>
6+
.api-reference {
7+
margin-right: 8px;
8+
}
9+
.api-reference .scalar-app {
10+
--refs-header-height: 64px;
11+
}
12+
</style>

docs/.vitepress/theme/custom.css

Lines changed: 3 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -30,15 +30,6 @@
3030
}
3131
}
3232

33-
.hidden {
34-
display: none;
35-
}
36-
37-
.iframe {
38-
width: 100%;
39-
border: none;
40-
}
41-
4233
.VPHomeHero .VPImage {
4334
max-width: 160px;
4435
}
@@ -47,8 +38,10 @@
4738
margin: 4em 0;
4839
}
4940

50-
.framed {
41+
.image {
42+
margin: 1.5rem 0;
5143
border-radius: 1rem;
44+
border: 2px solid rgba(0, 0, 0, .85);
5245
}
5346

5447
.package {
@@ -78,36 +71,3 @@
7871
.package div {
7972
margin-left: 2rem;
8073
}
81-
82-
.video {
83-
border-radius: 1rem;
84-
width: 100%;
85-
}
86-
87-
.number {
88-
width: 1.5rem;
89-
height: 1.5rem;
90-
font-size: 0.85rem;
91-
color: #ffffff;
92-
background-color: #000000;
93-
border-radius: 100%;
94-
display: inline-flex;
95-
align-items: center;
96-
justify-content: center;
97-
margin-right: 0.5rem;
98-
text-align: center;
99-
font-weight: bold;
100-
}
101-
102-
h1,
103-
h2,
104-
h3 {
105-
display: flex;
106-
align-items: center;
107-
}
108-
109-
.image-rounded {
110-
border-radius: 1rem;
111-
width: 100%;
112-
border: 2px solid #f1f1f1;
113-
}

docs/.vitepress/theme/index.ts

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,11 @@
11
import DefaultTheme from "vitepress/theme";
2+
import ApiDocs from "./components/ApiDocs.vue";
23
import "./custom.css";
4+
import type { Theme } from "vitepress";
35

4-
export default DefaultTheme;
6+
export default {
7+
extends: DefaultTheme,
8+
enhanceApp({ app }) {
9+
app.component("api-docs", ApiDocs);
10+
},
11+
} satisfies Theme;

docs/.vitepress/theme/types.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
declare module "*.vue";

docs/bun.lockb

157 KB
Binary file not shown.

docs/guide/building-blocks.md

Lines changed: 0 additions & 5 deletions
This file was deleted.

0 commit comments

Comments
 (0)