Apply suggestions from code review
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com> Co-authored-by: Fredrik Adelöw <freben@gmail.com>
This commit is contained in:
@@ -29,7 +29,7 @@ yarn add @backstage/plugin-techdocs
|
||||
|
||||
Once the package has been installed, you need to import the plugin in your app.
|
||||
|
||||
In `packages/app/src/App.tsx`, import TechDocsPage and add the following to
|
||||
In `packages/app/src/App.tsx`, import `TechDocsPage` and add the following to
|
||||
`FlatRoutes`:
|
||||
|
||||
```tsx
|
||||
|
||||
@@ -95,10 +95,10 @@ any route we want for the page, as long as it doesn't collide with the routes
|
||||
that we choose for the other plugins in the app.
|
||||
|
||||
These components that are exported from plugins are referred to as "Plugin
|
||||
Extension Components", or "Extensions Components". They are regular React
|
||||
Extension Components", or "Extension Components". They are regular React
|
||||
components, but in addition to being able to be rendered by React, they also
|
||||
contain various pieces of metadata that is used to write together the entire
|
||||
app. Extensions components are created using `create*Extension` methods, which
|
||||
contain various pieces of metadata that is used to wire together the entire
|
||||
app. Extension components are created using `create*Extension` methods, which
|
||||
you can read more about in the
|
||||
[composability documentation](../plugins/composability.md).
|
||||
|
||||
|
||||
@@ -33,7 +33,7 @@ To link that a component provides or consumes an API, see the [`providesApis`](h
|
||||
yarn add @backstage/plugin-api-docs
|
||||
```
|
||||
|
||||
2. Add the `ApiExplorerPage` extensions to the app:
|
||||
2. Add the `ApiExplorerPage` extension to the app:
|
||||
|
||||
```tsx
|
||||
// packages/app/src/App.tsx
|
||||
|
||||
@@ -23,7 +23,7 @@ Some features are not yet available for all supported Git providers.
|
||||
yarn add @backstage/plugin-catalog-import
|
||||
```
|
||||
|
||||
2. Add the `CatalogImportPage` extensions to the app:
|
||||
2. Add the `CatalogImportPage` extension to the app:
|
||||
|
||||
```tsx
|
||||
// packages/app/src/App.tsx
|
||||
|
||||
@@ -30,7 +30,7 @@ const serviceEntityPage = (
|
||||
);
|
||||
```
|
||||
|
||||
4. Setup the `app.config.yaml` and account token environment variable
|
||||
4. Setup the `app-config.yaml` and account token environment variable
|
||||
|
||||
```yaml
|
||||
# app.config.yaml
|
||||
|
||||
Reference in New Issue
Block a user