forked from readthedocs/sphinx_rtd_theme
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathGruntfile.js
48 lines (38 loc) · 1.05 KB
/
Gruntfile.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
module.exports = function(grunt) {
// load all grunt tasks
require('matchdep').filterDev('grunt-*').forEach(grunt.loadNpmTasks);
grunt.initConfig({
compass: {
dev: {
options: {
config: 'sphinx_rtd_theme/sass/config.rb',
basePath: 'sphinx_rtd_theme/sass',
outputStyle: 'compressed',
force: true
}
}
},
// I use this to build the sphinx_rtd_theme available at https://github.com/snide/sphinx_rtd_theme
copy: {
sphinx_rtd_theme : {
files: [
{
expand: true,
cwd: 'docs/source/_themes/wyrm_theme',
src: ['**', '!**/theme.sass', '!**/*.css', '!**/config.rb'],
dest: '../sphinx_rtd_theme/sphinx_rtd_theme'
}
]
}
},
exec: {
update: {
cmd: 'bower update'
}
}
});
grunt.loadNpmTasks('grunt-contrib-copy');
grunt.loadNpmTasks('grunt-exec');
grunt.loadNpmTasks('grunt-contrib-compass');
grunt.registerTask('default', ['exec', 'compass']);
}