Minor composability etc docs changes

Signed-off-by: Fredrik Adelöw <freben@gmail.com>
This commit is contained in:
Fredrik Adelöw
2021-05-02 22:13:05 +02:00
parent 2e506a571c
commit b99ac3f6e1
39 changed files with 216 additions and 220 deletions
+2
View File
@@ -8,6 +8,8 @@ error handling and similar.
Add the library to your backend package:
```sh
# From your Backstage root directory
cd packages/backend
yarn add @backstage/backend-common
```
+1 -2
View File
@@ -15,12 +15,11 @@
*/
import { createRouter } from '@backstage/plugin-kubernetes-backend';
import { Router } from 'express';
import { PluginEnvironment } from '../types';
export default async function createPlugin({
logger,
config,
}: PluginEnvironment): Promise<Router> {
}: PluginEnvironment) {
return await createRouter({ logger, config });
}
+2 -2
View File
@@ -7,13 +7,13 @@ This package provides a CLI for developing Backstage plugins and apps.
Install the package via npm or Yarn:
```sh
$ npm install --save @backstage/cli
npm install --save @backstage/cli
```
or
```sh
$ yarn add @backstage/cli
yarn add @backstage/cli
```
## Development
+2 -2
View File
@@ -7,13 +7,13 @@ This package provides the core API used by Backstage plugins and apps.
Do not install this package directly, it is reexported by `@backstage/core`. Install that instead:
```sh
$ npm install --save @backstage/core
npm install --save @backstage/core
```
or
```sh
$ yarn add @backstage/core
yarn add @backstage/core
```
## Documentation
+2 -2
View File
@@ -7,13 +7,13 @@ This package provides the core API used by Backstage plugins and apps.
Install the package via npm or Yarn:
```sh
$ npm install --save @backstage/core
npm install --save @backstage/core
```
or
```sh
$ yarn add @backstage/core
yarn add @backstage/core
```
## Documentation
+2 -2
View File
@@ -9,13 +9,13 @@ This package provides utilities that help in developing plugins for Backstage, l
Install the package via npm or Yarn:
```sh
$ npm install --save-dev @backstage/dev-utils
npm install --save-dev @backstage/dev-utils
```
or
```sh
$ yarn add -D @backstage/dev-utils
yarn add -D @backstage/dev-utils
```
## Documentation
+2 -2
View File
@@ -7,13 +7,13 @@ This package provides utilities that can be used to test plugins and apps for Ba
Install the package via npm or Yarn:
```sh
$ npm install --save-dev @backstage/test-utils
npm install --save-dev @backstage/test-utils
```
or
```sh
$ yarn add -D @backstage/test-utils
yarn add -D @backstage/test-utils
```
## Documentation
+2 -2
View File
@@ -7,13 +7,13 @@ This package provides the extended Material UI Theme(s) that power Backstage.
Install the package via npm or Yarn:
```sh
$ npm install --save @backstage/theme
npm install --save @backstage/theme
```
or
```sh
$ yarn add @backstage/theme
yarn add @backstage/theme
```
## Documentation