Files
backstage/.changeset/fast-paws-arrive.md
T
Emma Indal 0492fdf964 update create-app changeset
Signed-off-by: Emma Indal <emma.indahl@gmail.com>
2022-02-25 14:33:01 +01:00

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 />} />