Skip to content

Commit

Permalink
Fix docs
Browse files Browse the repository at this point in the history
  • Loading branch information
gdalle authored Mar 10, 2024
1 parent c2fce69 commit abbd414
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 12 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ From these primitives, several utilities are defined, depending on the type of t

## Example

```julia
```jldoctest
julia> import DifferentiationInterface, ADTypes, ForwardDiff
julia> backend = ADTypes.AutoForwardDiff();
Expand Down
2 changes: 1 addition & 1 deletion docs/make.jl
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ ZygoteExt = get_extension(DI, :DifferentiationInterfaceZygoteExt)
DocMeta.setdocmeta!(
DifferentiationInterface,
:DocTestSetup,
:(using DifferentiationInterface);
:(using DifferentiationInterface, ADTypes);
recursive=true,
)

Expand Down
12 changes: 2 additions & 10 deletions docs/src/interface.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,24 +59,16 @@ Pages = ["pullback.jl"]

### ADTypes.jl

```@meta
CurrentModule = ADTypes
```

The following backends are defined by [ADTypes.jl](https://github.com/SciML/ADTypes.jl):

```@autodocs
Modules = [ADTypes]
```@docs
AbstractADType
```

Only a subset is supported by DifferentiationInterface.jl at the moment.

### DifferentiationInterface.jl

```@meta
CurrentModule = DifferentiationInterface
```

The following backends are defined by DifferentiationInterface.jl:

```@autodocs
Expand Down

0 comments on commit abbd414

Please sign in to comment.