[TechDocs] Remove all git preparers and use a commonGit preparer instead (#2856)
* Remove all git preparers and use a commonGit preparer instead * Added more tests * Updated default-app template
This commit is contained in:
committed by
GitHub
parent
321da5aff6
commit
b041aab8ad
@@ -21,9 +21,7 @@ import {
|
||||
Generators,
|
||||
LocalPublish,
|
||||
TechdocsGenerator,
|
||||
GithubPreparer,
|
||||
GitlabPreparer,
|
||||
AzurePreparer,
|
||||
CommonGitPreparer,
|
||||
} from '@backstage/plugin-techdocs-backend';
|
||||
import { PluginEnvironment } from '../types';
|
||||
import Docker from 'dockerode';
|
||||
@@ -38,14 +36,13 @@ export default async function createPlugin({
|
||||
generators.register('techdocs', techdocsGenerator);
|
||||
|
||||
const preparers = new Preparers();
|
||||
const githubPreparer = new GithubPreparer(logger);
|
||||
const gitlabPreparer = new GitlabPreparer(logger);
|
||||
const azurePreparer = new AzurePreparer(logger);
|
||||
const commonGitPreparer = new CommonGitPreparer(logger);
|
||||
|
||||
const directoryPreparer = new DirectoryPreparer(logger);
|
||||
preparers.register('dir', directoryPreparer);
|
||||
preparers.register('github', githubPreparer);
|
||||
preparers.register('gitlab', gitlabPreparer);
|
||||
preparers.register('azure/api', azurePreparer);
|
||||
preparers.register('github', commonGitPreparer);
|
||||
preparers.register('gitlab', commonGitPreparer);
|
||||
preparers.register('azure/api', commonGitPreparer);
|
||||
|
||||
const publisher = new LocalPublish(logger);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user