Skip to content

Commit b42c10f

Browse files
committed
Feedback, break up env docs
1 parent f50a441 commit b42c10f

16 files changed

Lines changed: 172 additions & 130 deletions

File tree

docusaurus/docs/e2e-test-a-plugin/authentication.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ export default defineConfig<PluginOptions>({
9797

9898
## Managing users
9999

100-
When a `user` is defined in a setup project (like in the RBAC example above) `plugin-e2e` will use the Grafana HTTP API to create the user account. This action requires elevated permissions, so by default the server administrator credentials `admin:admin` will be used. If the end-to-end tests are targeting the [development environment](../set-up-development-environment.md) scaffolded with `create-plugin`, this will work fine. However for other test environments the server administrator password may be different. In that case, we search for GRAFANA_ADMIN_USER and GRAFANA_ADMIN_PASSWORD environment variables. Additionally you can provide the correct credentials by setting `grafanaAPICredentials` in the global options.
100+
When a `user` is defined in a setup project (like in the RBAC example above) `plugin-e2e` will use the Grafana HTTP API to create the user account. This action requires elevated permissions, so by default the server administrator credentials `admin:admin` will be used. If the end-to-end tests are targeting the [development environment](../set-up/set-up-development-environment.md) scaffolded with `create-plugin`, this will work fine. However for other test environments the server administrator password may be different. In that case, we search for GRAFANA_ADMIN_USER and GRAFANA_ADMIN_PASSWORD environment variables. Additionally you can provide the correct credentials by setting `grafanaAPICredentials` in the global options.
101101

102102
```ts title="playwright.config.ts"
103103
import { dirname } from 'path';

docusaurus/docs/get-started.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,11 @@ If this is your first time creating a plugin, we recommend that you familiarize
4444

4545
:::
4646

47-
## Classifications of Grafana plugins
47+
## Signature classifications of Grafana plugins
4848

49-
We recommend that you familiarize yourself with the signature classifications of Grafana plugins, such as the distinction between private and public plugins. Note that if you want to publish a plugin which is associated with a commercial offering to the official Grafana catalog, a paid subscription is typically required. Learn more about [our plugins policy](https://grafana.com/legal/plugins/).
49+
Familiarize yourself with the signature classifications of Grafana plugins, such as the distinction between private and public plugins.
50+
51+
Note that if you want to publish a plugin associated with a commercial offering to the official Grafana catalog, a paid subscription is typically required. Learn more about [our plugins policy](https://grafana.com/legal/plugins/).
5052

5153
## Use plugin tools to develop your plugins faster
5254

@@ -155,7 +157,7 @@ For more information about these files, refer to [Anatomy of a plugin](/key-conc
155157

156158
## Build and run your plugin in Docker
157159

158-
With the `create-plugin` tool, you can use a Docker container to simplify the configuration, loading, and development processes. For more information, refer to [Set up development environment](/set-up-development-environment/).
160+
With the `create-plugin` tool, you can use a Docker container to simplify the configuration, loading, and development processes. For more information, refer to [Set up development environment](/set-up/set-up-development-environment/).
159161

160162
Refer to the "Next steps" terminal output following the [scaffolding of a new plugin](#scaffold-a-plugin) to install dependencies, build and run your plugin.
161163

@@ -186,7 +188,7 @@ Note: We strongly recommend creating a new Git repository by running git init in
186188

187189
### Build the frontend
188190

189-
To build the plugin in watch mode for development, continually monitoring for changes, run:
191+
To build the plugin in watch mode for development and continually monitor for changes, run:
190192

191193
<BuildFEDevNPM />
192194

docusaurus/docs/how-to-guides/app-plugins/include-dashboards-in-app-plugins.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ We'll walk you through the process of bundling dashboards into plugins. The proc
1919

2020
## Step 1: Create a dashboard
2121

22-
Start by creating the dashboard you want to bundle with your plugin. The [development environment](/set-up-development-environment) provided by create-plugin can aid with creating and testing dashboards.
22+
Start by creating the dashboard you want to bundle with your plugin. The [development environment](/set-up/set-up-development-environment) provided by create-plugin can aid with creating and testing dashboards.
2323

2424
### Set up a data source variable
2525

docusaurus/docs/how-to-guides/data-source-plugins/include-dashboards.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ We'll walk you through the process of bundling dashboards into plugins. The proc
1616

1717
## Step 1: Create a dashboard
1818

19-
Start by creating the dashboard you want to bundle with your plugin. The [development environment](/set-up-development-environment) provided by create-plugin can aid with creating and testing dashboards.
19+
Start by creating the dashboard you want to bundle with your plugin. The [development environment](/set-up/set-up-development-environment) provided by create-plugin can aid with creating and testing dashboards.
2020

2121
### Export the dashboard
2222

docusaurus/docs/how-to-guides/plugin-internationalization.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -282,6 +282,6 @@ The translation file will look similar to this:
282282

283283
## Test the translated plugin
284284

285-
To test the plugin follow the steps in [Set up your development environment](../set-up-development-environment#docker-development-environment) to run your plugin locally.
285+
To test the plugin follow the steps in [Set up your development environment](../set-up/set-up-d) to run your plugin locally.
286286

287287
You can then verify your plugin is displaying the appropriate text as you [change the language](https://grafana.com/docs/grafana/latest/administration/organization-preferences/#change-grafana-language).

docusaurus/docs/key-concepts/best-practices.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ Is something missing from this list? [Let us know](https://github.com/grafana/pl
7979
## Publish a plugin
8080

8181
- **Add a GitHub badge** - Follow [these steps](https://grafana.com/blog/2024/06/06/6-tips-to-improve-your-grafana-plugin-before-you-publish/#tip-4-add-dynamic-badges-to-your-readme) to help users find your plugin using GitHub badges.
82-
- **Add workflow automation** - If your plugin is available on GitHub, consider [adding the GitHub workflows](../set-up-development-environment.md#set-up-github-workflows) for plugin development to your repository.
82+
- **Add workflow automation** - If your plugin is available on GitHub, consider [adding the GitHub workflows](../set-up/set-up-github) for plugin development to your repository.
8383

8484
## Manage plugin compatibility
8585

docusaurus/docs/key-concepts/manage-npm-dependencies.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ However, when the plugin is installed and executed within a Grafana instance, it
2626

2727
:::info
2828

29-
This dynamic dependency linking also applies to the [docker development environment](/set-up-development-environment) provided by create-plugin. When the plugin is running inside Grafana it will inherit the version of the `@grafana` dependencies from the Grafana application.
29+
This dynamic dependency linking also applies to the [docker development environment](/set-up/set-up-development-environment) provided by create-plugin. When the plugin is running inside Grafana it will inherit the version of the `@grafana` dependencies from the Grafana application.
3030

3131
:::
3232

docusaurus/docs/publish-a-plugin/build-automation.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ keywords:
1515

1616
# Automate packaging and signing with GitHub CI
1717

18-
We recommend setting up your plugin to use the supplied [Github workflows](../set-up-development-environment.md#set-up-github-workflows) from [create-plugin](../get-started.md)
18+
We recommend setting up your plugin to use the supplied [Github workflows](../set-up/set-up-github) from [create-plugin](../get-started.md)
1919
to ensure that your plugin will be built and packaged in the correct format.
2020

2121
Additionally, we recommend using the zip file produced from this workflow to test the plugin.

docusaurus/docs/publish-a-plugin/provide-test-environment.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Developers often ask us how long it takes for a plugin to be reviewed for publis
2222

2323
By far the most time consuming aspect of a plugin's review is the creation of a suitable test environment so we can verify its behavior. This step often involves a number of back-and-forth conversations between the plugin developer and the review team.
2424

25-
To improve the review time, add [_provisioning_](https://grafana.com/docs/grafana/latest/administration/provisioning/#provision-grafana) to your plugin. Provisioning refers to the process of preparing and configuring a test environment within the plugin's [Docker development environment](/set-up-development-environment).
25+
To improve the review time, add [_provisioning_](https://grafana.com/docs/grafana/latest/administration/provisioning/#provision-grafana) to your plugin. Provisioning refers to the process of preparing and configuring a test environment within the plugin's [Docker development environment](/set-up/set-up-development-environment).
2626

2727
## Why provisioning test environments?
2828

docusaurus/docs/publish-a-plugin/sign-a-plugin.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ All Grafana Labs-authored plugins, including Enterprise plugins, are signed so t
1717

1818
:::info
1919

20-
You don't need to sign a plugin during development or when submitting a plugin for review for the first time. The [Docker development environment](../set-up-development-environment.md) that is scaffolded with `@grafana/create-plugin` is configured by default to run in [development mode](https://github.com/grafana/grafana/blob/main/contribute/developer-guide.md#configure-grafana-for-development), which allows you to load the plugin without a signature.
20+
You don't need to sign a plugin during development or when submitting a plugin for review for the first time. The [Docker development environment](../set-up/set-up-development-environment.md) that is scaffolded with `@grafana/create-plugin` is configured by default to run in [development mode](https://github.com/grafana/grafana/blob/main/contribute/developer-guide.md#configure-grafana-for-development), which allows you to load the plugin without a signature.
2121

2222
:::
2323

0 commit comments

Comments
 (0)