mirror of
https://github.com/readthedocs/sphinx_rtd_theme.git
synced 2025-02-25 18:55:21 -06:00
Undo gruntfile changes
This commit is contained in:
parent
ad31326e3a
commit
1ef6b5b3b4
36
Gruntfile.js
36
Gruntfile.js
@ -140,10 +140,7 @@ module.exports = function(grunt) {
|
||||
cmd: 'bower update'
|
||||
},
|
||||
build_sphinx: {
|
||||
cmd: function (locale) {
|
||||
locale = (typeof locale !== 'undefined') ? locale : 'en';
|
||||
return 'sphinx-build -D language=' + locale + ' docs/ docs/build/html'
|
||||
}
|
||||
cmd: 'sphinx-build docs/ docs/build'
|
||||
}
|
||||
},
|
||||
clean: {
|
||||
@ -187,33 +184,6 @@ module.exports = function(grunt) {
|
||||
grunt.loadNpmTasks('grunt-open');
|
||||
grunt.loadNpmTasks('grunt-browserify');
|
||||
|
||||
grunt.registerTask('default', [
|
||||
'exec:bower_update',
|
||||
'clean',
|
||||
'copy:fonts',
|
||||
'sass:dev',
|
||||
'browserify:dev',
|
||||
'usebanner',
|
||||
'exec:build_sphinx',
|
||||
'connect',
|
||||
'open',
|
||||
'watch'
|
||||
]);
|
||||
grunt.registerTask('build', [
|
||||
'exec:bower_update',
|
||||
'clean',
|
||||
'copy:fonts',
|
||||
'sass:build',
|
||||
'browserify:build',
|
||||
'uglify',
|
||||
'usebanner',
|
||||
'exec:build_sphinx'
|
||||
]);
|
||||
grunt.registerTask('i18n', [
|
||||
'exec:babel_extract',
|
||||
'exec:tx_push',
|
||||
'exec:tx_pull',
|
||||
'exec:babel_compile',
|
||||
'exec:build_sphinx:es'
|
||||
]);
|
||||
grunt.registerTask('default', ['exec:bower_update','clean','copy:fonts','sass:dev','browserify:dev','usebanner','exec:build_sphinx','connect','open','watch']);
|
||||
grunt.registerTask('build', ['exec:bower_update','clean','copy:fonts','sass:build','browserify:build','uglify','usebanner','exec:build_sphinx']);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user