From d0dba0a448f4ad23928e09b018f1fa7e41787e7a Mon Sep 17 00:00:00 2001 From: Johan Haals Date: Mon, 11 Oct 2021 11:26:49 +0200 Subject: [PATCH] place example in indented code block Signed-off-by: Johan Haals --- docs/getting-started/contributors.md | 34 ++++++++++++++++------------ 1 file changed, 19 insertions(+), 15 deletions(-) diff --git a/docs/getting-started/contributors.md b/docs/getting-started/contributors.md index 7b612ccd0d..ed56d63cab 100644 --- a/docs/getting-started/contributors.md +++ b/docs/getting-started/contributors.md @@ -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, + }); + ```