Skip to content

Commit

Permalink
Merge pull request #777 from JuliaDocs/mp/fix-deprecations
Browse files Browse the repository at this point in the history
A few deprecation fixes
  • Loading branch information
mortenpi authored Aug 7, 2018
2 parents e47073d + d4d63e0 commit 31e3e3d
Show file tree
Hide file tree
Showing 9 changed files with 11 additions and 9 deletions.
2 changes: 1 addition & 1 deletion REQUIRE
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
julia 0.6
Compat 0.62.0
Compat 0.70.0 # reduce(; init=...) / Compat#590
DocStringExtensions 0.2
2 changes: 1 addition & 1 deletion docs/src/man/examples.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ Packages that have tagged versions available in `METADATA.jl`.
- [POMDPs.jl](http://juliapomdp.github.io/POMDPs.jl/latest/)
- [PhyloNetworks.jl](http://crsl4.github.io/PhyloNetworks.jl/latest/)
- [PrivateModules.jl](https://michaelhatherly.github.io/PrivateModules.jl/latest/)
- [Query.jl](http://www.david-anthoff.com/Query.jl/stable/)
- [Query.jl](http://www.queryverse.org/Query.jl/stable/)
- [TaylorSeries.jl](http://www.juliadiff.org/TaylorSeries.jl/latest/)
- [Weave.jl](http://weavejl.mpastell.com/stable/)

Expand Down
2 changes: 1 addition & 1 deletion docs/src/man/guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,7 @@ not supported for `@index`.
Documenter produces a set of Markdown files, which then have to be converted into a
user-readable format for distribution.
While in principle any Markdown parser would do (as long as it supports the required
Markdown extensions), the Python-based [MkDocs](http://www.mkdocs.org/) is usually used
Markdown extensions), the Python-based [MkDocs](https://www.mkdocs.org/) is usually used
to convert the Markdown files into a set of HTML pages.
See [Hosting Documentation](@ref) for further information on configuring MkDocs for Documenter.

Expand Down
4 changes: 2 additions & 2 deletions docs/src/man/hosting.md
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ This will deploy the docs from the OSX Julia nightly Travis build bot.

The keyword `deps` serves to provide the required dependencies to deploy
the documentation. In the example above we include the dependencies
[mkdocs](http://www.mkdocs.org)
[mkdocs](https://www.mkdocs.org)
and [`python-markdown-math`](https://github.com/mitya57/python-markdown-math).
The former makes sure that MkDocs is installed to deploy the documentation,
and the latter provides the `mdx_math` markdown extension to exploit MathJax
Expand All @@ -160,7 +160,7 @@ See the [`deploydocs`](@ref) function documentation for more details.

## The MkDocs `mkdocs.yml` File

We'll be using [MkDocs](http://www.mkdocs.org) to convert the markdown files generated by
We'll be using [MkDocs](https://www.mkdocs.org) to convert the markdown files generated by
Documenter to HTML. (This, of course, is not the only option you have for this step. Any
markdown to HTML converter should work fine with some amount of setting up.)

Expand Down
2 changes: 1 addition & 1 deletion src/DocChecks.jl
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ function missingdocs(doc::Documents.Document)
end
end
end
n = reduce(+, 0, map(length, values(bindings)))
n = Compat.reduce(+, map(length, values(bindings)), init=0)
if n > 0
b = IOBuffer()
println(b, "$n docstring$(n 1 ? "" : "s") potentially missing:\n")
Expand Down
4 changes: 2 additions & 2 deletions src/Documenter.jl
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ $(EXPORTS)
module Documenter

using Compat, DocStringExtensions
import Compat.Base64: base64decode, base64encode
import Compat.Base64: base64decode
import Compat: @info
import Compat.Pkg

Expand Down Expand Up @@ -530,7 +530,7 @@ function git_push(
version = VersionNumber(tag)
# only push to stable if this is the latest stable release
versions = filter!(x -> occursin(Base.VERSION_REGEX, x), readdir(dirname))
maxver = mapreduce(x -> VersionNumber(x), max, v"0.0.0", versions)
maxver = Compat.mapreduce(x -> VersionNumber(x), max, versions; init=v"0.0.0")
if version >= maxver && version.prerelease == () # don't deploy to stable for prereleases
gitrm_copy(target_dir, stable_dir)
Writers.HTMLWriter.generate_siteinfo_file(stable_dir, "stable")
Expand Down
1 change: 1 addition & 0 deletions src/Travis.jl
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ module Travis

using Compat, DocStringExtensions
import Compat.Pkg
import Compat.Base64: base64encode

export genkeys

Expand Down
1 change: 1 addition & 0 deletions test/generate.jl
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
module GenerateTests

using Compat.Test
import Compat.Random: randstring
using Documenter

@testset "Generate" begin
Expand Down
2 changes: 1 addition & 1 deletion test/nongit/tests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@ mktempdir() do tmpdir
cp(joinpath(@__DIR__, "docs"), joinpath(tmpdir, "docs"))
include(joinpath(tmpdir, "docs/make.jl"))
# Copy the build/ directory back so that it would be possible to inspect the output.
cp(joinpath(tmpdir, "docs/build"), joinpath(@__DIR__, "build"); remove_destination=true)
Compat.cp(joinpath(tmpdir, "docs/build"), joinpath(@__DIR__, "build"); force=true)
end

0 comments on commit 31e3e3d

Please sign in to comment.