place example in indented code block

Signed-off-by: Johan Haals <johan.haals@gmail.com>
This commit is contained in:
Johan Haals
2021-10-11 11:26:49 +02:00
parent 4130394b79
commit d0dba0a448
+19 -15
View File
@@ -207,20 +207,24 @@ getEntity is now a function that returns a Promise.
#### Good
**BREAKING** The catalog createRouter now requires that a `FluxCapacitor` is
passed to the router.
---
'@backstage/catalog': patch
---
These changes are **required** to `packages/backend/src/plugins/catalog.ts`
**BREAKING** The catalog createRouter now requires that a `FluxCapacitor` is
passed to the router.
```diff
+ import { FluxCapacitor } from '@backstage/time';
+ const fluxCapacitor = new FluxCapacitor();
return await createRouter({
entitiesCatalog,
locationAnalyzer,
locationService,
+ fluxCapacitor,
logger: env.logger,
config: env.config,
});
```
These changes are **required** to `packages/backend/src/plugins/catalog.ts`
```diff
+ import { FluxCapacitor } from '@backstage/time';
+ const fluxCapacitor = new FluxCapacitor();
return await createRouter({
entitiesCatalog,
locationAnalyzer,
locationService,
+ fluxCapacitor,
logger: env.logger,
config: env.config,
});
```