Files
backstage/plugins/search-backend-module-techdocs
Philipp Hugenroth 5ae202c23c Remove options for Explore & TechDocs module
- Quick fix for permission-backend

Signed-off-by: Philipp Hugenroth <philipph@spotify.com>
2023-08-14 14:22:18 +02:00
..
2023-08-08 14:07:10 +00:00
2023-08-08 14:07:10 +00:00
2023-03-21 10:19:28 +01:00

search-backend-module-techdocs

DISCLAIMER: The new backend system is in alpha, and so are the search backend module support for the new backend system. We don't recommend you to migrate your backend installations to the new system yet. But if you want to experiment, you can find getting started guides below.

This package exports techdocs backend modules responsible for extending search.

Example

Use default schedule

// packages/backend-next/src/index.ts
import { createBackend } from '@backstage/backend-defaults';
import { searchPlugin } from '@backstage/plugin-search-backend/alpha';
import { searchModuleTechDocsCollator } from '@backstage/plugin-search-backend-module-techdocs/alpha';

const backend = createBackend();
backend.add(searchPlugin());
backend.add(searchModuleTechDocsCollator());
backend.start();

Use custom schedule

// packages/backend-next/src/index.ts
import { createBackend } from '@backstage/backend-defaults';
import { searchPlugin } from '@backstage/plugin-search-backend/alpha';
import { searchModuleTechDocsCollator } from '@backstage/plugin-search-backend-module-techdocs/alpha';

const schedule = {
  frequency: { minutes: 10 },
  timeout: { minutes: 15 },
  initialDelay: { seconds: 3 },
};

const backend = createBackend();
backend.add(searchPlugin());
backend.add(searchModuleTechDocsCollator({ schedule }));
backend.start();