From b179ac91a2dffd357a0e0fa62ff638f4dbb75437 Mon Sep 17 00:00:00 2001 From: Timur Olzhabayev Date: Mon, 2 Jan 2023 15:20:13 +0100 Subject: [PATCH] Docs: Removing outdated plugin_dev doc (#60849) * Removing outdated plugin dev doc * Update docs/sources/developers/plugins/legacy/_index.md Co-authored-by: Karen Germond <110922559+karengermond@users.noreply.github.com> Co-authored-by: Karen Germond <110922559+karengermond@users.noreply.github.com> --- PLUGIN_DEV.md | 33 ------------------- .../developers/plugins/legacy/_index.md | 2 +- 2 files changed, 1 insertion(+), 34 deletions(-) delete mode 100644 PLUGIN_DEV.md diff --git a/PLUGIN_DEV.md b/PLUGIN_DEV.md deleted file mode 100644 index fbb2b79c0f2..00000000000 --- a/PLUGIN_DEV.md +++ /dev/null @@ -1,33 +0,0 @@ -# Plugin development - -This document is not meant as a complete guide for developing plugins but more as a changelog for changes in -Grafana that can impact plugin development. Whenever you as a plugin author encounter an issue with your plugin after -upgrading Grafana please check here before creating an issue. - -## Plugin development resources - -- [Grafana plugin developer guide](https://grafana.com/docs/grafana/latest/developers/plugins/) -- [Webpack Grafana plugin template project](https://github.com/CorpGlory/grafana-plugin-template-webpack) -- [Simple JSON datasource plugin](https://github.com/grafana/simple-json-datasource) - -## Changes in Grafana v4.6 - -This version of Grafana has big changes that will impact a limited set of plugins. We moved from systemjs to webpack -for built-in plugins and everything internal. External plugins still use systemjs but now with a limited -set of Grafana components they can import. Plugins can depend on libs like lodash & moment and internal components -like before using the same import paths. However since everything in Grafana is no longer accessible, a few plugins could encounter issues when importing a Grafana dependency. - -[List of exposed components plugins can import/require](https://github.com/grafana/grafana/blob/main/public/app/features/plugins/plugin_loader.ts#L48) - -If you think we missed exposing a crucial lib or Grafana component let us know by opening an issue. - -### Deprecated components - -The angular directive `` is now deprecated (will still work for a version more) but we recommend plugin authors -upgrade to new `` - -## Changes in Grafana v6.0 - -### DashboardSrv.ts - -If you utilize [DashboardSrv](https://github.com/grafana/grafana/commit/8574dca081002f36e482b572517d8f05fd44453f#diff-1ab99561f9f6a10e1fafcddc39bc1d65) in your plugin code, `dash` was renamed to `dashboard`. diff --git a/docs/sources/developers/plugins/legacy/_index.md b/docs/sources/developers/plugins/legacy/_index.md index 37c6f0ca6dc..bbd74cdce84 100644 --- a/docs/sources/developers/plugins/legacy/_index.md +++ b/docs/sources/developers/plugins/legacy/_index.md @@ -44,7 +44,7 @@ You can use any build system that supports systemjs. All the built content shoul ## Keep your plugin up to date -New versions of Grafana can sometimes cause plugins to break. Check out our [PLUGIN_DEV.md](https://github.com/grafana/grafana/blob/main/PLUGIN_DEV.md) doc for changes in +New versions of Grafana can sometimes cause plugins to break. See our [documentation](https://grafana.com/docs/grafana/latest/developers/plugins/migration-guide/) for changes in Grafana that can impact your plugin. ## Metadata