Documenter build (#191)

* Add documenter to travis
pull/202/head
Matti Pastell 2019-03-04 15:10:03 +02:00 committed by GitHub
parent efec59cdbf
commit 6510ea0556
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 23 additions and 1 deletions

View File

@ -14,3 +14,13 @@ script:
- xvfb-run julia -e 'using Pkg; Pkg.test("Weave", coverage=true)'
after_success:
- julia -e 'using Pkg; cd(Pkg.dir("Weave")); Pkg.add("Coverage"); using Coverage; Coveralls.submit(Coveralls.process_folder())'
jobs:
include:
- stage: "Documentation"
julia: 1.0
os: linux
script:
- julia --project=doc/ -e 'using Pkg; Pkg.develop(PackageSpec(path=pwd()));
Pkg.instantiate()'
- julia --project=doc/ doc/make.jl
after_success: skip

7
doc/Project.toml Normal file
View File

@ -0,0 +1,7 @@
[deps]
DSP = "717857b8-e6f2-59f4-9121-6e50c889abd2"
Documenter = "e30172f5-a6a5-5a46-863b-614d45cd2de4"
Plots = "91a5bcdd-55d7-5caf-9e0b-520d859cae80"
[compat]
Documenter = "~0.20"

View File

@ -1,8 +1,13 @@
using Documenter, Weave
cd("doc")
makedocs( modules = Weave, sitename="Weave.jl",
pages = ["index.md", "getting_started.md", "usage.md",
"publish.md", "chunk_options.md", "notebooks.md",
"function_index.md"]
)
include("make_examples.jl")
deploydocs(
repo = "github.com/mpastell/Weave.jl.git",
target = "build"
)