-
Notifications
You must be signed in to change notification settings - Fork 5.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
create-app: Update techdocs-backend, add changesets
- Loading branch information
1 parent
2ac77ae
commit a8573e5
Showing
3 changed files
with
60 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
--- | ||
'@backstage/create-app': patch | ||
--- | ||
|
||
techdocs-backend: Simplified file, removing individual preparers and generators. | ||
techdocs-backend: UrlReader is now available to use in preparers. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
--- | ||
'@backstage/techdocs-common': minor | ||
'@backstage/plugin-techdocs-backend': minor | ||
--- | ||
|
||
In your Backstage app, `packages/backend/plugins/techdocs.ts` file has now been simplified, | ||
to remove registering individual preparers and generators. | ||
|
||
Please update the file when upgrading the version of `@backstage/plugin-techdocs-backend` package. | ||
|
||
```typescript | ||
const preparers = await Preparers.fromConfig(config, { | ||
logger, | ||
reader, | ||
}); | ||
|
||
const generators = await Generators.fromConfig(config, { | ||
logger, | ||
}); | ||
|
||
const publisher = await Publisher.fromConfig(config, { | ||
logger, | ||
discovery, | ||
}); | ||
``` | ||
|
||
You should be able to remove unnecessary imports, and just do | ||
|
||
```typescript | ||
import { | ||
createRouter, | ||
Preparers, | ||
Generators, | ||
Publisher, | ||
} from '@backstage/plugin-techdocs-backend'; | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters