Skip to content

Commit fee51f7

Browse files
authored
feat(docs): add template gallery page with visual previews (heygen-com#160)
* feat(docs): add template gallery page with visual previews * fix(docs): remove invalid MDX heading anchors * chore: retrigger CI * feat(docs): merge gallery into templates page with hover-to-play video previews - Consolidated gallery.mdx and templates.mdx into single templates.mdx - Moved templates page to Getting Started section - Added MP4 video previews rendered by hyperframes (hover to play) - Custom JS for hover-to-play behavior (Mintlify strips JSX event handlers) - 2-column grid for landscape, 3-column for portrait - Remotion-style cards with gradient overlay labels * fix(docs): update broken links after templates page move * ci(regression): remove scripts/ from regression trigger paths scripts/ contains dev utilities (lint, versioning, preview generation) that don't affect the rendering engine.
1 parent 5bb74cc commit fee51f7

20 files changed

Lines changed: 449 additions & 293 deletions

.github/workflows/regression.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ jobs:
2323
- "packages/core/**"
2424
- "packages/producer/**"
2525
- "packages/engine/**"
26-
- "scripts/**"
2726
- "Dockerfile*"
2827
2928
regression-shards:

docs/concepts/compositions.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ Compositions can expose variables for dynamic content:
133133
<div data-composition-id="card" data-var-title="string" data-var-color="color">
134134
```
135135

136-
Variables make compositions reusable as [templates](/guides/templates) -- the same composition can render different content by injecting variable values at render time.
136+
Variables make compositions reusable as [templates](/templates) -- the same composition can render different content by injecting variable values at render time.
137137

138138
## Listing Compositions
139139

@@ -152,7 +152,7 @@ npx hyperframes compositions
152152
<Card title="GSAP Animation" icon="wand-magic-sparkles" href="/guides/gsap-animation">
153153
Add animations to your compositions with GSAP timelines
154154
</Card>
155-
<Card title="Templates" icon="grid-2" href="/guides/templates">
155+
<Card title="Templates" icon="grid-2" href="/templates">
156156
Start from built-in templates for common video patterns
157157
</Card>
158158
<Card title="HTML Schema Reference" icon="book" href="/reference/html-schema">

docs/docs.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
"groups": [
3737
{
3838
"group": "Getting Started",
39-
"pages": ["introduction", "quickstart"]
39+
"pages": ["introduction", "quickstart", "templates"]
4040
},
4141
{
4242
"group": "Concepts",
@@ -51,7 +51,6 @@
5151
"group": "Guides",
5252
"pages": [
5353
"guides/gsap-animation",
54-
"guides/templates",
5554
"guides/rendering",
5655
"guides/common-mistakes",
5756
"guides/troubleshooting"

docs/guides/templates.mdx

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

docs/guides/troubleshooting.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ If your issue is about a specific coding mistake (animations not working, video
99
<Accordion title='"No composition found"'>
1010
Your directory needs an `index.html` with a valid [composition](/concepts/compositions). The root element must have a [`data-composition-id`](/concepts/data-attributes#composition-attributes) attribute.
1111

12-
**Fix:** Run `npx hyperframes init` to create a composition from a [template](/guides/templates), or verify your `index.html` has the correct structure:
12+
**Fix:** Run `npx hyperframes init` to create a composition from a [template](/templates), or verify your `index.html` has the correct structure:
1313

1414
```html index.html
1515
<div id="root" data-composition-id="my-video"
517 KB
Binary file not shown.
5.43 MB
Binary file not shown.
152 KB
Binary file not shown.
1.54 MB
Binary file not shown.
1.49 MB
Binary file not shown.

0 commit comments

Comments
 (0)