Skip to content

Commit 37e31be

Browse files
authored
docs(core): fix search indexing errors (#28858)
Fix search indexing errors
1 parent f3889e4 commit 37e31be

18 files changed

+15
-167
lines changed

docs/blog/2022-11-17-from-bootstrapped-to-venture-backed-nx-raises-8-6m.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ When Victor Savkin and I left Google to start this company in December 2016, we
1515

1616
![](/blog/images/2022-11-17/WIkl00uLsSt6p6dmQbIA0g.avif)
1717

18-
[Nx Cloud](/nx-cloud) has also seen a significant uptake in adoption, thanks in large part due to the addition of [Distributed Task Execution](/ci/concepts/parallelization-distribution) last year. With the combination of Distributed Task Execution and Distributed Caching, Nx Cloud is having a massive impact on the time it takes to validate and merge pull requests, drastically reducing product time-to-market. There are now more than 100k connected Nx Workspaces on nx.app. With Nx Cloud, Nx and Lerna workspaces can drastically reduce build times by letting Nx Cloud manage task cache distribution, and optimal distribution of tasks across many machines using Nx’s deep understanding of project relationships and task timings. We’ve determined that Nx and Nx Cloud have [saved over 250 years of compute time](blog/helping-the-environment-by-saving-two-centuries-of-compute-time) since we started measuring.
18+
[Nx Cloud](/nx-cloud) has also seen a significant uptake in adoption, thanks in large part due to the addition of [Distributed Task Execution](/ci/concepts/parallelization-distribution) last year. With the combination of Distributed Task Execution and Distributed Caching, Nx Cloud is having a massive impact on the time it takes to validate and merge pull requests, drastically reducing product time-to-market. There are now more than 100k connected Nx Workspaces on nx.app. With Nx Cloud, Nx and Lerna workspaces can drastically reduce build times by letting Nx Cloud manage task cache distribution, and optimal distribution of tasks across many machines using Nx’s deep understanding of project relationships and task timings. We’ve determined that Nx and Nx Cloud have [saved over 250 years of compute time](/blog/helping-the-environment-by-saving-two-centuries-of-compute-time) since we started measuring.
1919

2020
![](/blog/images/2022-11-17/ysWZ8fn2K3m3GjCNGRwshw.avif)
2121

docs/blog/2023-01-10-setting-up-module-federation-with-server-side-rendering-for-angular.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ However, until now, it has only supported Client-Side Rendering (CSR). Essential
1919

2020
> [What is server-side rendering: definition, benefits and risks](https://solutionshub.epam.com/blog/post/what-is-server-side-rendering)
2121
22-
Since [version 15.4](blog/nx-15-4-vite-4-support-a-new-nx-watch-command-and-more), Nx now offers Module Federation with support for SSR! 🎉
22+
Since [version 15.4](/blog/nx-15-4-vite-4-support-a-new-nx-watch-command-and-more), Nx now offers Module Federation with support for SSR! 🎉
2323

2424
Now we can get both, the benefits of Module Federation and SSR in our Nx Workspaces!
2525

docs/blog/2023-01-18-nx-console-meets-nx-cloud.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ To set it up, just click on the button in the Nx Console cloud view and follow t
110110
## Learn more
111111

112112
- 🧠 [Nx Docs](/getting-started/intro)
113-
- 👩‍💻 [Nx GitHub](<[https://github.com/nrwl/nx](https://github.com/nrwl/nx)>)
114-
- 🎮 [Nx Console GitHub](<[https://github.com/nrwl/nx-console](https://github.com/nrwl/nx-console)>)
113+
- 👩‍💻 [Nx GitHub](https://github.com/nrwl/nx)
114+
- 🎮 [Nx Console GitHub](https://github.com/nrwl/nx-console)
115115
- 💬 [Nx Official Discord Server](https://go.nx.dev/community)
116-
- 📹 [Nx Youtube Channel](<[https://www.youtube.com/@nxdevtools](https://www.youtube.com/@nxdevtools)>)
116+
- 📹 [Nx Youtube Channel](https://www.youtube.com/@nxdevtools)

docs/blog/2023-02-16-nx-15-7-node-support-angular-lts-lockfile-pruning.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ const lockFile = createLockFile(packageJson);
128128
// save files using e.g. `fs.writeFileSync`
129129
```
130130

131-
Stay tuned for a more in-depth blog post coming soon to [our blog](blog).
131+
Stay tuned for a more in-depth blog post coming soon to [our blog](/blog).
132132

133133
## Storybook 7.0 beta support
134134

docs/blog/2024-08-28-nxcloud-improved-ci-log.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ This command will guide you through the setup. We recently introduced a [new Hob
3939

4040
## Learn More
4141

42-
- [Nx on CI](/ci)
42+
- [Nx on CI](/ci/intro/ci-with-nx)
4343
- [Task Distribution with Nx Agents](/ci/features/distribute-task-execution)
4444
- [Automated e2e Test Splitting](/ci/features/split-e2e-tasks)
4545
- [X/Twitter](https://twitter.com/nxdevtools) -- [LinkedIn](https://www.linkedin.com/company/nrwl/)

docs/blog/2024-09-12-next-gen-module-federation-deployments.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -479,7 +479,7 @@ For more information about Zephyr Cloud I highly recommend checking out their [d
479479

480480
## Learn More
481481

482-
- [Nx on CI](/ci)
482+
- [Nx on CI](/ci/intro/ci-with-nx)
483483
- [Task Distribution with Nx Agents](/ci/features/distribute-task-execution)
484484
- [Automated e2e Test Splitting](/ci/features/split-e2e-tasks)
485485
- [X/Twitter](https://twitter.com/nxdevtools) -- [LinkedIn](https://www.linkedin.com/company/nrwl/)

docs/changelog/15_4_0.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Nx 15.4
22

3-
[Read the 15.4 release blog post](https://blog.nrwl.io/nx-15-4-vite-4-support-a-new-nx-watch-command-and-more-77cbf6c9a711)
3+
[Read the 15.4 release blog post](/blog/nx-15-4-vite-4-support-a-new-nx-watch-command-and-more)
44

55
{% youtube
66
src="https://www.youtube.com/embed/G02THNy3PcE"

docs/generated/packages/angular/generators/component-test.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@
5151
"componentDir",
5252
"componentFileName"
5353
],
54-
"examplesFile": "{% callout type=\"caution\" title=\"Can I use component testing?\" %}\nAngular component testing with Nx requires **Cypress version 10.7.0** and up.\n\nYou can migrate with to v11 via the [migrate-to-cypress-11 generator](/nx-api/cypress/generators/migrate-to-cypress-11).\n\nThis generator is for Cypress based component testing.\n\nIf you're wanting to create Cypress tests for a Storybook story, then check out the [component-cypress-spec generator docs](/nx-api/angular/generators/component-cypress-spec)\n\nIf you're wanting to create Storybook stories for a component, then check out the [stories generator docs](/nx-api/angular/generators/stories) or [component-story generator docs](/nx-api/angular/generators/component-cypress-spec)\n{% /callout %}\n\nThis generator is used to create a Cypress component test file for a given Angular component.\n\n```shell\nnx g @nx/angular:component-test --project=my-cool-angular-project --componentName=CoolBtnComponent --componentDir=src/cool-btn --componentFileName=cool-btn.component\n```\n\nTest file are generated with the `.cy.ts` suffix. this is to prevent colliding with any existing `.spec.` files contained in the project.\n\nIt's currently expected the generated `.cy.ts` file will live side by side with the component. It is also assumed the project is already setup for component testing. If it isn't, then you can run the [cypress-component-project generator](/nx-api/angular/generators/cypress-component-configuration) to set up the project for component testing.\n",
54+
"examplesFile": "{% callout type=\"caution\" title=\"Can I use component testing?\" %}\nAngular component testing with Nx requires **Cypress version 10.7.0** and up.\n\nYou can migrate with to v11 via the [migrate-to-cypress-11 generator](/nx-api/cypress/generators/migrate-to-cypress-11).\n{% /callout %}\n\nThis generator is used to create a Cypress component test file for a given Angular component.\n\n```shell\nnx g @nx/angular:component-test --project=my-cool-angular-project --componentName=CoolBtnComponent --componentDir=src/cool-btn --componentFileName=cool-btn.component\n```\n\nTest file are generated with the `.cy.ts` suffix. this is to prevent colliding with any existing `.spec.` files contained in the project.\n\nIt's currently expected the generated `.cy.ts` file will live side by side with the component. It is also assumed the project is already setup for component testing. If it isn't, then you can run the [cypress-component-project generator](/nx-api/angular/generators/cypress-component-configuration) to set up the project for component testing.\n",
5555
"presets": []
5656
},
5757
"description": "Creates a cypress component test file for a component.",

docs/generated/packages/react/generators/component-test.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
}
3131
},
3232
"required": ["project", "componentPath"],
33-
"examplesFile": "{% callout type=\"caution\" title=\"Can I use component testing?\" %}\nReact component testing with Nx requires **Cypress version 10** and up.\n\nYou can migrate with to v11 via the [migrate-to-cypress-11 generator](/nx-api/cypress/generators/migrate-to-cypress-11).\n\nThis generator is for Cypress based component testing.\n\nIf you're wanting to create Cypress tests for a Storybook story, then check out the [component-cypress-spec generator docs](/nx-api/react/generators/component-cypress-spec)\n\nIf you're wanting to create Storybook stories for a component, then check out the [stories generator docs](/nx-api/react/generators/stories) or [component-story generator docs](/nx-api/react/generators/component-cypress-spec)\n\n{% /callout %}\n\nThis generator is used to create a Cypress component test file for a given React component.\n\n```shell\nnx g @nx/react:component-test --project=my-cool-react-project --componentPath=src/my-fancy-button.tsx\n```\n\nTest file are generated with the `.cy.` suffix. this is to prevent colliding with any existing `.spec.` files contained in the project.\n\nIt's currently expected the generated `.cy.` file will live side by side with the component. It is also assumed the project is already setup for component testing. If it isn't, then you can run the [cypress-component-project generator](/nx-api/react/generators/cypress-component-configuration) to set up the project for component testing.\n",
33+
"examplesFile": "{% callout type=\"caution\" title=\"Can I use component testing?\" %}\nReact component testing with Nx requires **Cypress version 10** and up.\n\nYou can migrate with to v11 via the [migrate-to-cypress-11 generator](/nx-api/cypress/generators/migrate-to-cypress-11).\n\nThis generator is for Cypress based component testing.\n\nIf you're wanting to create Storybook stories for a component, then check out the [stories generator docs](/nx-api/react/generators/stories)\n\n{% /callout %}\n\nThis generator is used to create a Cypress component test file for a given React component.\n\n```shell\nnx g @nx/react:component-test --project=my-cool-react-project --componentPath=src/my-fancy-button.tsx\n```\n\nTest file are generated with the `.cy.` suffix. this is to prevent colliding with any existing `.spec.` files contained in the project.\n\nIt's currently expected the generated `.cy.` file will live side by side with the component. It is also assumed the project is already setup for component testing. If it isn't, then you can run the [cypress-component-project generator](/nx-api/react/generators/cypress-component-configuration) to set up the project for component testing.\n",
3434
"presets": []
3535
},
3636
"description": "Generate a Cypress component test for a React component",

docs/packages.json

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919
"add-linting",
2020
"application",
2121
"component",
22-
"component-cypress-spec",
2322
"component-story",
2423
"component-test",
2524
"downgrade-module",
@@ -278,7 +277,6 @@
278277
"storybook-configuration",
279278
"component-story",
280279
"stories",
281-
"component-cypress-spec",
282280
"hook",
283281
"host",
284282
"remote",

docs/shared/tutorials/angular-monorepo.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,6 @@ NX Capabilities in @nx/angular:
200200
add-linting : Adds linting configuration to an Angular project.
201201
application : Creates an Angular application.
202202
component : Generate an Angular Component.
203-
component-cypress-spec : Creates a Cypress spec for a UI component that has a story.
204203
component-story : Creates a stories.ts file for a component.
205204
component-test : Creates a cypress component test file for a component.
206205
convert-tslint-to-eslint : Converts a project from TSLint to ESLint.

docs/shared/tutorials/react-monorepo.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,6 @@ NX Capabilities in @nx/react:
250250
storybook-configuration : Set up storybook for a React app or library.
251251
component-story : Generate storybook story for a React component
252252
stories : Create stories/specs for all components declared in an app or library.
253-
component-cypress-spec : Create a Cypress spec for a UI component that has a story.
254253
hook : Create a hook.
255254
cypress-component-configuration : Setup Cypress component testing for a React project
256255
component-test : Generate a Cypress component test for a React component

docs/shared/tutorials/react-standalone.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -351,7 +351,6 @@ redux : Create a Redux slice for a project.
351351
storybook-configuration : Set up storybook for a React app or library.
352352
component-story : Generate storybook story for a React component
353353
stories : Create stories/specs for all components declared in an app or library.
354-
component-cypress-spec : Create a Cypress spec for a UI component that has a story.
355354
hook : Create a hook.
356355
host : Generate a host react application
357356
remote : Generate a remote react application

nx-dev/nx-dev/redirect-rules.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,6 @@ const schemaUrls = {
6666
'/packages/angular/executors/dev-server',
6767
'/react/application': '/packages/react/generators/application',
6868
'/react/component': '/packages/react/generators/component',
69-
'/react/component-cypress-spec':
70-
'/packages/react/generators/component-cypress-spec',
7169
'/react/component-story': '/packages/react/generators/component-story',
7270
'/react/library': '/packages/react/generators/library',
7371
'/react/redux': '/packages/react/generators/redux',

nx-dev/ui-common/src/lib/sidebar-container.tsx

Lines changed: 3 additions & 125 deletions
Original file line numberDiff line numberDiff line change
@@ -1,107 +1,6 @@
11
'use client';
2-
import { Menu, MenuItem, MenuSection } from '@nx/nx-dev/models-menu';
2+
import { Menu } from '@nx/nx-dev/models-menu';
33
import { Sidebar, SidebarMobile } from './sidebar';
4-
import { useMemo } from 'react';
5-
6-
// TODO(jack): Remove this rspack modification once we move rspack into main repo (when stable).
7-
const rspackSection = {
8-
id: 'rspack',
9-
name: 'rspack',
10-
itemList: [
11-
{
12-
id: 'documents',
13-
path: '/nx-api/rspack/documents',
14-
name: 'documents',
15-
children: [
16-
{
17-
name: 'Overview of the Nx Rspack plugin',
18-
path: '/nx-api/rspack/documents/overview',
19-
id: 'overview',
20-
isExternal: false,
21-
children: [],
22-
disableCollapsible: false,
23-
},
24-
{
25-
name: 'Rspack plugins',
26-
path: '/nx-api/rspack/documents/rspack-plugins',
27-
id: 'rspack-plugins',
28-
isExternal: false,
29-
children: [],
30-
disableCollapsible: false,
31-
},
32-
{
33-
name: 'How to configure Rspack in your Nx workspace',
34-
path: '/nx-api/rspack/documents/rspack-config-setup',
35-
id: 'rspack-config-setup',
36-
isExternal: false,
37-
children: [],
38-
disableCollapsible: false,
39-
},
40-
],
41-
isExternal: false,
42-
disableCollapsible: false,
43-
},
44-
{
45-
id: 'executors',
46-
path: '/nx-api/rspack/executors',
47-
name: 'executors',
48-
children: [
49-
{
50-
id: 'rspack',
51-
path: '/nx-api/rspack/executors/rspack',
52-
name: 'rspack',
53-
children: [],
54-
isExternal: false,
55-
disableCollapsible: false,
56-
},
57-
{
58-
id: 'dev-server',
59-
path: '/nx-api/rspack/executors/dev-server',
60-
name: 'dev-server',
61-
children: [],
62-
isExternal: false,
63-
disableCollapsible: false,
64-
},
65-
],
66-
isExternal: false,
67-
disableCollapsible: false,
68-
},
69-
{
70-
id: 'generators',
71-
path: '/nx-api/rspack/generators',
72-
name: 'generators',
73-
children: [
74-
{
75-
id: 'init',
76-
path: '/nx-api/rspack/generators/init',
77-
name: 'init',
78-
children: [],
79-
isExternal: false,
80-
disableCollapsible: false,
81-
},
82-
{
83-
id: 'configuration',
84-
path: '/nx-api/rspack/generators/configuration',
85-
name: 'configuration',
86-
children: [],
87-
isExternal: false,
88-
disableCollapsible: false,
89-
},
90-
{
91-
id: 'application',
92-
path: '/nx-api/rspack/generators/application',
93-
name: 'application',
94-
children: [],
95-
isExternal: false,
96-
disableCollapsible: false,
97-
},
98-
],
99-
isExternal: false,
100-
disableCollapsible: false,
101-
},
102-
],
103-
hideSectionHeader: false,
104-
};
1054

1065
export function SidebarContainer({
1076
menu,
@@ -112,33 +11,12 @@ export function SidebarContainer({
11211
navIsOpen: boolean;
11312
toggleNav: (value: boolean) => void;
11413
}): JSX.Element {
115-
// TODO(jack): Remove this rspack modification once we move rspack into main repo (when stable).
116-
const menuWithRspack = useMemo(() => {
117-
const storybookIdx = menu.sections.findIndex((s) => s.id === 'storybook');
118-
const sections =
119-
storybookIdx > -1
120-
? [
121-
...menu.sections.slice(0, storybookIdx),
122-
rspackSection,
123-
...menu.sections.slice(storybookIdx),
124-
]
125-
: menu.sections;
126-
return {
127-
...menu,
128-
sections,
129-
};
130-
}, [menu]);
131-
13214
return (
13315
<div id="sidebar" data-testid="sidebar">
134-
<SidebarMobile
135-
menu={menuWithRspack}
136-
toggleNav={toggleNav}
137-
navIsOpen={navIsOpen}
138-
/>
16+
<SidebarMobile menu={menu} toggleNav={toggleNav} navIsOpen={navIsOpen} />
13917
<div className="hidden h-full w-72 flex-col border-r border-slate-200 md:flex dark:border-slate-700 dark:bg-slate-900">
14018
<div className="relative flex flex-grow overflow-y-scroll p-4">
141-
<Sidebar menu={menuWithRspack} />
19+
<Sidebar menu={menu} />
14220
</div>
14321
{/*<div className="relative flex flex-col space-y-1 border-t border-slate-200 px-4 py-2 dark:border-slate-700">*/}
14422
{/* // another section.*/}

packages/angular/docs/component-cypress-spec-examples.md

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

packages/angular/docs/component-test-examples.md

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,6 @@
22
Angular component testing with Nx requires **Cypress version 10.7.0** and up.
33

44
You can migrate with to v11 via the [migrate-to-cypress-11 generator](/nx-api/cypress/generators/migrate-to-cypress-11).
5-
6-
This generator is for Cypress based component testing.
7-
8-
If you're wanting to create Cypress tests for a Storybook story, then check out the [component-cypress-spec generator docs](/nx-api/angular/generators/component-cypress-spec)
9-
10-
If you're wanting to create Storybook stories for a component, then check out the [stories generator docs](/nx-api/angular/generators/stories) or [component-story generator docs](/nx-api/angular/generators/component-cypress-spec)
115
{% /callout %}
126

137
This generator is used to create a Cypress component test file for a given Angular component.

packages/react/docs/component-test-examples.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,7 @@ You can migrate with to v11 via the [migrate-to-cypress-11 generator](/nx-api/cy
55

66
This generator is for Cypress based component testing.
77

8-
If you're wanting to create Cypress tests for a Storybook story, then check out the [component-cypress-spec generator docs](/nx-api/react/generators/component-cypress-spec)
9-
10-
If you're wanting to create Storybook stories for a component, then check out the [stories generator docs](/nx-api/react/generators/stories) or [component-story generator docs](/nx-api/react/generators/component-cypress-spec)
8+
If you're wanting to create Storybook stories for a component, then check out the [stories generator docs](/nx-api/react/generators/stories)
119

1210
{% /callout %}
1311

0 commit comments

Comments
 (0)