make.jl (1502B)
1 #!/usr/bin/env julia 2 # -------------------------------------------------------------------------------------------------- 3 4 5 # -------------------------------------------------------------------------------------------------- 6 # from within doc 7 # import Pkg; Pkg.develop(path="..") 8 using TigerFetch 9 # -------------------------------------------------------------------------------------------------- 10 11 12 # -------------------------------------------------------------------------------------------------- 13 # Pkg.add(["Documenter", "DocumenterVitepress"]) 14 using Documenter 15 using DocumenterVitepress 16 17 # -- 18 makedocs( 19 # format = Documenter.HTML(), 20 format = MarkdownVitepress( 21 repo = "https://github.com/louloulibs/TigerFetch.jl", 22 ), 23 repo = Remotes.GitHub("louloulibs", "TigerFetch.jl"), 24 sitename = "TigerFetch.jl", 25 modules = [TigerFetch], 26 authors = "Erik Loualiche", 27 pages=[ 28 "Home" => "index.md", 29 "Manual" => [ 30 "man/cli.md", 31 "man/julia.md" 32 ], 33 "Demos" => [ 34 "demo/simple_map.md", 35 ], 36 "Library" => [ 37 "lib/public.md", 38 "lib/internals.md" 39 ] 40 ] 41 ) 42 43 # -- 44 deploydocs(; 45 repo = "github.com/louloulibs/TigerFetch.jl", 46 target = "build", # this is where Vitepress stores its output 47 devbranch = "main", 48 branch = "gh-pages", 49 push_preview = true, 50 ) 51 # --------------------------------------------------------------------------------------------------