Files
backstage/contrib/search/confluence
Paul Schultz 2e26579e06 chore: update react imports
Signed-off-by: Paul Schultz <pschultz@pobox.com>
2025-04-08 07:35:24 -05:00
..
2022-03-01 12:15:18 -05:00

Confluence

These files help you add Confluence as a source to the Backstage Search plugin. To do so, add both files in this directory under the packages/backend/src/plugins/search/ pathway in your Backstage app. Then, add the following code to your packages/app/src/components/search/SearchPage.tsx:

import { ConfluenceResultListItem } from './ConfluenceResultListItem';
case 'confluence':
  return (
    <ConfluenceResultListItem
      key={document.location}
      result={document}
    />
  );

and the following to packages/backend/src/plugins/search.ts:

import { ConfluenceCollator } from './search/ConfluenceCollator';
indexBuilder.addCollator({
  defaultRefreshIntervalSeconds: 600,
  collator: new ConfluenceCollator(),
});