Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add FAQ section to docs #1343

Merged
merged 11 commits into from
Mar 22, 2024
Merged
Show file tree
Hide file tree
Changes from 7 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 7 additions & 5 deletions docs/make.jl
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ const EXAMPLES_DIR = joinpath(@__DIR__, "..", "examples")
const OUTPUT_DIR = joinpath(@__DIR__, "src/generated")

examples = Pair{String,String}[
"Basics" => "autodiff"
"Box model" => "box"
"AutoDiff API" => "autodiff"
"Custom rules" => "custom_rule"
]

Expand Down Expand Up @@ -51,10 +51,12 @@ makedocs(;
pages = [
"Home" => "index.md",
"Examples" => examples,
"API" => "api.md",
"Implementing pullbacks" => "pullbacks.md",
"For developers" => "dev_docs.md",
"Internal API" => "internal_api.md",
"FAQ" => "faq.md",
"API reference" => "api.md",
"Advanced" => [
"For developers" => "dev_docs.md",
"Internal API" => "internal_api.md",
]
],
doctest = true,
strict = true,
Expand Down
4 changes: 2 additions & 2 deletions docs/src/api.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# API
# API reference

## Types and constants

Expand All @@ -14,7 +14,7 @@ Modules = [Enzyme, EnzymeCore, EnzymeCore.EnzymeRules, EnzymeTestUtils, Enzyme.A
Order = [:macro, :function]
```

# Documentation
## Documentation

```@autodocs
Modules = [Enzyme, EnzymeCore, EnzymeCore.EnzymeRules, EnzymeTestUtils, Enzyme.API]
Expand Down
402 changes: 402 additions & 0 deletions docs/src/faq.md

Large diffs are not rendered by default.

351 changes: 8 additions & 343 deletions docs/src/index.md

Large diffs are not rendered by default.

47 changes: 0 additions & 47 deletions docs/src/pullbacks.md

This file was deleted.

2 changes: 1 addition & 1 deletion examples/autodiff.jl
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# # AutoDiff API
# # Basics

# The goal of this tutorial is to give users already familiar with automatic
# differentiation (AD) an overview
Expand Down
2 changes: 1 addition & 1 deletion src/compiler.jl
Original file line number Diff line number Diff line change
Expand Up @@ -1820,7 +1820,7 @@ function julia_error(cstr::Cstring, val::LLVM.API.LLVMValueRef, errtype::API.Err
println(io, Base.unsafe_string(st))
API.EnzymeStringFree(st)
end
println(io, "You may be using a constant variable as temporary storage for active memory (https://enzyme.mit.edu/julia/stable/#Activity-of-temporary-storage). If not, please open an issue, and either rewrite this variable to not be conditionally active or use Enzyme.API.runtimeActivity!(true) as a workaround for now")
println(io, "You may be using a constant variable as temporary storage for active memory (https://enzyme.mit.edu/julia/stable/faq/#Activity-analysis). If not, please open an issue, and either rewrite this variable to not be conditionally active or use Enzyme.API.runtimeActivity!(true) as a workaround for now")
if bt !== nothing
Base.show_backtrace(io, bt)
end
Expand Down
Loading