techdocs: Use googleGcs for publisher type instead of google_gcs

This commit is contained in:
Himanshu Mishra
2020-12-09 18:58:12 +01:00
parent 9d08ef8f46
commit 24bcdd0829
11 changed files with 61 additions and 49 deletions
@@ -115,7 +115,7 @@ export async function createRouter({
} catch (err) {
throw new Error(
'Unable to get techdocs.publisher.type in your app config. Set it to either ' +
"'local', 'google_gcs' or other support storage providers. Read more here " +
"'local', 'googleGcs' or other support storage providers. Read more here " +
'https://backstage.io/docs/features/techdocs/architecture',
);
}
@@ -136,7 +136,7 @@ export async function createRouter({
if (!(await docsBuilder.docsUpToDate())) {
await docsBuilder.build();
}
} else if (publisherType === 'google_gcs') {
} else if (publisherType === 'googleGcs') {
// This block should be valid for all external storage implementations. So no need to duplicate in future,
// add the publisher type in the list here.
if (!(await publisher.hasDocsBeenGenerated(entity))) {