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