Skip to content

Docs IA 2.0: Add examples to layout.js #79453

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 16 commits into from
May 27, 2025
Merged

Conversation

delbaoliveira
Copy link
Contributor

@delbaoliveira delbaoliveira commented May 21, 2025

In the layout.js API reference, we talk about the limitations of layouts but don't provide alternative examples. This simplifies the wording, and adds examples using the recommended APIs.

Also adds more general layout.js examples.

Part of: https://linear.app/vercel/issue/DOC-4696/routing-section-layouts-and-templates

Follow up: Look into template.js

@ijjk ijjk added created-by: Next.js DevEx team PRs by the DX team. Documentation Related to Next.js' official documentation. labels May 21, 2025
Copy link

changeset-bot bot commented May 21, 2025

⚠️ No Changeset found

Latest commit: 4583022

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

Copy link
Contributor

github-actions bot commented May 21, 2025

All broken links are now fixed, thank you!

@ijjk ijjk added the Font (next/font) Related to Next.js Font Optimization. label May 21, 2025
@delbaoliveira delbaoliveira changed the title Docs IA 2.0: Add examples to layout.js caveats Docs IA 2.0: Add examples to layout.js May 22, 2025
@delbaoliveira delbaoliveira merged commit f18b756 into canary May 27, 2025
72 checks passed
@delbaoliveira delbaoliveira deleted the docs-ia-layout-templates branch May 27, 2025 09:02
delbaoliveira added a commit that referenced this pull request May 27, 2025
Merge template.js information from BYA and update API reference to
follow the convention.

Please merge this PR first: #79453
Closes:
https://linear.app/vercel/issue/DOC-4696/routing-section-layouts-and-templates
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
created-by: Next.js DevEx team PRs by the DX team. Documentation Related to Next.js' official documentation. Font (next/font) Related to Next.js Font Optimization.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants