docs: update plugin installation docs
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
This commit is contained in:
@@ -5,13 +5,7 @@ This plugin helps to visualize the domains and tools in your ecosystem.
|
||||
|
||||
## Getting started
|
||||
|
||||
To install the plugin, include the following import your `plugins.ts`:
|
||||
|
||||
```typescript
|
||||
export { explorePlugin } from '@backstage/plugin-explore';
|
||||
```
|
||||
|
||||
Register and bind the route in `App.tsx`:
|
||||
To install the plugin, add and bind the route in `App.tsx`:
|
||||
|
||||
```typescript
|
||||
import { ExplorePage, explorePlugin } from '@backstage/plugin-explore';
|
||||
@@ -30,7 +24,7 @@ bindRoutes({ bind }) {
|
||||
<Route path="/explore" element={<ExplorePage />} />
|
||||
```
|
||||
|
||||
Add a link to the sidebar in `Root.tsx`:
|
||||
And add a link to the sidebar in `Root.tsx`:
|
||||
|
||||
```typescript
|
||||
import LayersIcon from '@material-ui/icons/Layers';
|
||||
|
||||
Reference in New Issue
Block a user