Merge pull request #9952 from backstage/iameap/mv-techdocs-search-common

This commit is contained in:
Eric Peterson
2022-03-04 20:06:39 +01:00
committed by GitHub
153 changed files with 1978 additions and 495 deletions
@@ -29,7 +29,7 @@ import {
PreparerBuilder,
PublisherBase,
UrlPreparer,
} from '@backstage/techdocs-common';
} from '@backstage/plugin-techdocs-node';
import fs from 'fs-extra';
import os from 'os';
import path from 'path';
+3 -3
View File
@@ -39,8 +39,8 @@ export type {
} from './search';
/**
* @deprecated Use directly from @backstage/techdocs-common
* @deprecated Use directly from @backstage/plugin-techdocs-node
*/
export type { TechDocsDocument } from '@backstage/techdocs-common';
export type { TechDocsDocument } from '@backstage/plugin-techdocs-node';
export * from '@backstage/techdocs-common';
export * from '@backstage/plugin-techdocs-node';
@@ -35,7 +35,7 @@ import {
CatalogClient,
CATALOG_FILTER_EXISTS,
} from '@backstage/catalog-client';
import { TechDocsDocument } from '@backstage/techdocs-common';
import { TechDocsDocument } from '@backstage/plugin-techdocs-node';
interface MkSearchIndexDoc {
title: string;
@@ -31,8 +31,8 @@ import {
} from '@backstage/catalog-model';
import { Config } from '@backstage/config';
import { catalogEntityReadPermission } from '@backstage/plugin-catalog-common';
import { DocumentCollatorFactory } from '@backstage/search-common';
import { TechDocsDocument } from '@backstage/techdocs-common';
import { DocumentCollatorFactory } from '@backstage/plugin-search-common';
import { TechDocsDocument } from '@backstage/plugin-techdocs-node';
import unescape from 'lodash/unescape';
import fetch from 'node-fetch';
import pLimit from 'p-limit';
@@ -24,7 +24,7 @@ import {
GeneratorBuilder,
PreparerBuilder,
PublisherBase,
} from '@backstage/techdocs-common';
} from '@backstage/plugin-techdocs-node';
import { TechDocsCache } from '../cache';
import { DocsBuilder, shouldCheckForUpdate } from '../DocsBuilder';
import { DocsSynchronizer, DocsSynchronizerSyncOpts } from './DocsSynchronizer';
@@ -23,7 +23,7 @@ import {
GeneratorBuilder,
PreparerBuilder,
PublisherBase,
} from '@backstage/techdocs-common';
} from '@backstage/plugin-techdocs-node';
import fetch from 'node-fetch';
import { PassThrough } from 'stream';
import * as winston from 'winston';
@@ -26,7 +26,7 @@ import {
GeneratorBuilder,
PreparerBuilder,
PublisherBase,
} from '@backstage/techdocs-common';
} from '@backstage/plugin-techdocs-node';
import express, { Response } from 'express';
import request from 'supertest';
import { DocsSynchronizer, DocsSynchronizerSyncOpts } from './DocsSynchronizer';
@@ -26,7 +26,7 @@ import {
getLocationForEntity,
PreparerBuilder,
PublisherBase,
} from '@backstage/techdocs-common';
} from '@backstage/plugin-techdocs-node';
import express, { Response } from 'express';
import Router from 'express-promise-router';
import { Knex } from 'knex';
@@ -28,7 +28,7 @@ import {
Preparers,
Publisher,
TechdocsGenerator,
} from '@backstage/techdocs-common';
} from '@backstage/plugin-techdocs-node';
import Docker from 'dockerode';
import { Server } from 'http';
import { Logger } from 'winston';