Skip to content

Commit 014b7a3

Browse files
authored
Merge pull request #42 from Saransh-cpp/fix-missing-docs-and-references
Fix missing docs and cross-references
2 parents 0cf7942 + 3c0c52b commit 014b7a3

File tree

3 files changed

+7
-4
lines changed

3 files changed

+7
-4
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
.DS_Store
22
/dev/
33
Manifest.toml
4+
build
5+
.vscode

docs/make.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,11 @@ using Documenter, Functors
33
DocMeta.setdocmeta!(Functors, :DocTestSetup, :(using Functors); recursive = true)
44

55
makedocs(modules = [Functors],
6-
doctest = VERSION == v"1.6",
6+
doctest = false,
77
sitename = "Functors.jl",
88
pages = ["Home" => "index.md",
99
"API" => "api.md"],
10+
strict = [:cross_references, :missing_docs],
1011
format = Documenter.HTML(
1112
analytics = "UA-36890222-9",
1213
assets = ["assets/flux.css"],

src/Functors.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,20 +19,20 @@ Returns a tuple containing, first, a `NamedTuple` of the children of `x`
1919
This controls the behaviour of [`fmap`](@ref).
2020
2121
Methods should be added to `functor(::Type{T}, x)` for custom types,
22-
usually using the macro [@functor](@ref).
22+
usually using the macro [`@functor`](@ref).
2323
"""
2424
functor
2525

2626
@static if VERSION >= v"1.5" # var"@functor" doesn't work on 1.0, temporarily disable
27-
"""
27+
@doc """
2828
@functor T
2929
@functor T (x,)
3030
3131
Adds methods to [`functor`](@ref) allowing recursion into objects of type `T`,
3232
and reconstruction. Assumes that `T` has a constructor accepting all of its fields,
3333
which is true unless you have provided an inner constructor which does not.
3434
35-
By default all fields of `T` are considered [children](@ref);
35+
By default all fields of `T` are considered [`children`](@ref);
3636
this can be restricted be restructed by providing a tuple of field names.
3737
3838
# Examples

0 commit comments

Comments
 (0)