Skip to content

Commit

Permalink
Merge pull request #1573 from RoadieHQ/punkle-patch-4
Browse files Browse the repository at this point in the history
Add details about how to configure the gravatar plugin
  • Loading branch information
punkle authored Aug 26, 2024
2 parents 15fac42 + ac001ea commit 8be0ae9
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions plugins/backend/catalog-backend-module-gravatar/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,28 @@ The `@roadiehq/catalog-backend-module-gravatar` package provides a custom Backst
- **Automatic Gravatar URL Generation**: The processor generates a Gravatar URL for each user based on their email address using the MD5 hash.
- **Profile Picture Population**: The generated Gravatar URL is added to the `spec.profile.picture` field of `User` entities.
- **Seamless Integration**: This processor integrates easily with the Backstage catalog processing pipeline.

## How to use

You can edit the `src/plugins/catalog.ts` of the backstage backend and add the following:

```
import { GravatarProcessor } from '@roadiehq/catalog-backend-module-gravatar';
export default async function createPlugin(
env: PluginEnvironment,
): Promise<Router> {
const builder = await CatalogBuilder.create(env);
// ...
builder.addProcessor(new GravatarProcessor());
const { processingEngine, router } = await builder.build();
await processingEngine.start();
// ...
return router;
}
```

0 comments on commit 8be0ae9

Please sign in to comment.