mirror of
https://github.com/atom/atom.git
synced 2026-04-28 03:01:47 -04:00
Synchronize directory structure
This commit is contained in:
3
.gitignore
vendored
3
.gitignore
vendored
@@ -7,5 +7,4 @@ node_modules
|
||||
npm-debug.log
|
||||
/tags
|
||||
/atom-shell/
|
||||
docs/api
|
||||
docs/guides
|
||||
docs/output
|
||||
|
||||
@@ -125,7 +125,7 @@ module.exports = (grunt) ->
|
||||
expand: true,
|
||||
cwd: 'docs'
|
||||
src: '**/*.md',
|
||||
dest: 'docs/guides/',
|
||||
dest: 'docs/output/',
|
||||
ext: '.html'
|
||||
]
|
||||
markdownOptions:
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user