Skip to content

Commit 4ac6993

Browse files
Gaurav0sivakumar-kailasam
authored andcommitted
use a different command line flag
1 parent 8807ebc commit 4ac6993

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

generate-local.js

+1
Original file line numberDiff line numberDiff line change
@@ -88,5 +88,6 @@ const runCmd = async (cmd, path) => {
8888
'--version',
8989
version,
9090
'--ignorePreviouslyIndexedDoc',
91+
'--no-sync'
9192
]).stdout.pipe(process.stdout)
9293
})()

index.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ let specificDocsVersion = argv.version ? argv.version : ''
1212
let ignorePreviouslyIndexedDoc =
1313
projects.length !== 0 && specificDocsVersion !== '' && argv.ignorePreviouslyIndexedDoc
1414
let runClean = !!argv.clean
15+
let noSync = !!argv.noSync
1516

1617
const { apiDocsProcessor } = require('./main.js')
17-
apiDocsProcessor(projects, specificDocsVersion, ignorePreviouslyIndexedDoc, runClean)
18+
apiDocsProcessor(projects, specificDocsVersion, ignorePreviouslyIndexedDoc, runClean, noSync)

main.js

+3-2
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@ export async function apiDocsProcessor(
1818
projects,
1919
specificDocsVersion,
2020
ignorePreviouslyIndexedDoc,
21-
runClean
21+
runClean,
22+
noSync
2223
) {
2324
RSVP.on('error', reason => {
2425
console.log(reason)
@@ -28,7 +29,7 @@ export async function apiDocsProcessor(
2829
let docsVersionMsg = specificDocsVersion !== '' ? `. For version ${specificDocsVersion}` : ''
2930
console.log(`Downloading docs for ${projects.join(' & ')}${docsVersionMsg}`)
3031

31-
if (!ignorePreviouslyIndexedDoc) {
32+
if (!noSync) {
3233
await downloadExistingDocsToLocal()
3334
let filesToProcess = await fetchYuiDocs(projects, specificDocsVersion, runClean)
3435
await fs.mkdirp('tmp/s3-original-docs')

0 commit comments

Comments
 (0)