Skip to content

Commit 51bebd9

Browse files
isaacplmannFrozenPandaz
authored andcommitted
docs(nx-dev): render keywords meta tag (#29450)
Renders `keywords` property from frontmatter as a `<meta>` tag. (cherry picked from commit c7e2782)
1 parent fe17c23 commit 51bebd9

File tree

6 files changed

+30
-0
lines changed

6 files changed

+30
-0
lines changed

docs/nx-cloud/features/split-e2e-tasks.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
---
2+
keywords: [split tasks, atomizer]
3+
---
4+
15
# Automatically Split E2E Tasks by File (Atomizer)
26

37
{% youtube

docs/shared/concepts/common-tasks.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
---
2+
keywords: [build, serve, test, lint]
3+
---
4+
15
# Common Tasks
26

37
The tasks that are [inferred by plugins](/concepts/inferred-tasks) or that you define in your [project configuration](/reference/project-configuration) can have any name that you want, but it is helpful for developers if you keep your task naming convention consistent across the projects in your repository. This way, if a developer moves from one project to another, they already know how to launch tasks for the new project. Here are some common task names that you can define for your projects.

docs/shared/features/automate-updating-dependencies.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
---
2+
keywords: [update]
3+
---
4+
15
# Automate Updating Dependencies
26

37
{% youtube

docs/shared/features/distribute-task-execution.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
---
2+
keywords: [distributed tasks]
3+
---
4+
15
# Distribute Task Execution (Nx Agents)
26

37
{% youtube

docs/shared/reference/project-configuration.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
---
2+
keywords: [project.json]
3+
---
4+
15
# Project Configuration
26

37
A project's configuration is constructed by Nx from three sources:

nx-dev/feature-doc-viewer/src/lib/doc-viewer.tsx

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,16 @@ export function DocViewer({
9696
siteName: 'Nx',
9797
type: 'website',
9898
}}
99+
additionalMetaTags={
100+
metadata.keywords
101+
? [
102+
{
103+
name: 'keywords',
104+
content: metadata.keywords,
105+
},
106+
]
107+
: []
108+
}
99109
/>
100110

101111
<div className="mx-auto w-full grow items-stretch px-4 sm:px-6 lg:px-8 2xl:max-w-6xl">

0 commit comments

Comments
 (0)