Skip to content
Snippets Groups Projects
Select Git revision
  • master
  • development
  • marco/aquacrop-regional-params
  • precompile-statements
  • precompile-tools
  • tmp-faster-loading
  • skylark
  • testsuite
  • code-review
  • v0.7.0
  • v0.6.1
  • v0.6.0
  • v0.5.5
  • v0.5.4
  • v0.5.3
  • v0.5.2
  • v0.2
  • v0.3.0
  • v0.4.1
  • v0.5
20 results

builddocs.jl

  • Code owners
    Assign users and groups as approvers for specific file changes. Learn more.
    builddocs.jl 3.21 KiB
    ### Persefone.jl - a model of agricultural landscapes and ecosystems in Europe.
    ###
    ### Build the HTML documentation for Persefone using Documenter.jl
    ### https://documenter.juliadocs.org/stable/
    ### 
    
    using Pkg
    
    Pkg.activate("..")
    
    push!(LOAD_PATH, "../src/")
    
    using Documenter, Persefone
    
    # build the online documentation
    makedocs(sitename="Persefone.jl",
             modules = [Persefone],
             repo = Remotes.GitLab("git.idiv.de", "persefone", "persefone-model"),
             format = Documenter.HTML(prettyurls = false),
             warnonly = true, #XXX not recommended
             #warnonly = [:cross_references],
             pages = ["index.md",
                      "User guide" => [
                          "using.md",
                          "gui.md",
                          "config.md"],
                      "Scientific documentation" => [
                          "management.md",
                          "crop-models.md",
                          "skylark.md",
                          "marbledwhite.md"],
                      "Developer guide" => [
                          "developing.md",
                          "architecture.md",
                          "adapting.md",
                          "gis.md",
                          "species-dsl.md",
                          "crop-calibration.md",
                          "CHANGELOG.md"],
                      "Software API" => [
                          "simulation.md",
                          "io.md",
                          "nature.md",
                          #"energy.md",
                          "species.md",
                          "crops.md",
                          "farm.md"]
                      ])
    
    # compile the handbook
    #FIXME if I uncomment this, only the PDF is built, not the HTML
    #XXX change to LaTeX output for manual editing?
    # or configure the title page https://github.com/JuliaDocs/Documenter.jl/blob/master/test/examples/src.cover_page/assets/titlepage.tex
    # makedocs(format = Documenter.LaTeX(),
    #          sitename="Persefone.jl",
    #          authors="Daniel Vedder, Marco C. Matthies, Guy Pe'er",
    #          modules = [Persefone],
    #          repo = Remotes.GitLab("git.idiv.de", "persefone", "persefone-model"),
    #          warnonly = true, #XXX not recommended
    #          #warnonly = [:cross_references],
    #          pages = ["index.md",
    #                   "User guide" => [
    #                       "using.md",
    #                       "gui.md",
    #                       "config.md"],
    #                   "Scientific documentation" => [
    #                       "management.md",
    #                       "crop-models.md",
    #                       "skylark.md",
    #                       "marbledwhite.md"],
    #                   "Developer guide" => [
    #                       "developing.md",
    #                       "architecture.md",
    #                       "adapting.md",
    #                       "gis.md",
    #                       "species-dsl.md",
    #                       #"crop-calibration.md", #too long
    #                       "CHANGELOG.md"],
    #                   "Software API" => [
    #                       "simulation.md",
    #                       "io.md",
    #                       "nature.md",
    #                       #"energy.md",
    #                       "species.md",
    #                       "crops.md",
    #                       "farm.md"]
    #                   ])