Skip to content

🎥 Make videos programmatically with React

Docs: Add Canvas Capture table of contents

Jonny Burgerc5a4e05b94af
diff --git a/packages/docs/docs/canvas-capture/TableOfContents.tsx b/packages/docs/docs/canvas-capture/TableOfContents.tsx
new file mode 100644
index 0000000000..e4de48813c
--- /dev/null
+++ b/packages/docs/docs/canvas-capture/TableOfContents.tsx
@@ -0,0 +1,16 @@
+import React from 'react';
+import {Grid} from '../../components/TableOfContents/Grid';
+import {TOCItem} from '../../components/TableOfContents/TOCItem';
+
+export const TableOfContents: React.FC = () => {
+ return (
+ <div>
+ <Grid>
+ <TOCItem link="/docs/canvas-capture/installation">
+ <strong>Installation</strong>
+ <div>Install the browser and Canvas Capture extension</div>
+ </TOCItem>
+ </Grid>
+ </div>
+ );
+};
diff --git a/packages/docs/docs/canvas-capture/index.mdx b/packages/docs/docs/canvas-capture/index.mdx
index 0c0dd622f4..1737938fbd 100644
--- a/packages/docs/docs/canvas-capture/index.mdx
+++ b/packages/docs/docs/canvas-capture/index.mdx
@@ -3,6 +3,8 @@ image: /generated/articles-docs-canvas-capture-index.png
title: Canvas Capture
---
+import {TableOfContents} from './TableOfContents';
+
# Canvas Capture
Remotion Canvas Capture is a high-fidelity webpage recorder which leverages HTML-in-canvas.
@@ -10,3 +12,7 @@ Remotion Canvas Capture is a high-fidelity webpage recorder which leverages HTML
It can record content at a higher resolution than the native display resolution.
Perfect for product demos showing closeups of UI.
+
+## Table of contents
+
+<TableOfContents />