mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Added scratchy tasks and config.js docs
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
// Lint and build CSS
|
||||
module.exports = function(grunt) {
|
||||
grunt.registerTask('default', ['jshint:source', 'less:src']);
|
||||
grunt.registerTask('default', ['jshint:source', 'less:src', 'docs']);
|
||||
};
|
||||
4
tasks/docs_task.js
Normal file
4
tasks/docs_task.js
Normal file
@@ -0,0 +1,4 @@
|
||||
// Lint and build CSS
|
||||
module.exports = function(grunt) {
|
||||
grunt.registerTask('docs', ['clean:docs', 'scratchy:docs']);
|
||||
};
|
||||
@@ -2,5 +2,6 @@ module.exports = function(config) {
|
||||
return {
|
||||
on_start: ['<%= destDir %>', '<%= tempDir %>'],
|
||||
temp: ['<%= tempDir %>'],
|
||||
docs: ['<%= docsDir %>']
|
||||
};
|
||||
};
|
||||
12
tasks/options/scratchy.js
Normal file
12
tasks/options/scratchy.js
Normal file
@@ -0,0 +1,12 @@
|
||||
module.exports = function(config) {
|
||||
return {
|
||||
docs: {
|
||||
src: ['src/app/**/*.js','src/config.js'],
|
||||
dest: config.docsDir,
|
||||
options: {
|
||||
unslash: true,
|
||||
extension: '.asciidoc'
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user