From 9d4f8b94980a36db5491c0fda29d8543921dccb8 Mon Sep 17 00:00:00 2001 From: Mikel Brislin <1299178488@qq.com> Date: Mon, 6 May 2024 23:41:50 +0800 Subject: [PATCH] docs(add-plugin): update file paths (#9910) --- docs/customization/add-plugin.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/customization/add-plugin.md b/docs/customization/add-plugin.md index a5fd0c5e66f..9ac03a5f0b0 100644 --- a/docs/customization/add-plugin.md +++ b/docs/customization/add-plugin.md @@ -20,7 +20,7 @@ SwaggerUI({ }) ``` -Or if you're updating the core plugins.. you'll add it to the base preset: [src/core/presets/base.js](https://github.com/swagger-api/swagger-ui/blob/master/src/core/presets/base.js) +Or if you're updating the core plugins.. you'll add it to the base preset: [src/core/presets/base/index.js](https://github.com/swagger-api/swagger-ui/blob/master/src/core/presets/base/index.js) Each Plugin is a function that returns an object. That object will get merged with the `system` and later bound to the state. Here is an example of each `type`