@@ -264,46 +264,46 @@ Downloads.download(
264
264
)
265
265
@info " Final build done"
266
266
267
- if " deploy" in ARGS
268
- @warn " Deploying to GitHub" ARGS
269
- gitroot = normpath (joinpath (@__DIR__ , " .." ))
270
- run (` git pull` )
271
- outbranch = " master"
272
- has_outbranch = true
273
- if ! success (` git checkout $outbranch ` )
274
- has_outbranch = false
275
- if ! success (` git switch --orphan $outbranch ` )
276
- @error " Cannot create new orphaned branch $outbranch ."
277
- exit (1 )
278
- end
279
- end
280
- for file in readdir (gitroot; join = true )
281
- endswith (file, " .git" ) && continue
282
- rm (file; force = true , recursive = true )
283
- end
284
- for file in readdir (outpath)
285
- cp (joinpath (outpath, file), joinpath (gitroot, file))
286
- end
287
- run (` git add .` )
288
- if success (` git commit -m 'Aggregate documentation'` )
289
- @info " Pushing updated documentation."
290
- if has_outbranch
291
- run (` git push` )
292
- else
293
- run (` git push -u origin $outbranch ` )
294
- end
295
- run (` git checkout source` )
296
- else
297
- @info " No changes to aggregated documentation."
298
- end
299
- else
300
- @info " Skipping deployment, 'deploy' not passed. Generated files in docs/$(outpath) ." ARGS
301
- cp (outpath, joinpath (@__DIR__ , " build" ), force = true )
302
- end
267
+ # if "deploy" in ARGS
268
+ # @warn "Deploying to GitHub" ARGS
269
+ # gitroot = normpath(joinpath(@__DIR__, ".."))
270
+ # run(`git pull`)
271
+ # outbranch = "master"
272
+ # has_outbranch = true
273
+ # if !success(`git checkout $outbranch`)
274
+ # has_outbranch = false
275
+ # if !success(`git switch --orphan $outbranch`)
276
+ # @error "Cannot create new orphaned branch $outbranch."
277
+ # exit(1)
278
+ # end
279
+ # end
280
+ # for file in readdir(gitroot; join = true)
281
+ # endswith(file, ".git") && continue
282
+ # rm(file; force = true, recursive = true)
283
+ # end
284
+ # for file in readdir(outpath)
285
+ # cp(joinpath(outpath, file), joinpath(gitroot, file))
286
+ # end
287
+ # run(`git add .`)
288
+ # if success(`git commit -m 'Aggregate documentation'`)
289
+ # @info "Pushing updated documentation."
290
+ # if has_outbranch
291
+ # run(`git push`)
292
+ # else
293
+ # run(`git push -u origin $outbranch`)
294
+ # end
295
+ # run(`git checkout source`)
296
+ # else
297
+ # @info "No changes to aggregated documentation."
298
+ # end
299
+ # else
300
+ # @info "Skipping deployment, 'deploy' not passed. Generated files in docs/$(outpath)." ARGS
301
+ # cp(outpath, joinpath(@__DIR__, "build"), force = true)
302
+ # end
303
303
304
- # deploydocs(;
305
- # repo = "github.com/JuliaAstro/JuliaAstro.github.io",
306
- # push_preview = true,
307
- # branch = "master",
308
- # devbranch = "source "
309
- # )
304
+ deploydocs (;
305
+ repo = " github.com/JuliaAstro/JuliaAstro.github.io" ,
306
+ push_preview = true ,
307
+ branch = " master" ,
308
+ devbranch = " multidocumenter "
309
+ )
0 commit comments