You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 886e294
Browse filesBrowse the repository at this point in the historyBrowse files
`output directory to place scraped HTML files and redirects. By default, this temp directory is named 'tmpArchivalDir_<VERSION_TO_DEPRECATE>'`,
33
34
)
34
35
.option('-l, --local-dev','Do not rewrite asset paths to enable testing scraped content locally')
35
-
.option('-d, --dry-run','only scrape the first 10 pages for testing purposes')
36
+
.option(
37
+
'-d, --dry-run',
38
+
`only scrape the first ${DRY_RUN_PAGES_PER_LANGUAGE} pages in each language for testing purposes`,
39
+
)
36
40
.option(
37
41
'-p, --page <PATH>',
38
42
'Note: this option is only used to re-scrape a page after the version was deprecated. Redirects will not be re-created because most of the deprecated content is already removed. This option scrapes a specific page in all languages. Pass the relative path to the page without a version or language prefix. ex: /admin/release-notes',
`\nThis is a dry run! Creating HTML for redirects and scraping the first 10 pages only:\n${urls.join('\n')}\n`,
83
+
`\nThis is a dry run! Creating HTML for redirects and scraping the first ${DRY_RUN_PAGES_PER_LANGUAGE} pages in each language only:\n${urls.join('\n')}\n`,
82
84
)
83
85
}else{
84
86
console.log(`Found ${urls.length} pages for version ${version}`)
0 commit comments