File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -11,8 +11,7 @@ npm --prefix ./scripts install
1111# ###### Download Phase
1212
1313if [[ $SKIP_DOWNLOADS != " true" ]]; then
14- ./scripts/download-releases.sh --major 1
15- ./scripts/download-releases.sh --major 2
14+ # v1 and v2 docs contain stale source links and are no longer published.
1615 ./scripts/download-releases.sh --major 3
1716 ./scripts/download-releases.sh --major 4
1817 ./scripts/download-releases.sh --minor 5
Original file line number Diff line number Diff line change @@ -14,6 +14,7 @@ const prependFile = require('prepend-file')
1414
1515const sidebarsTemplate = require ( '../sidebars-template.json' )
1616const processDocusaurusV3Upgrade = require ( './process-docusaurus-v3-upgrade' )
17+ const MIN_DOCS_MAJOR = 3
1718const log = require ( 'pino' ) ( {
1819 level : process . env . LOG_LEVEL || 'debug' ,
1920 transport : {
@@ -41,6 +42,11 @@ async function processReleases(opts) {
4142 log . info ( 'Cleaned up versioned_sidebars folder' )
4243
4344 for ( const docTree of getDocFolders ( releasesFolder ) ) {
45+ if ( docTree . semver . major < MIN_DOCS_MAJOR ) {
46+ log . info ( `Skipping ${ docTree . releseTag } because v1 and v2 docs are no longer published` )
47+ continue
48+ }
49+
4450 log . info ( `Processing ${ docTree . releseTag } ` )
4551
4652 const requiresRootFolder = docTree . semver . major <= 2
You can’t perform that action at this time.
0 commit comments