diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 2f64a12a39581..1bf4354a52401 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -337,7 +337,6 @@ packages/kbn-dev-proc-runner @elastic/kibana-operations packages/kbn-dev-utils @elastic/kibana-operations packages/kbn-discover-contextual-components @elastic/obs-ux-logs-team @elastic/kibana-data-discovery packages/kbn-discover-utils @elastic/kibana-data-discovery -packages/kbn-doc-links @elastic/docs packages/kbn-docs-utils @elastic/kibana-operations packages/kbn-dom-drag-drop @elastic/kibana-visualizations @elastic/kibana-data-discovery packages/kbn-ebt-tools @elastic/kibana-core @@ -623,6 +622,7 @@ packages/shared-ux/storybook/config @elastic/appex-sharedux packages/shared-ux/storybook/mock @elastic/appex-sharedux packages/shared-ux/table_persist @elastic/appex-sharedux src/core @elastic/kibana-core +src/platform/packages/shared/kbn-doc-links @elastic/docs src/plugins/advanced_settings @elastic/appex-sharedux @elastic/kibana-management src/plugins/ai_assistant_management/selection @elastic/obs-ai-assistant src/plugins/bfetch @elastic/appex-sharedux diff --git a/docs/upgrade-notes.asciidoc b/docs/upgrade-notes.asciidoc index 236d768b16d4e..effe1308408cc 100644 --- a/docs/upgrade-notes.asciidoc +++ b/docs/upgrade-notes.asciidoc @@ -23,8 +23,8 @@ ADD INSTRUCTIONS FOR USERS LOOKING TO UPGRADE. HOW CAN THEY WORK AROUND THIS? 1. Copy and edit the template in the right section of this file. Most recent entries should be at the top of the section, search for sections using the text "[float]". 2. Edit the anchor ID [[REPO-PR]] of the template with proper values. 3. Don't hardcode the link to the new entry. Instead, make it available through the doc link service files: - - https://github.com/elastic/kibana/blob/main/packages/kbn-doc-links/src/get_doc_links.ts - - https://github.com/elastic/kibana/blob/main/packages/kbn-doc-links/src/types.ts + - https://github.com/elastic/kibana/blob/main/src/platform/packages/shared/kbn-doc-links/src/get_doc_links.ts + - https://github.com/elastic/kibana/blob/main/src/platform/packages/shared/kbn-doc-links/src/types.ts The entry in the main links file should look like this: diff --git a/package.json b/package.json index fea0e9dc0bd4f..05f10169d5e81 100644 --- a/package.json +++ b/package.json @@ -460,7 +460,7 @@ "@kbn/discover-plugin": "link:src/plugins/discover", "@kbn/discover-shared-plugin": "link:src/plugins/discover_shared", "@kbn/discover-utils": "link:packages/kbn-discover-utils", - "@kbn/doc-links": "link:packages/kbn-doc-links", + "@kbn/doc-links": "link:src/platform/packages/shared/kbn-doc-links", "@kbn/dom-drag-drop": "link:packages/kbn-dom-drag-drop", "@kbn/ebt-tools": "link:packages/kbn-ebt-tools", "@kbn/ecs-data-quality-dashboard": "link:x-pack/packages/security-solution/ecs_data_quality_dashboard", diff --git a/packages/kbn-doc-links/README.md b/src/platform/packages/shared/kbn-doc-links/README.md similarity index 100% rename from packages/kbn-doc-links/README.md rename to src/platform/packages/shared/kbn-doc-links/README.md diff --git a/packages/kbn-doc-links/index.ts b/src/platform/packages/shared/kbn-doc-links/index.ts similarity index 100% rename from packages/kbn-doc-links/index.ts rename to src/platform/packages/shared/kbn-doc-links/index.ts diff --git a/packages/kbn-doc-links/jest.config.js b/src/platform/packages/shared/kbn-doc-links/jest.config.js similarity index 84% rename from packages/kbn-doc-links/jest.config.js rename to src/platform/packages/shared/kbn-doc-links/jest.config.js index c2430a3758092..2e9989c26f744 100644 --- a/packages/kbn-doc-links/jest.config.js +++ b/src/platform/packages/shared/kbn-doc-links/jest.config.js @@ -9,6 +9,6 @@ module.exports = { preset: '@kbn/test', - rootDir: '../..', - roots: ['/packages/kbn-doc-links'], + rootDir: '../../../../..', + roots: ['/src/platform/packages/shared/kbn-doc-links'], }; diff --git a/packages/kbn-doc-links/kibana.jsonc b/src/platform/packages/shared/kbn-doc-links/kibana.jsonc similarity index 100% rename from packages/kbn-doc-links/kibana.jsonc rename to src/platform/packages/shared/kbn-doc-links/kibana.jsonc diff --git a/packages/kbn-doc-links/package.json b/src/platform/packages/shared/kbn-doc-links/package.json similarity index 100% rename from packages/kbn-doc-links/package.json rename to src/platform/packages/shared/kbn-doc-links/package.json diff --git a/packages/kbn-doc-links/src/get_doc_links.test.ts b/src/platform/packages/shared/kbn-doc-links/src/get_doc_links.test.ts similarity index 100% rename from packages/kbn-doc-links/src/get_doc_links.test.ts rename to src/platform/packages/shared/kbn-doc-links/src/get_doc_links.test.ts diff --git a/packages/kbn-doc-links/src/get_doc_links.ts b/src/platform/packages/shared/kbn-doc-links/src/get_doc_links.ts similarity index 100% rename from packages/kbn-doc-links/src/get_doc_links.ts rename to src/platform/packages/shared/kbn-doc-links/src/get_doc_links.ts diff --git a/packages/kbn-doc-links/src/get_doc_meta.test.ts b/src/platform/packages/shared/kbn-doc-links/src/get_doc_meta.test.ts similarity index 100% rename from packages/kbn-doc-links/src/get_doc_meta.test.ts rename to src/platform/packages/shared/kbn-doc-links/src/get_doc_meta.test.ts diff --git a/packages/kbn-doc-links/src/get_doc_meta.ts b/src/platform/packages/shared/kbn-doc-links/src/get_doc_meta.ts similarity index 100% rename from packages/kbn-doc-links/src/get_doc_meta.ts rename to src/platform/packages/shared/kbn-doc-links/src/get_doc_meta.ts diff --git a/packages/kbn-doc-links/src/types.ts b/src/platform/packages/shared/kbn-doc-links/src/types.ts similarity index 100% rename from packages/kbn-doc-links/src/types.ts rename to src/platform/packages/shared/kbn-doc-links/src/types.ts diff --git a/packages/kbn-doc-links/tsconfig.json b/src/platform/packages/shared/kbn-doc-links/tsconfig.json similarity index 81% rename from packages/kbn-doc-links/tsconfig.json rename to src/platform/packages/shared/kbn-doc-links/tsconfig.json index df789404c43f2..9cd6452185ddf 100644 --- a/packages/kbn-doc-links/tsconfig.json +++ b/src/platform/packages/shared/kbn-doc-links/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../tsconfig.base.json", + "extends": "../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", "types": [ diff --git a/tsconfig.base.json b/tsconfig.base.json index c73ebc1e6b599..85eaafc729e61 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -786,8 +786,8 @@ "@kbn/discover-shared-plugin/*": ["src/plugins/discover_shared/*"], "@kbn/discover-utils": ["packages/kbn-discover-utils"], "@kbn/discover-utils/*": ["packages/kbn-discover-utils/*"], - "@kbn/doc-links": ["packages/kbn-doc-links"], - "@kbn/doc-links/*": ["packages/kbn-doc-links/*"], + "@kbn/doc-links": ["src/platform/packages/shared/kbn-doc-links"], + "@kbn/doc-links/*": ["src/platform/packages/shared/kbn-doc-links/*"], "@kbn/docs-utils": ["packages/kbn-docs-utils"], "@kbn/docs-utils/*": ["packages/kbn-docs-utils/*"], "@kbn/dom-drag-drop": ["packages/kbn-dom-drag-drop"], diff --git a/yarn.lock b/yarn.lock index 2113fb5435659..31b75569d8c6a 100644 --- a/yarn.lock +++ b/yarn.lock @@ -5388,7 +5388,7 @@ version "0.0.0" uid "" -"@kbn/doc-links@link:packages/kbn-doc-links": +"@kbn/doc-links@link:src/platform/packages/shared/kbn-doc-links": version "0.0.0" uid ""