0492fdf964
Signed-off-by: Emma Indal <emma.indahl@gmail.com>
1.0 KiB
1.0 KiB
@backstage/create-app
| @backstage/create-app |
|---|
| patch |
Update the template to reflect the renaming of DocsResultListItem to TechDocsSearchResultListItem from @backstage/plugin-techdocs.
To apply this change to an existing app, make the following change to packages/app/src/components/search/SearchPage.tsx:
-import { DocsResultListItem } from '@backstage/plugin-techdocs';
+import { TechDocsSearchResultListItem } from '@backstage/plugin-techdocs';
case 'techdocs':
return (
- <DocsResultListItem
+ <TechDocsSearchResultListItem
key={document.location}
result={document}
/>
The TechDocsIndexPage now uses DefaultTechDocsHome as fall back if no children is provided as LegacyTechDocsHome is marked as deprecated. If you do not use a custom techdocs homepage, you can therefore update your app to the following:
- <Route path="/docs" element={<TechDocsIndexPage />}>
- <DefaultTechDocsHome />
- </Route>
+ <Route path="/docs" element={<TechDocsIndexPage />} />