diff --git a/src/commands/src/shared/next-gen-html.ts b/src/commands/src/shared/next-gen-html.ts
index aaa74a9aa..7d3cb140c 100644
--- a/src/commands/src/shared/next-gen-html.ts
+++ b/src/commands/src/shared/next-gen-html.ts
@@ -2,7 +2,7 @@ import path from 'path';
import { IJobRepoLogger } from '../../../services/logger';
import { executeCliCommand } from '../helpers';
-export async function nextGenHtml(repoName: string) {
+export async function nextGenHtml() {
// let cwd = path.join(`${process.cwd()}`, `../../../snooty`);
// if (repoName === 'docs-monorepo') {
// cwd = path.join(`${process.cwd()}`, `../../snooty`);
diff --git a/src/entrypoints/localApp.ts b/src/entrypoints/localApp.ts
index f6de2c6f5..223f2b5d8 100644
--- a/src/entrypoints/localApp.ts
+++ b/src/entrypoints/localApp.ts
@@ -96,7 +96,7 @@ async function localApp() {
console.log('Begin next-gen-html...');
- const nextGenHtmlRes = await nextGenHtml(repoName);
+ const nextGenHtmlRes = await nextGenHtml();
console.log(nextGenHtmlRes.outputText);
console.log('next-gen-html complete');
diff --git a/src/job/jobHandler.ts b/src/job/jobHandler.ts
index 57de02c2c..1a69edfb4 100644
--- a/src/job/jobHandler.ts
+++ b/src/job/jobHandler.ts
@@ -14,7 +14,13 @@ import { IJobValidator } from './jobValidator';
import { RepoEntitlementsRepository } from '../repositories/repoEntitlementsRepository';
import { DocsetsRepository } from '../repositories/docsetsRepository';
import { MONOREPO_NAME } from '../monorepo/utils/monorepo-constants';
-import { nextGenHtml, nextGenParse, oasPageBuild, persistenceModule } from '../commands';
+import {
+ nextGenHtml,
+ nextGenParse,
+ oasPageBuild,
+ persistenceModule,
+ prepareBuildAndGetDependencies,
+} from '../commands';
import { getRepoDir } from '../commands/src/helpers';
require('fs');
@@ -330,6 +336,7 @@ export abstract class JobHandler {
const preppedLogger = (message: string) => {
thisLogger.save(thisJob._id, message);
};
+ const baseUrl = 'https://mongodbcom-cdn.website.staging.corp.mongodb.com'; // ?????
for (const command of makeCommands) {
// works for any make command with the following signature make
@@ -338,6 +345,12 @@ export abstract class JobHandler {
if (commandMap[key]) {
this._logger.save(this.currJob._id, `running from commandMap: ${key}`);
await commandMap[key]({ job: this.currJob, preppedLogger });
+ } else if (key === 'next-gen-html') {
+ this._logger.save(this.currJob._id, `running nextGenHtml!`);
+ await nextGenHtml();
+ } else if (key === 'get-build-dependencies') {
+ this._logger.save(this.currJob._id, `running getBuildStuff!!`);
+ await prepareBuildAndGetDependencies(this.currJob.payload.repoName, thisJob.payload.project, baseUrl);
} else {
if (stages[key]) {
const makeCommandsWithBenchmarksResponse = await this.callWithBenchmark(command, stages[key]);