Skip to content

Commit

Permalink
fix broken documentation (#172)
Browse files Browse the repository at this point in the history
* fix docs

* cleanup
  • Loading branch information
CarloLucibello authored Apr 2, 2024
1 parent 4132da4 commit b4920f7
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
Manifest.toml
.vscode/
docs/build/
.DS_Store
Binary file added docs/.DS_Store
Binary file not shown.
2 changes: 1 addition & 1 deletion docs/make.jl
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ using Documenter, Optimisers, Zygote, StaticArrays, Functors

DocMeta.setdocmeta!(Optimisers, :DocTestSetup, :(using Optimisers); recursive = true)

makedocs(modules = [Optimisers, Zygote, StaticArrays, Functors],
makedocs(modules = [Optimisers],
doctest = false,
sitename = "Optimisers.jl",
pages = ["Home" => "index.md",
Expand Down
2 changes: 2 additions & 0 deletions docs/src/api.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ To further restrict this by ignoring some fields of a layer type, define `traina
```@docs
Optimisers.trainable
Optimisers.isnumeric
Optimisers.maywrite
```

Such restrictions are also obeyed by this function for flattening a model:
Expand All @@ -68,4 +69,5 @@ Optimisers.init
Optimisers.@..
Optimisers.@lazy
Optimisers.adjust(::AbstractRule, ::Real)
Optimisers.@def
```

0 comments on commit b4920f7

Please sign in to comment.