Skip to content

Commit

Permalink
Get the docs building on recent Julia (#64)
Browse files Browse the repository at this point in the history
  • Loading branch information
timholy authored Apr 26, 2019
1 parent 8ce6026 commit 6c994e2
Show file tree
Hide file tree
Showing 7 changed files with 18 additions and 14 deletions.
9 changes: 5 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,11 @@ jobs:
julia: 1.0
os: linux
script:
# - julia -e 'import Pkg; Pkg.clone(pwd()); Pkg.build("ImageCore")'
- julia -e 'import Pkg; Pkg.add("Documenter")'
- julia -e 'using Pkg; Pkg.add("ImageDraw.jl")' # Needed for Docs
- julia -e 'using Pkg; import ImageFeatures; cd(joinpath(dirname(pathof(ImageFeatures)), "..")); ENV["DOCUMENTER_DEBUG"] = "true"; include(joinpath("docs", "make.jl"))'
- julia --project=docs/ -e 'using Pkg; Pkg.develop(PackageSpec(path=pwd()));
Pkg.instantiate()'
- julia --project=docs/ docs/make.jl
after_success: skip

after_success:
# push coverage results to Codecov
- julia -e 'import Pkg; Pkg.add("Coverage"); using Coverage; Codecov.submit(Codecov.process_folder())'
7 changes: 7 additions & 0 deletions docs/Project.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
[deps]
CoordinateTransformations = "150eb455-5306-5404-9cee-2592286d6298"
Documenter = "e30172f5-a6a5-5a46-863b-614d45cd2de4"
ImageDraw = "4381153b-2b60-58ae-a1ba-fd683676385f"
ImageMagick = "6218d12a-5da1-5696-b52f-db25d2ecc6d1"
Images = "916415d5-f1e6-5110-898d-aaa5f9f070e0"
TestImages = "5e47fb64-e119-507b-a336-dd2b206d9990"
8 changes: 2 additions & 6 deletions docs/make.jl
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using Documenter, ImageFeatures

makedocs(format = :html,
sitename = "ImageFeatures",
makedocs(sitename = "ImageFeatures",
format = Documenter.HTML(prettyurls = get(ENV, "CI", nothing) == "true"),
pages = ["Home" => "index.md",
"Tutorials" => [
"BRIEF" => "tutorials/brief.md",
Expand All @@ -17,8 +17,4 @@ makedocs(format = :html,
)

deploydocs(repo = "github.com/JuliaImages/ImageFeatures.jl.git",
julia = "0.6",
target = "build",
deps = nothing,
make = nothing,
)
2 changes: 1 addition & 1 deletion docs/src/tutorials/brief.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ using ImageFeatures, TestImages, Images, ImageDraw, CoordinateTransformations
img = testimage("lena_gray_512");
img1 = Gray.(img);
trans = Translation(-100, -200)
img2 = warp(img1, trans, indices(img1));
img2 = warp(img1, trans, axes(img1));
nothing # hide
```

Expand Down
2 changes: 1 addition & 1 deletion docs/src/tutorials/brisk.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ img = testimage("lighthouse")
img1 = Gray.(img)
rot = recenter(RotMatrix(5pi/6), [size(img1)...] .÷ 2) # a rotation around the center
tform = rot ∘ Translation(-50, -40)
img2 = warp(img1, tform, indices(img1))
img2 = warp(img1, tform, axes(img1))
nothing # hide
```

Expand Down
2 changes: 1 addition & 1 deletion docs/src/tutorials/freak.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ img = testimage("lighthouse")
img1 = Gray.(img)
rot = recenter(RotMatrix(5pi/6), [size(img1)...] .÷ 2) # a rotation around the center
tform = rot ∘ Translation(-50, -40)
img2 = warp(img1, tform, indices(img1))
img2 = warp(img1, tform, axes(img1))
nothing # hide
```

Expand Down
2 changes: 1 addition & 1 deletion docs/src/tutorials/orb.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ img = testimage("lighthouse")
img1 = Gray.(img)
rot = recenter(RotMatrix(5pi/6), [size(img1)...] .÷ 2) # a rotation around the center
tform = rot ∘ Translation(-50, -40)
img2 = warp(img1, tform, indices(img1))
img2 = warp(img1, tform, axes(img1))
nothing # hide
```

Expand Down

2 comments on commit 6c994e2

@timholy
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JuliaRegistrator register()

@JuliaRegistrator
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Registration pull request created: JuliaRegistries/General/353

After the above pull request is merged, it is recommended that you create
a tag on this repository for the registered package version:

git tag -a v0.3.0 -m "<description of version>" 6c994e29e332993cbf82f11015fc3a0bf2dda17a
git push origin v0.3.0

Please sign in to comment.