Skip to content

Commit

Permalink
fix(misc): fixed tags.json paths
Browse files Browse the repository at this point in the history
  • Loading branch information
mandarini committed Aug 5, 2024
1 parent 1a0639e commit 300e0ad
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 25 deletions.
28 changes: 14 additions & 14 deletions docs/generated/manifests/tags.json
Original file line number Diff line number Diff line change
Expand Up @@ -123,21 +123,21 @@
},
{
"description": "The core Nx plugin contains the core functionality of Nx like the project graph, nx commands and task orchestration.",
"file": "generated/packages/generated/packages/nx/documents/run",
"file": "generated/packages/nx/documents/run",
"id": "run",
"name": "run",
"path": "/nx-api/nx/documents/run"
},
{
"description": "The core Nx plugin contains the core functionality of Nx like the project graph, nx commands and task orchestration.",
"file": "generated/packages/generated/packages/nx/documents/run-many",
"file": "generated/packages/nx/documents/run-many",
"id": "run-many",
"name": "run-many",
"path": "/nx-api/nx/documents/run-many"
},
{
"description": "The core Nx plugin contains the core functionality of Nx like the project graph, nx commands and task orchestration.",
"file": "generated/packages/generated/packages/nx/documents/affected",
"file": "generated/packages/nx/documents/affected",
"id": "affected",
"name": "affected",
"path": "/nx-api/nx/documents/affected"
Expand Down Expand Up @@ -230,14 +230,14 @@
},
{
"description": "The core Nx plugin contains the core functionality of Nx like the project graph, nx commands and task orchestration.",
"file": "generated/packages/generated/packages/nx/documents/connect-to-nx-cloud",
"file": "generated/packages/nx/documents/connect-to-nx-cloud",
"id": "connect-to-nx-cloud",
"name": "connect-to-nx-cloud",
"path": "/nx-api/nx/documents/connect-to-nx-cloud"
},
{
"description": "The core Nx plugin contains the core functionality of Nx like the project graph, nx commands and task orchestration.",
"file": "generated/packages/generated/packages/nx/documents/reset",
"file": "generated/packages/nx/documents/reset",
"id": "reset",
"name": "reset",
"path": "/nx-api/nx/documents/reset"
Expand Down Expand Up @@ -274,7 +274,7 @@
},
{
"description": "The core Nx plugin contains the core functionality of Nx like the project graph, nx commands and task orchestration.",
"file": "generated/packages/generated/packages/nx/documents/dep-graph",
"file": "generated/packages/nx/documents/dep-graph",
"id": "dep-graph",
"name": "graph",
"path": "/nx-api/nx/documents/dep-graph"
Expand Down Expand Up @@ -339,7 +339,7 @@
},
{
"description": "The core Nx plugin contains the core functionality of Nx like the project graph, nx commands and task orchestration.",
"file": "generated/packages/generated/packages/nx/documents/generate",
"file": "generated/packages/nx/documents/generate",
"id": "generate",
"name": "generate",
"path": "/nx-api/nx/documents/generate"
Expand Down Expand Up @@ -369,7 +369,7 @@
},
{
"description": "The core Nx plugin contains the core functionality of Nx like the project graph, nx commands and task orchestration.",
"file": "generated/packages/generated/packages/nx/documents/migrate",
"file": "generated/packages/nx/documents/migrate",
"id": "migrate",
"name": "migrate",
"path": "/nx-api/nx/documents/migrate"
Expand Down Expand Up @@ -441,14 +441,14 @@
},
{
"description": "The core Nx plugin contains the core functionality of Nx like the project graph, nx commands and task orchestration.",
"file": "generated/packages/generated/packages/nx/documents/format-check",
"file": "generated/packages/nx/documents/format-check",
"id": "format-check",
"name": "format:check",
"path": "/nx-api/nx/documents/format-check"
},
{
"description": "The core Nx plugin contains the core functionality of Nx like the project graph, nx commands and task orchestration.",
"file": "generated/packages/generated/packages/nx/documents/format-write",
"file": "generated/packages/nx/documents/format-write",
"id": "format-write",
"name": "format:write",
"path": "/nx-api/nx/documents/format-write"
Expand Down Expand Up @@ -541,7 +541,7 @@
},
{
"description": "The core Nx plugin contains the core functionality of Nx like the project graph, nx commands and task orchestration.",
"file": "generated/packages/generated/packages/nx/documents/release",
"file": "generated/packages/nx/documents/release",
"id": "release",
"name": "release",
"path": "/nx-api/nx/documents/release"
Expand Down Expand Up @@ -631,7 +631,7 @@
},
{
"description": "The Nx Plugin for Angular contains executors, generators, and utilities for managing Angular applications and libraries within an Nx workspace. It provides: \n\n- Integration with libraries such as Storybook, Jest, ESLint, Tailwind CSS, Playwright and Cypress. \n\n- Generators to help scaffold code quickly (like: Micro Frontends, Libraries, both internal to your codebase and publishable to npm) \n\n- Single Component Application Modules (SCAMs) \n\n- NgRx helpers. \n\n- Utilities for automatic workspace refactoring.",
"file": "generated/packages/generated/packages/angular/documents/nx-devkit-angular-devkit",
"file": "generated/packages/angular/documents/nx-devkit-angular-devkit",
"id": "nx-devkit-angular-devkit",
"name": "Nx Devkit and Angular Devkit",
"path": "/nx-api/angular/documents/nx-devkit-angular-devkit"
Expand Down Expand Up @@ -783,7 +783,7 @@
},
{
"description": "The core Nx plugin contains the core functionality of Nx like the project graph, nx commands and task orchestration.",
"file": "generated/packages/generated/packages/nx/documents/watch",
"file": "generated/packages/nx/documents/watch",
"id": "watch",
"name": "watch",
"path": "/nx-api/nx/documents/watch"
Expand Down Expand Up @@ -1113,7 +1113,7 @@
},
{
"description": "The core Nx plugin contains the core functionality of Nx like the project graph, nx commands and task orchestration.",
"file": "generated/packages/generated/packages/nx/documents/connect-to-nx-cloud",
"file": "generated/packages/nx/documents/connect-to-nx-cloud",
"id": "connect-to-nx-cloud",
"name": "connect-to-nx-cloud",
"path": "/nx-api/nx/documents/connect-to-nx-cloud"
Expand Down
10 changes: 7 additions & 3 deletions scripts/documentation/generators/generate-manifests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -183,11 +183,15 @@ function generateTags(manifests: Manifest[]) {
Object.values(item.documents).forEach(
(documentMetadata: DocumentMetadata) => {
documentMetadata.tags.forEach((t: string) => {
const filePath = documentMetadata.file.startsWith(
'generated/packages'
)
? documentMetadata.file
: ['generated', 'packages', documentMetadata.file].join('/');

const tagData = {
description: documentMetadata.description,
file: ['generated', 'packages', documentMetadata.file].join(
'/'
),
file: filePath,
id: documentMetadata.id,
name: documentMetadata.name,
path: documentMetadata.path,
Expand Down
8 changes: 0 additions & 8 deletions tools/documentation/create-embeddings/src/main.mts
Original file line number Diff line number Diff line change
Expand Up @@ -424,14 +424,6 @@ function getAllFilesWithItemList(data): WalkEntry[] {
// the path is the relative path to the file within the nx repo
// the url_partial is the relative path to the file within the docs site - under nx.dev

// there's an error in `tags.json` where the path is incorrect
if (item.file.includes('generated/packages/generated/packages')) {
item.file = item.file.replace(
'generated/packages/generated/packages',
'generated/packages'
);
}

files.push({ path: `docs/${item.file}.md`, url_partial: item.path });
if (!identityMap[item.id]) {
identityMap = { ...identityMap, [item.id]: item };
Expand Down

0 comments on commit 300e0ad

Please sign in to comment.