Synchronize directory structure

This commit is contained in:
Matt Colyer
2013-08-20 08:53:06 -07:00
parent c38eccf39d
commit 72cedf9027
3 changed files with 5 additions and 15 deletions

3
.gitignore vendored
View File

@@ -7,5 +7,4 @@ node_modules
npm-debug.log
/tags
/atom-shell/
docs/api
docs/guides
docs/output

View File

@@ -125,7 +125,7 @@ module.exports = (grunt) ->
expand: true,
cwd: 'docs'
src: '**/*.md',
dest: 'docs/guides/',
dest: 'docs/output/',
ext: '.html'
]
markdownOptions:

View File

@@ -8,7 +8,7 @@ module.exports = (grunt) ->
grunt.registerTask 'build-docs', 'Builds the API docs in src/app', ->
done = @async()
args = [commonArgs..., '-o', 'docs/api', 'src/']
args = [commonArgs..., '-o', 'docs/output/api', 'src/']
grunt.util.spawn({cmd, args, opts}, done)
grunt.registerTask 'lint-docs', 'Generate stats about the doc coverage', ->
@@ -33,18 +33,9 @@ module.exports = (grunt) ->
else
callback(null, String(result).trim())
copyGuides = (tag, callback) ->
cmd = 'cp'
args = ['-r', 'docs/guides', "../atom-docs/public/#{tag}"]
grunt.util.spawn {cmd, args}, (error, result) ->
if error?
callback(error)
else
callback(null, tag)
copyApiDocs = (tag, callback) ->
cmd = 'cp'
args = ['-r', 'docs/api', "../atom-docs/public/#{tag}/api"]
args = ['-r', 'docs/output/', "../atom-docs/public/#{tag}/"]
grunt.util.spawn {cmd, args}, (error, result) ->
if error?
callback(error)
@@ -82,4 +73,4 @@ module.exports = (grunt) ->
args = [docsRepoArgs..., 'push', 'heroku', 'master']
grunt.util.spawn({cmd, args, opts}, callback)
grunt.util.async.waterfall [fetchTag, copyGuides, copyApiDocs, stageDocs, fetchSha, commitChanges, pushOrigin, pushHeroku], done
grunt.util.async.waterfall [fetchTag, copyApiDocs, stageDocs, fetchSha, commitChanges, pushOrigin, pushHeroku], done