Skip to content

Commit 92ee1af

Browse files
authored
Add external links to the documentation and update Documenter compat (#322)
* fix(docs): Update compat bound for Documenter and dev the package It should keep the package updated when building the docs. * feat(docs): Add the DocumenterInterLinks package for external documentation links * feat(docs): Use `@extref` for external references * fix(docs): Add `repo` to `make.jl` * fix(docs): Add `set_provider!` to the documentation
1 parent 7d0f38c commit 92ee1af

File tree

6 files changed

+35
-29
lines changed

6 files changed

+35
-29
lines changed

docs/Project.toml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
[deps]
22
Documenter = "e30172f5-a6a5-5a46-863b-614d45cd2de4"
3+
DocumenterInterLinks = "d12716ef-a0f6-4df4-a9f1-a5a34e75c656"
4+
FFTW = "7a1cc6ca-52ef-59f5-83cd-3a7055c09341"
5+
6+
[sources]
7+
FFTW = { path = ".." }
38

49
[compat]
5-
Documenter = "~0.26"
10+
Documenter = "^1"
11+
DocumenterInterLinks = "^1.1"

docs/make.jl

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,21 @@
1-
using Documenter, FFTW
1+
using Documenter, DocumenterInterLinks, FFTW
2+
3+
links = InterLinks(
4+
"Julia" => "https://docs.julialang.org/en/v1/",
5+
"AbstractFFTs" => "https://juliamath.github.io/AbstractFFTs.jl/dev/",
6+
)
27

38
makedocs(
49
modules = [FFTW],
510
clean = false,
11+
repo = Remotes.GitHub("JuliaMath", "FFTW.jl"),
612
sitename = "FFTW.jl",
713
pages = Any[
814
"Home" => "index.md",
915
"API" => "fft.md",
1016
"Examples" => "examples.md",
1117
],
18+
plugins=[links],
1219
)
1320

1421
deploydocs(

docs/src/fft.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,5 @@ FFTW.plan_dct
2020
FFTW.plan_idct
2121
FFTW.plan_dct!
2222
FFTW.plan_idct!
23+
FFTW.set_provider!
2324
```

docs/src/index.md

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,10 @@ Pkg.add("FFTW")
1515

1616
from the Julia REPL.
1717

18-
Users with a build of Julia based on Intel's Math Kernel Library (MKL) can use MKL
19-
for FFTs by setting a preference in their top-level project by either using the
20-
`FFTW.set_provider!()` method, or by directly setting the preference using
21-
[`Preferences.jl`](https://github.com/JuliaPackaging/Preferences.jl). Note that this
22-
choice will be recorded for the current project, and other projects that wish to use
23-
MKL for FFTs should also set that same preference.
24-
Note further that MKL provides only a subset of the functionality provided by FFTW. See
25-
Intel's [documentation](https://software.intel.com/en-us/mkl-developer-reference-c-using-fftw3-wrappers)
26-
for more information about potential differences or gaps in functionality.
18+
Users with a build of Julia based on Intel's Math Kernel Library (MKL) can use MKL for FFTs by setting a preference in
19+
their top-level project by either using the [`FFTW.set_provider!()`](@ref) method, or by directly setting the preference
20+
using [`Preferences.jl`](https://github.com/JuliaPackaging/Preferences.jl). Note that this choice will be recorded for
21+
the current project, and other projects that wish to use MKL for FFTs should also set that same preference. Note further
22+
that MKL provides only a subset of the functionality provided by FFTW. See Intel's
23+
[documentation](https://software.intel.com/en-us/mkl-developer-reference-c-using-fftw3-wrappers) for more information
24+
about potential differences or gaps in functionality.

src/dct.jl

Lines changed: 9 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -12,20 +12,17 @@ function plan_dct! end
1212
"""
1313
plan_idct(A [, dims [, flags [, timelimit [, num_threads]]]])
1414
15-
Pre-plan an optimized inverse discrete cosine transform (DCT), similar to
16-
[`plan_fft`](@ref) except producing a function that computes
17-
[`idct`](@ref). The first two arguments have the same meaning as for
15+
Pre-plan an optimized inverse discrete cosine transform (DCT), similar to [`plan_fft`](@extref `AbstractFFTs.plan_fft`)
16+
except producing a function that computes [`idct`](@ref). The first two arguments have the same meaning as for
1817
[`idct`](@ref).
1918
"""
2019
function plan_idct end
2120

2221
"""
2322
plan_dct(A [, dims [, flags [, timelimit [, num_threads]]]])
2423
25-
Pre-plan an optimized discrete cosine transform (DCT), similar to
26-
[`plan_fft`](@ref) except producing a function that computes
27-
[`dct`](@ref). The first two arguments have the same meaning as for
28-
[`dct`](@ref).
24+
Pre-plan an optimized discrete cosine transform (DCT), similar to [`plan_fft`](@extref `AbstractFFTs.plan_fft`) except
25+
producing a function that computes [`dct`](@ref). The first two arguments have the same meaning as for [`dct`](@ref).
2926
"""
3027
function plan_dct end
3128

@@ -39,12 +36,10 @@ function plan_idct! end
3936
"""
4037
dct(A [, dims])
4138
42-
Performs a multidimensional type-II discrete cosine transform (DCT) of the array `A`, using
43-
the unitary normalization of the DCT. The optional `dims` argument specifies an iterable
44-
subset of dimensions (e.g. an integer, range, tuple, or array) to transform along. Most
45-
efficient if the size of `A` along the transformed dimensions is a product of small primes;
46-
see [`nextprod`](@ref). See also [`plan_dct`](@ref) for even greater
47-
efficiency.
39+
Performs a multidimensional type-II discrete cosine transform (DCT) of the array `A`, using the unitary normalization of
40+
the DCT. The optional `dims` argument specifies an iterable subset of dimensions (e.g. an integer, range, tuple, or
41+
array) to transform along. Most efficient if the size of `A` along the transformed dimensions is a product of small
42+
primes; see [`nextprod`](@extref `Base.nextprod`). See also [`plan_dct`](@ref) for even greater efficiency.
4843
"""
4944
function dct end
5045

@@ -55,7 +50,7 @@ Computes the multidimensional inverse discrete cosine transform (DCT) of the arr
5550
(technically, a type-III DCT with the unitary normalization). The optional `dims` argument
5651
specifies an iterable subset of dimensions (e.g. an integer, range, tuple, or array) to
5752
transform along. Most efficient if the size of `A` along the transformed dimensions is a
58-
product of small primes; see [`nextprod`](@ref). See also
53+
product of small primes; see [`nextprod`](@extref `Base.nextprod`). See also
5954
[`plan_idct`](@ref) for even greater efficiency.
6055
"""
6156
function idct end

src/fft.jl

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,16 +40,15 @@ function r2r! end
4040
"""
4141
plan_r2r!(A, kind [, dims [, flags [, timelimit [, num_threads]]]])
4242
43-
Similar to [`plan_fft`](@ref), but corresponds to [`r2r!`](@ref).
43+
Similar to [`plan_fft`](@extref `AbstractFFTs.plan_fft`), but corresponds to [`r2r!`](@ref).
4444
"""
4545
function plan_r2r! end
4646

4747
"""
4848
plan_r2r(A, kind [, dims [, flags [, timelimit [, num_threads]]]])
4949
50-
Pre-plan an optimized r2r transform, similar to [`plan_fft`](@ref)
51-
except that the transforms (and the first three arguments)
52-
correspond to [`r2r`](@ref) and [`r2r!`](@ref), respectively.
50+
Pre-plan an optimized r2r transform, similar to [`plan_fft`](@extref `AbstractFFTs.plan_fft`) except that the
51+
transforms (and the first three arguments) correspond to [`r2r`](@ref) and [`r2r!`](@ref), respectively.
5352
"""
5453
function plan_r2r end
5554

0 commit comments

Comments
 (0)