Skip to content

Commit 082c457

Browse files
authored
Fix Core docs links (#66977) (#67112)
1 parent 4c5586e commit 082c457

File tree

2 files changed

+12
-6
lines changed

2 files changed

+12
-6
lines changed

src/core/CONVENTIONS.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ my_plugin/
6868
   ├── index.ts
6969
   └── plugin.ts
7070
```
71-
- [Manifest file](/docs/development/core/server/kibana-plugin-server.pluginmanifest.md) should be defined on top level.
71+
- [Manifest file](/docs/development/core/server/kibana-plugin-core-server.pluginmanifest.md) should be defined on top level.
7272
- Both `server` and `public` should have an `index.ts` and a `plugin.ts` file:
7373
- `index.ts` should only contain:
7474
- The `plugin` export

src/core/MIGRATION_EXAMPLES.md

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ APIs to their New Platform equivalents.
66
- [Migration Examples](#migration-examples)
77
- [Configuration](#configuration)
88
- [Declaring config schema](#declaring-config-schema)
9+
- [Using New Platform config in a new plugin](#using-new-platform-config-in-a-new-plugin)
910
- [Using New Platform config from a Legacy plugin](#using-new-platform-config-from-a-legacy-plugin)
1011
- [Create a New Platform plugin](#create-a-new-platform-plugin)
1112
- [HTTP Routes](#http-routes)
@@ -15,11 +16,16 @@ APIs to their New Platform equivalents.
1516
- [4. New Platform plugin](#4-new-platform-plugin)
1617
- [Accessing Services](#accessing-services)
1718
- [Migrating Hapi "pre" handlers](#migrating-hapi-pre-handlers)
19+
- [Simple example](#simple-example)
20+
- [Full Example](#full-example)
1821
- [Chrome](#chrome)
19-
- [Updating an application navlink](#updating-application-navlink)
22+
- [Updating an application navlink](#updating-an-application-navlink)
2023
- [Chromeless Applications](#chromeless-applications)
2124
- [Render HTML Content](#render-html-content)
2225
- [Saved Objects types](#saved-objects-types)
26+
- [Concrete example](#concrete-example)
27+
- [Changes in structure compared to legacy](#changes-in-structure-compared-to-legacy)
28+
- [Remarks](#remarks)
2329
- [UiSettings](#uisettings)
2430

2531
## Configuration
@@ -65,7 +71,7 @@ export type MyPluginConfig = TypeOf<typeof config.schema>;
6571
### Using New Platform config in a new plugin
6672

6773
After setting the config schema for your plugin, you might want to reach the configuration in the plugin.
68-
It is provided as part of the [PluginInitializerContext](../../docs/development/core/server/kibana-plugin-server.plugininitializercontext.md)
74+
It is provided as part of the [PluginInitializerContext](../../docs/development/core/server/kibana-plugin-core-server.plugininitializercontext.md)
6975
in the *constructor* of the plugin:
7076

7177
```ts
@@ -210,9 +216,9 @@ new kibana.Plugin({
210216
In the legacy platform, plugins have direct access to the Hapi `server` object
211217
which gives full access to all of Hapi's API. In the New Platform, plugins have
212218
access to the
213-
[HttpServiceSetup](/docs/development/core/server/kibana-plugin-server.httpservicesetup.md)
219+
[HttpServiceSetup](/docs/development/core/server/kibana-plugin-core-server.httpservicesetup.md)
214220
interface, which is exposed via the
215-
[CoreSetup](/docs/development/core/server/kibana-plugin-server.coresetup.md)
221+
[CoreSetup](/docs/development/core/server/kibana-plugin-core-server.coresetup.md)
216222
object injected into the `setup` method of server-side plugins.
217223
218224
This interface has a different API with slightly different behaviors.
@@ -415,7 +421,7 @@ Services in the Legacy Platform were typically available via methods on either
415421
`server.plugins.*`, `server.*`, or `req.*`. In the New Platform, all services
416422
are available via the `context` argument to the route handler. The type of this
417423
argument is the
418-
[RequestHandlerContext](/docs/development/core/server/kibana-plugin-server.requesthandlercontext.md).
424+
[RequestHandlerContext](/docs/development/core/server/kibana-plugin-core-server.requesthandlercontext.md).
419425
The APIs available here will include all Core services and any services
420426
registered by plugins this plugin depends on.
421427

0 commit comments

Comments
 (0)