Merge pull request #16308 from adamdmharvey/adamdmharvey/fix-install-instructions-explore
chore: Improve install instructions for Explore plugin
This commit is contained in:
@@ -76,10 +76,9 @@ To index explore tools you will need to register the search collator in the
|
||||
```diff
|
||||
+import { ToolDocumentCollatorFactory } from '@backstage/plugin-explore-backend';
|
||||
|
||||
async function createSearchEngine(
|
||||
env: PluginEnvironment,
|
||||
): Promise<SearchEngine> {
|
||||
...
|
||||
...
|
||||
|
||||
+ // collator gathers entities from explore.
|
||||
+ indexBuilder.addCollator({
|
||||
+ schedule,
|
||||
+ factory: ToolDocumentCollatorFactory.fromConfig(env.config, {
|
||||
@@ -87,8 +86,8 @@ async function createSearchEngine(
|
||||
+ logger: env.logger,
|
||||
+ }),
|
||||
+ });
|
||||
...
|
||||
}
|
||||
|
||||
...
|
||||
```
|
||||
|
||||
### Wire up the Frontend
|
||||
|
||||
@@ -30,7 +30,7 @@ any path for the route, but we recommend the following:
|
||||
|
||||
```diff
|
||||
// packages/app/src/App.tsx
|
||||
+ import { ExplorePage, explorePlugin } from '@backstage/plugin-explore';
|
||||
+ import { ExplorePage } from '@backstage/plugin-explore';
|
||||
|
||||
...
|
||||
|
||||
|
||||
Reference in New Issue
Block a user