Skip to content

Commit

Permalink
Docs/newdocumenter (#33)
Browse files Browse the repository at this point in the history
Update for new Documenter
  • Loading branch information
Affie authored Nov 20, 2018
1 parent c29e8ef commit 125b4e9
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 8 deletions.
15 changes: 12 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,15 @@ after_success:
- julia -e 'using Pkg; Pkg.add("Coverage"); using Coverage; Codecov.submit(process_folder())'
#- julia -e 'import Pkg; cd(Pkg.dir("AprilTags")); Pkg.add("Coverage"); using Coverage; Codecov.submit(Codecov.process_folder())'

#run documenter
- julia -e 'ps=Pkg.PackageSpec(name="Documenter", version="0.19"); Pkg.add(ps); Pkg.pin(ps)'
- julia -e 'cd(Pkg.dir("AprilTags")); include(joinpath("docs", "make.jl"))'
jobs:
include:
- stage: "Documentation"
julia: 1.0
os: linux
script:
- julia -e 'import Pkg; Pkg.add("Documenter")'
- julia --project=docs/ -e 'using Pkg; Pkg.instantiate();
Pkg.develop(PackageSpec(path=pwd()))'
- julia --project=docs/ docs/make.jl
after_success: skip

8 changes: 3 additions & 5 deletions docs/make.jl
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
using Pkg
Pkg.build("AprilTags")
using Documenter, AprilTags

makedocs(
Expand All @@ -14,9 +16,5 @@ makedocs(

deploydocs(
repo = "github.com/JuliaRobotics/AprilTags.jl.git",
target = "build",
deps = nothing,
make = nothing,
julia = "0.7",
osname = "linux"
target = "build"
)

0 comments on commit 125b4e9

Please sign in to comment.