-
Notifications
You must be signed in to change notification settings - Fork 10k
[Docs Site] Add Stream content collection #22938
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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,13 @@ | ||
| id: streamid | ||
| url: example-video | ||
| title: Example Video | ||
| description: A Super cool video | ||
| products: | ||
| - workers | ||
| - workers-ai | ||
| transcript: ./transcript.vtt | ||
| chapters: | ||
| 00:01: Chapter 1 | ||
| 00:02: Chapter 2 | ||
| thumbnail: | ||
| url: https://example.com/foo.png | ||
This file contains hidden or 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,40 @@ | ||
| WEBVTT | ||
| 00:11.000 --> 00:13.000 | ||
| <v Roger Bingham>We are in New York City | ||
|
|
||
| 00:13.000 --> 00:16.000 | ||
| <v Roger Bingham>We're actually at the Lucern Hotel, just down the street | ||
|
|
||
| 00:16.000 --> 00:18.000 | ||
| <v Roger Bingham>from the American Museum of Natural History | ||
|
|
||
| 00:18.000 --> 00:20.000 | ||
| <v Roger Bingham>And with me is Neil deGrasse Tyson | ||
|
|
||
| 00:20.000 --> 00:22.000 | ||
| <v Roger Bingham>Astrophysicist, Director of the Hayden Planetarium | ||
|
|
||
| 00:22.000 --> 00:24.000 | ||
| <v Roger Bingham>at the AMNH. | ||
|
|
||
| 00:24.000 --> 00:26.000 | ||
| <v Roger Bingham>Thank you for walking down here. | ||
|
|
||
| 00:27.000 --> 00:30.000 | ||
| <v Roger Bingham>And I want to do a follow-up on the last conversation we did. | ||
|
|
||
| 00:30.000 --> 00:31.500 align:right size:50% | ||
| <v Roger Bingham>When we e-mailed— | ||
|
|
||
| 00:30.500 --> 00:32.500 align:left size:50% | ||
| <v Neil deGrasse Tyson>Didn't we talk about enough in that conversation? | ||
|
|
||
| 00:32.000 --> 00:35.500 align:right size:50% | ||
| <v Roger Bingham>No! No no no no; 'cos 'cos obviously 'cos | ||
|
|
||
| 00:32.500 --> 00:33.500 align:left size:50% | ||
| <v Neil deGrasse Tyson><i>Laughs</i> | ||
|
|
||
| 00:35.500 --> 00:38.000 | ||
| <v Roger Bingham>You know I'm so excited my glasses are falling off here. |
This file contains hidden or 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 hidden or 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,23 @@ | ||
| import { z } from "astro:schema"; | ||
| import { reference } from "astro:content"; | ||
|
|
||
| export const streamSchema = z.object({ | ||
| id: z.string(), | ||
| url: z.string(), | ||
| title: z.string(), | ||
| description: z.string(), | ||
| products: z.array(reference("products")), | ||
| transcript: z.string().optional(), | ||
| chapters: z.record(z.string(), z.string()).optional(), | ||
| tags: z.array(z.string()).optional(), | ||
| thumbnail: z | ||
| .object({ | ||
| url: z.string(), | ||
| }) | ||
| .or( | ||
| z.object({ | ||
| timestamp: z.string(), | ||
| }), | ||
| ) | ||
| .optional(), | ||
| }); |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.