Merge pull request #5032 from backstage/timbonicus/create-app-updates

Update create-app template for better parity with example app
This commit is contained in:
Tim
2021-03-25 06:23:36 -06:00
committed by GitHub
17 changed files with 301 additions and 91 deletions
@@ -75,7 +75,7 @@ const app = createApp({
You may also want to add a link to the catalog index page to your sidebar:
```tsx
// packages/app/src/sidebar.tsx
// packages/app/src/components/Root.tsx
import HomeIcon from '@material-ui/icons/Home';
// Somewhere within the <Sidebar>
@@ -68,8 +68,8 @@ proxy:
In a standard Backstage app created with
[@backstage/create-app](./create-an-app.md), the sidebar is managed inside
`packages/app/src/sidebar.tsx`. The file exports the entire `Sidebar` element of
your app, which you can extend with additional entries by adding new
`packages/app/src/components/Root.tsx`. The file exports the entire `Sidebar`
element of your app, which you can extend with additional entries by adding new
`SidebarItem` elements.
For example, if you install the `api-docs` plugin, a matching `SidebarItem`
+1 -1
View File
@@ -49,7 +49,7 @@ title: Adding Custom Plugin to Existing Monorepo App
Let's add a shortcut.
1. Open and modify `root: packages > app > src > sidebar.tsx` with the
1. Open and modify `root: packages > app > src > components > Root.tsx` with the
following:
```tsx