|
1 | | -using ChainRulesCore |
| 1 | +using ChainRulesOverloadGeneration |
| 2 | +using ChainRulesCore: ChainRulesCore |
2 | 3 | using Documenter |
3 | 4 | using DocThemeIndigo |
4 | 5 | using Markdown |
5 | 6 |
|
6 | | -DocMeta.setdocmeta!( |
7 | | - ChainRulesCore, |
8 | | - :DocTestSetup, |
9 | | - quote |
10 | | - using Random |
11 | | - Random.seed!(0) # frule doctest shows output |
12 | | - |
13 | | - using ChainRulesCore |
14 | | - # These rules are all actually defined in ChainRules.jl, but we redefine them here to |
15 | | - # avoid the dependency. |
16 | | - @scalar_rule(sin(x), cos(x)) # frule and rrule doctest |
17 | | - @scalar_rule(sincos(x), @setup((sinx, cosx) = Ω), cosx, -sinx) # frule doctest |
18 | | - @scalar_rule(hypot(x::Real, y::Real), (x / Ω, y / Ω)) # rrule doctest |
19 | | - end |
20 | | -) |
21 | | - |
22 | | -indigo = DocThemeIndigo.install(ChainRulesCore) |
| 7 | +indigo = DocThemeIndigo.install(ChainRulesOverloadGeneration) |
23 | 8 |
|
24 | 9 | makedocs( |
25 | | - modules=[ChainRulesCore], |
| 10 | + modules=[ChainRulesOverloadGeneration], |
26 | 11 | format=Documenter.HTML( |
27 | 12 | prettyurls=false, |
28 | 13 | assets=[indigo], |
29 | | - mathengine=MathJax3( |
30 | | - Dict( |
31 | | - :tex => Dict( |
32 | | - "inlineMath" => [["\$","\$"], ["\\(","\\)"]], |
33 | | - "tags" => "ams", |
34 | | - # TODO: remove when using physics package |
35 | | - "macros" => Dict( |
36 | | - "ip" => ["{\\left\\langle #1, #2 \\right\\rangle}", 2], |
37 | | - "Re" => "{\\operatorname{Re}}", |
38 | | - "Im" => "{\\operatorname{Im}}", |
39 | | - "tr" => "{\\operatorname{tr}}", |
40 | | - ), |
41 | | - ), |
42 | | - ), |
43 | | - ), |
44 | 14 | ), |
45 | | - sitename="ChainRules", |
46 | | - authors="Jarrett Revels and other contributors", |
| 15 | + sitename="ChainRules Overload Generation", |
| 16 | + authors="Lyndon White and other contributors", |
47 | 17 | pages=[ |
48 | 18 | "Introduction" => "index.md", |
49 | | - "FAQ" => "FAQ.md", |
50 | | - "Writing Good Rules" => "writing_good_rules.md", |
51 | | - "Complex Numbers" => "complex.md", |
52 | | - "Deriving Array Rules" => "arrays.md", |
53 | | - "Debug Mode" => "debug_mode.md", |
54 | | - "Gradient Accumulation" => "gradient_accumulation.md", |
55 | | - "Usage in AD" => [ |
56 | | - "Overview" => "autodiff/overview.md", |
57 | | - "Operator Overloading" => "autodiff/operator_overloading.md", |
58 | | - ], |
59 | | - "Design" => [ |
60 | | - "Changing the Primal" => "design/changing_the_primal.md", |
61 | | - "Many Differential Types" => "design/many_differentials.md", |
| 19 | + "Examples of making AD systems" => [ |
| 20 | + "Forward Mode" => "examples/forward_mode.md", |
| 21 | + "Reverse Mode" => "examples/reverse_mode.md", |
62 | 22 | ], |
63 | 23 | "API" => "api.md", |
64 | | - ], |
| 24 | + ], |
65 | 25 | strict=true, |
66 | 26 | checkdocs=:exports, |
67 | 27 | ) |
68 | 28 |
|
69 | 29 | deploydocs( |
70 | | - repo = "github.com/JuliaDiff/ChainRulesCore.jl.git", |
| 30 | + repo = "github.com/JuliaDiff/ChainRulesOverloadGeneration.jl.git", |
71 | 31 | push_preview=true, |
72 | 32 | ) |
0 commit comments