Skip to content

Commit 5766694

Browse files
authored
chore(docs): Add overview video to release notes (+ other misc) (#37003)
1 parent 3e87026 commit 5766694

2 files changed

Lines changed: 20 additions & 7 deletions

File tree

‎docs/docs/custom-html.md‎

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,7 @@ Note: the various props that are rendered into pages _are_ required e.g.
2727

2828
## Inserting HTML into the `<head>`
2929

30-
Anything you render in the `html.js` component will _not_ be made "live" in
31-
the client like other components. If you want to dynamically update your
32-
`<head>` we recommend using
33-
[React Helmet](/plugins/gatsby-plugin-react-helmet/)
30+
Anything you render in the `html.js` component will _not_ be made "live" in the client like other components. If you want to dynamically update your `<head>` we recommend using [Gatsby's Head API](/docs/reference/built-in-components/gatsby-head/).
3431

3532
## Inserting HTML into the `<footer>`
3633

@@ -58,9 +55,11 @@ You can add custom JavaScript to your HTML document by using React's [`dangerous
5855
<script
5956
dangerouslySetInnerHTML={{
6057
__html: `
61-
var name = 'world';
62-
console.log('Hello ' + name);
63-
`,
58+
var name = 'world';
59+
console.log('Hello ' + name);
60+
`,
6461
}}
6562
/>
6663
```
64+
65+
However, we do recommend that you use [Gatsby's Script API](/docs/reference/built-in-components/gatsby-script/) instead.

‎docs/docs/reference/release-notes/v5.0/index.md‎

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,20 @@ If you're looking for an overview of all breaking changes and how to migrate, pl
3232

3333
If you're curious about our release schedules and which versions are officially supported, head to the [Gatsby Framework Version Support](/docs/reference/release-notes/gatsby-version-support/) document. As of Gatsby 5 we're no longer supporting Gatsby 2 and Gatsby 3.
3434

35+
## Overview Video
36+
37+
Prefer video over text? No problem! Learn more about all the new features in the video below:
38+
39+
<iframe
40+
width="560"
41+
height="315"
42+
src="https://www.youtube-nocookie.com/embed/6RwfzZi5gn0"
43+
title="YouTube video player"
44+
frameborder="0"
45+
allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture"
46+
allowfullscreen
47+
></iframe>
48+
3549
## Slice API
3650

3751
The Slice API allows you to define highly-shared components in your site, which will then inform Gatsby to build those shared components only once. After the files are built, Gatsby will then stitch the resulting markup and JavaScript to the pages that include that shared component. This means that changes to highly-shared components (such as headers, footers, and common layouts) no longer require a rebuild of all pages that use that shared component.

0 commit comments

Comments
 (0)