Skip to content

Commit

Permalink
misc fixes that error's the doc build on --depwarn=error (#26452)
Browse files Browse the repository at this point in the history
  • Loading branch information
fredrikekre authored Mar 14, 2018
1 parent ead9eab commit a0180d9
Show file tree
Hide file tree
Showing 14 changed files with 23 additions and 25 deletions.
2 changes: 1 addition & 1 deletion base/char.jl
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ representable in a given `AbstractChar` type.
Internally, an `AbstractChar` type may use a variety of encodings. Conversion
via `codepoint(char)` will not reveal this encoding because it always returns the
Unicode value of the character. `print(io, c)` of any `c::AbstractChar`
produces an encoding determined by `io` (UTF-8 for all built-in [`IO`](@ref)
produces an encoding determined by `io` (UTF-8 for all built-in `IO`
types), via conversion to `Char` if necessary.
`write(io, c)`, in contrast, may emit an encoding depending on
Expand Down
2 changes: 1 addition & 1 deletion base/docs/basedocs.jl
Original file line number Diff line number Diff line change
Expand Up @@ -416,7 +416,7 @@ julia> i = 1
julia> while i < 5
println(i)
i += 1
global i += 1
end
1
2
Expand Down
2 changes: 1 addition & 1 deletion base/io.jl
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ buffer_writes(x::IO, bufsize=SZ_UNBUFFERED_IO) = x
"""
isopen(object) -> Bool
Determine whether an object - such as a stream, timer, or [`mmap`](@ref Mmap.mmap)
Determine whether an object - such as a stream or timer
-- is not yet closed. Once an object is closed, it will never produce a new event.
However, since a closed stream may still have data to read in its buffer,
use [`eof`](@ref) to check for the ability to read data.
Expand Down
3 changes: 1 addition & 2 deletions base/strings/search.jl
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,7 @@ Find the first occurrence of `pattern` in `string`. Equivalent to
# Examples
```jldoctest
julia> findfirst("z", "Hello to the world")
0:-1
julia> findfirst("z", "Hello to the world") # returns nothing, but not printed in the REPL
julia> findfirst("Julia", "JuliaLang")
1:5
Expand Down
2 changes: 1 addition & 1 deletion doc/make.jl
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ for stdlib in STDLIB_DOCS
end

makedocs(
build = joinpath(pwd(), "_build/html/en"),
build = joinpath(@__DIR__, "_build/html/en"),
modules = [Base, Core, BuildSysImg, [Base.root_module(Base, stdlib.stdlib) for stdlib in STDLIB_DOCS]...],
clean = true,
doctest = "doctest" in ARGS,
Expand Down
3 changes: 1 addition & 2 deletions doc/src/base/base.md
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,6 @@ Base.withenv
Base.pipeline(::Any, ::Any, ::Any, ::Any...)
Base.pipeline(::Base.AbstractCmd)
Base.Libc.gethostname
Base.getipaddr
Base.Libc.getpid
Base.Libc.time()
Base.time_ns
Expand Down Expand Up @@ -291,7 +290,6 @@ Base.MissingException
Core.OutOfMemoryError
Core.ReadOnlyMemoryError
Core.OverflowError
Base.ParseError
Core.StackOverflowError
Base.SystemError
Core.TypeError
Expand Down Expand Up @@ -336,6 +334,7 @@ Meta.lower
Meta.@lower
Meta.parse(::AbstractString, ::Int)
Meta.parse(::AbstractString)
Meta.ParseError
Base.macroexpand
Base.@macroexpand
Base.@macroexpand1
Expand Down
4 changes: 2 additions & 2 deletions doc/src/base/collections.md
Original file line number Diff line number Diff line change
Expand Up @@ -203,8 +203,8 @@ Base.keys
Base.values
Base.pairs
Base.merge
Base.merge!(::Associative, ::Associative...)
Base.merge!(::Function, ::Associative, ::Associative...)
Base.merge!(::AbstractDict, ::AbstractDict...)
Base.merge!(::Function, ::AbstractDict, ::AbstractDict...)
Base.sizehint!
Base.keytype
Base.valtype
Expand Down
14 changes: 7 additions & 7 deletions doc/src/devdocs/reflection.md
Original file line number Diff line number Diff line change
Expand Up @@ -113,14 +113,13 @@ julia> Meta.lower(@__MODULE__, :(f() = 1) )

Inspecting the lowered form for functions requires selection of the specific method to display,
because generic functions may have many methods with different type signatures. For this purpose,
method-specific code-lowering is available using [`code_lowered(f::Function, (Argtypes...))`](@ref),
and the type-inferred form is available using [`code_typed(f::Function, (Argtypes...))`](@ref).
[`code_warntype(f::Function, (Argtypes...))`](@ref) adds highlighting to the output of [`code_typed`](@ref)
(see [`@code_warntype`](@ref)).
method-specific code-lowering is available using [`code_lowered`](@ref),
and the type-inferred form is available using [`code_typed`](@ref).
[`code_warntype`](@ref) adds highlighting to the output of [`code_typed`](@ref).

Closer to the machine, the LLVM intermediate representation of a function may be printed using
by [`code_llvm(f::Function, (Argtypes...))`](@ref), and finally the compiled machine code is available
using [`code_native(f::Function, (Argtypes...))`](@ref) (this will trigger JIT compilation/code
by [`code_llvm`](@ref), and finally the compiled machine code is available
using [`code_native`](@ref) (this will trigger JIT compilation/code
generation for any function which has not previously been called).

For convenience, there are macro versions of the above functions which take standard function
Expand All @@ -137,4 +136,5 @@ top:
}
```

(likewise `@code_typed`, `@code_warntype`, `@code_lowered`, and `@code_native`)
See [`@code_lowered`](@ref), [`@code_typed`](@ref), [`@code_warntype`](@ref),
[`@code_llvm`](@ref), and [`@code_native`](@ref).
2 changes: 1 addition & 1 deletion doc/src/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ Please read the [release notes](NEWS.md) to see what has changed since the last
## Manual

* [Introduction](@ref man-introduction)
* [Getting Started](@ref)
* [Getting Started](@ref man-getting-started)
* [Variables](@ref)
* [Integers and Floating-Point Numbers](@ref)
* [Mathematical Operations and Elementary Functions](@ref)
Expand Down
2 changes: 1 addition & 1 deletion doc/src/manual/control-flow.md
Original file line number Diff line number Diff line change
Expand Up @@ -561,7 +561,7 @@ below all interrupt the normal flow of control.
| [`RemoteException`](@ref) |
| [`MethodError`](@ref) |
| [`OverflowError`](@ref) |
| [`ParseError`](@ref) |
| [`Meta.ParseError`](@ref) |
| [`SystemError`](@ref) |
| [`TypeError`](@ref) |
| [`UndefRefError`](@ref) |
Expand Down
6 changes: 3 additions & 3 deletions doc/src/manual/environment-variables.md
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ respect to the working directory. If `$JULIA_PKGDIR` is not set, then
$HOME/.julia
```

Then the repository location [`Pkg.dir`](@ref) for a given Julia version is
Then the repository location `Pkg.dir` for a given Julia version is

```
$JULIA_PKGDIR/v$(VERSION.major).$(VERSION.minor)
Expand Down Expand Up @@ -128,7 +128,7 @@ $HOME/.julia_history
### `JULIA_PKGRESOLVE_ACCURACY`

A positive `Int` that determines how much time the max-sum subroutine
`MaxSum.maxsum()` of the package dependency resolver [`Base.Pkg.resolve`](@ref)
`MaxSum.maxsum()` of the package dependency resolver `Pkg.resolve`
will devote to attempting satisfying constraints before giving up: this value is
by default `1`, and larger values correspond to larger amounts of time.

Expand Down Expand Up @@ -164,7 +164,7 @@ exists, or `emacs` otherwise.
!!! note

`$JULIA_EDITOR` is *not* used in the determination of the editor for
[`Base.Pkg.edit`](@ref): this function checks `$VISUAL` and `$EDITOR` alone.
`Pkg.edit`: this function checks `$VISUAL` and `$EDITOR` alone.

## Parallelization

Expand Down
2 changes: 1 addition & 1 deletion doc/src/manual/getting-started.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Getting Started
# [Getting Started](@id man-getting-started)

Julia installation is straightforward, whether using precompiled binaries or compiling from source.
Download and install Julia by following the instructions at [https://julialang.org/downloads/](https://julialang.org/downloads/).
Expand Down
2 changes: 1 addition & 1 deletion doc/src/manual/index.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# The Julia Manual

* [Introduction](@ref man-introduction)
* [Getting Started](@ref)
* [Getting Started](@ref man-getting-started)
* [Variables](@ref)
* [Integers and Floating-Point Numbers](@ref)
* [Mathematical Operations and Elementary Functions](@ref)
Expand Down
2 changes: 1 addition & 1 deletion doc/src/manual/unicode-input.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ the symbol).
#
# Generate a table containing all LaTeX and Emoji tab completions available in the REPL.
#
import REPL
import REPL, Markdown
const NBSP = '\u00A0'
function tab_completions(symbols...)
Expand Down

0 comments on commit a0180d9

Please sign in to comment.