Skip to content

Commit

Permalink
Modernize the Documenter setup
Browse files Browse the repository at this point in the history
  • Loading branch information
ararslan committed Jan 24, 2019
1 parent aeac3ec commit c519a8e
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 5 deletions.
10 changes: 9 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,12 @@ notifications:
# - julia -e 'Pkg.clone(pwd()); Pkg.build("Survival"); Pkg.test("Survival"; coverage=true)';
after_success:
- julia -e 'using Pkg; Pkg.add("Coverage"); using Coverage; Coveralls.submit(Coveralls.process_folder())';
- julia -e 'using Pkg; Pkg.add("Documenter"); include(joinpath("docs", "make.jl"))';
jobs:
include:
- stage: "Documentation"
julia: 1.0
os: linux
script:
- julia --project=docs/ -e 'using Pkg; Pkg.develop(PackageSpec(path=pwd())); Pkg.instantiate()'
- julia --project=docs/ docs/make.jl
after_success: skip
6 changes: 6 additions & 0 deletions docs/Project.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
[deps]
Documenter = "e30172f5-a6a5-5a46-863b-614d45cd2de4"
Survival = "8a913413-2070-5976-9d4c-2b364fdc2f7f"

[compat]
Documenter = "~0.20"
4 changes: 0 additions & 4 deletions docs/make.jl
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@ using Survival, Documenter

makedocs(
modules = [Survival],
clean = false,
format = :html,
sitename = "Survival.jl",
authors = "Alex Arslan",
pages = [
Expand All @@ -18,6 +16,4 @@ makedocs(
deploydocs(
repo = "github.com/ararslan/Survival.jl.git",
target = "build",
deps = nothing,
make = nothing,
)

0 comments on commit c519a8e

Please sign in to comment.