@backstage/plugin-search-backend-module-techdocs
TypeScript icon, indicating that this package has built-in type declarations

0.1.22 • Public • Published

search-backend-module-techdocs

This package exports a module that extends the search backend to also index techdocs.

Installation

Add the module package as a dependency:

# From your Backstage root directory
yarn --cwd packages/backend add @backstage/plugin-search-backend-module-techdocs

Add the collator to your backend instance, along with the search plugin itself:

// packages/backend/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();

You may also want to add configuration parameters to your app-config, for example for controlling the scheduled indexing interval. These parameters should be placed under the search.collators.techdocs key. See the config definition file for more details.

Readme

Keywords

none

Package Sidebar

Install

npm i @backstage/plugin-search-backend-module-techdocs

Homepage

backstage.io

Weekly Downloads

41,210

Version

0.1.22

License

Apache-2.0

Unpacked Size

80 kB

Total Files

11

Last publish

Collaborators

  • patriko
  • freben
  • marcuseide