@@ -432,27 +432,27 @@ module.exports = function(grunt) {
432432
433433 return ;
434434
435- const versionsMappingFile = 'dist/versions-mapping.json' ;
436-
437- exec ( 'git tag --sort -version:refname' , function ( error , stdout , stderr ) {
438- // Let's remove the oldest 56 versions.
439- const versions = stdout . split ( '\n' ) . slice ( 0 , - 56 ) ;
440- let jsContent = versions . map ( function ( version ) {
441- version = version . replace ( / ^ v / , '' ) ;
442- return {
443- version : version ,
444- url : `/ui-bootstrap4/versioned-docs/${ version } /index.html`
445- } ;
446- } ) ;
447- jsContent = _ . sortBy ( jsContent , 'version' ) . reverse ( ) ;
448- jsContent . unshift ( {
449- version : 'Current' ,
450- url : '/ui-bootstrap4/index.html'
451- } ) ;
452- grunt . file . write ( versionsMappingFile , JSON . stringify ( jsContent ) ) ;
453- grunt . log . writeln ( `File ${ versionsMappingFile . cyan } created.` ) ;
454- done ( ) ;
455- } ) ;
435+ // const versionsMappingFile = 'dist/versions-mapping.json';
436+
437+ // exec('git tag --sort -version:refname', function(error, stdout, stderr) {
438+ // // Let's remove the oldest 56 versions.
439+ // const versions = stdout.split('\n').slice(0, -56);
440+ // let jsContent = versions.map(function(version) {
441+ // version = version.replace(/^v/, '');
442+ // return {
443+ // version: version,
444+ // url: `/ui-bootstrap4/versioned-docs/${version}/index.html`
445+ // };
446+ // });
447+ // jsContent = _.sortBy(jsContent, 'version').reverse();
448+ // jsContent.unshift({
449+ // version: 'Current',
450+ // url: '/ui-bootstrap4/index.html'
451+ // });
452+ // grunt.file.write(versionsMappingFile, JSON.stringify(jsContent));
453+ // grunt.log.writeln(`File ${versionsMappingFile.cyan} created.`);
454+ // done();
455+ // });
456456
457457 } ) ;
458458
0 commit comments