@@ -10,7 +10,9 @@ function Remotes.fileurl(::TestRemote, ::Any, filename, linerange)
10
10
L1, L2 = first (linerange), last (linerange)
11
11
return " https://github.com/JuliaBinaryWrappers/Reactant_jll.jl/$(filename) #L$(L1) -$(L2) "
12
12
end
13
- Remotes. issueurl (:: TestRemote , issue) = " https://github.com/EnzymeAD/Reactant.jl/blob/$(issue) "
13
+ function Remotes. issueurl (:: TestRemote , issue)
14
+ return " https://github.com/EnzymeAD/Reactant.jl/blob/$(issue) "
15
+ end
14
16
15
17
DocMeta. setdocmeta! (Reactant, :DocTestSetup , :(using Reactant); recursive= true )
16
18
@@ -25,51 +27,66 @@ examples = Pair{String,String}[]
25
27
26
28
for (_, name) in examples
27
29
example_filepath = joinpath (EXAMPLES_DIR, string (name, " .jl" ))
28
- Literate. markdown (example_filepath, OUTPUT_DIR, documenter = true )
30
+ Literate. markdown (example_filepath, OUTPUT_DIR; documenter= true )
29
31
end
30
32
31
- run (Cmd (` rm -rf .git` , dir= Reactant_jll. artifact_dir))
32
- run (Cmd (` git init` , dir= Reactant_jll. artifact_dir))
33
- run (Cmd (` git config user.name ReactantDocs` , dir= Reactant_jll. artifact_dir))
34
- run (
Cmd (
` git config user.email [email protected] ` , dir
= Reactant_jll
. artifact_dir))
35
- run (Cmd (` git remote add origin https://github.com/EnzymeAD/Reactant.jl` , dir= Reactant_jll. artifact_dir))
36
- run (Cmd (` git add -A` , dir= Reactant_jll. artifact_dir))
37
- run (Cmd (` git commit -m "Initial commit"` , dir= Reactant_jll. artifact_dir))
33
+ run (Cmd (` rm -rf .git` ; dir= Reactant_jll. artifact_dir))
34
+ run (Cmd (` git init` ; dir= Reactant_jll. artifact_dir))
35
+ run (Cmd (` git config user.name ReactantDocs` ; dir= Reactant_jll. artifact_dir))
36
+ run (
Cmd (
` git config user.email [email protected] ` ; dir
= Reactant_jll
. artifact_dir))
37
+ run (
38
+ Cmd (
39
+ ` git remote add origin https://github.com/EnzymeAD/Reactant.jl` ;
40
+ dir= Reactant_jll. artifact_dir,
41
+ ),
42
+ )
43
+ run (Cmd (` git add -A` ; dir= Reactant_jll. artifact_dir))
44
+ run (Cmd (` git commit -m "Initial commit"` ; dir= Reactant_jll. artifact_dir))
38
45
39
- examples = [title => joinpath (" generated" , string (name, " .md" )) for (title, name) in examples]
46
+ examples = [
47
+ title => joinpath (" generated" , string (name, " .md" )) for (title, name) in examples
48
+ ]
40
49
41
50
gh = Documenter. Remotes. GitHub (" EnzymeAD" , " Reactant.jl" )
42
51
43
52
makedocs (;
44
- modules= [Reactant, Reactant. XLA, Reactant. MLIR, Reactant. MLIR. API, Reactant. MLIR. IR, Reactant. MLIR. Dialects. chlo, Reactant. MLIR. Dialects. vhlo, Reactant. MLIR. Dialects. stablehlo, Reactant. MLIR. Dialects. enzyme, Reactant. MLIR. Dialects. arith, Reactant. MLIR. Dialects. func, Reactant. MLIR. Dialects. affine, Reactant. MLIR. Dialects. builtin],
53
+ modules= [
54
+ Reactant,
55
+ Reactant. XLA,
56
+ Reactant. MLIR,
57
+ Reactant. MLIR. API,
58
+ Reactant. MLIR. IR,
59
+ Reactant. MLIR. Dialects. chlo,
60
+ Reactant. MLIR. Dialects. vhlo,
61
+ Reactant. MLIR. Dialects. stablehlo,
62
+ Reactant. MLIR. Dialects. enzyme,
63
+ Reactant. MLIR. Dialects. arith,
64
+ Reactant. MLIR. Dialects. func,
65
+ Reactant. MLIR. Dialects. affine,
66
+ Reactant. MLIR. Dialects. builtin,
67
+ ],
45
68
authors
= " William Moses <[email protected] >, Valentin Churavy <[email protected] >" ,
46
69
remotes= Dict (
47
- # Just non-repository directories
48
- joinpath (@__DIR__ , " .." ) => gh,
49
- Reactant_jll. artifact_dir => TestRemote (),
70
+ # Just non-repository directories
71
+ joinpath (@__DIR__ , " .." ) => gh,
72
+ Reactant_jll. artifact_dir => TestRemote (),
50
73
),
51
74
sitename= " Reactant.jl" ,
52
75
format= Documenter. HTML (;
53
76
prettyurls= get (ENV , " CI" , " false" ) == " true" ,
54
77
canonical= " https://enzymead.github.io/Reactant.jl/" ,
55
- size_threshold_ignore = [" api.md" ],
56
- assets = [
57
- asset (" https://plausible.io/js/plausible.js" ,
58
- class= :js ,
59
- attributes= Dict (Symbol (" data-domain" ) => " enzyme.mit.edu" , :defer => " " )
60
- )
61
- ],
78
+ size_threshold_ignore= [" api.md" ],
79
+ assets= [
80
+ asset (
81
+ " https://plausible.io/js/plausible.js" ;
82
+ class= :js ,
83
+ attributes= Dict (Symbol (" data-domain" ) => " enzyme.mit.edu" , :defer => " " ),
84
+ ),
85
+ ],
62
86
),
63
- pages = [
64
- " Home" => " index.md" ,
65
- " API reference" => " api.md" ,
66
- ],
67
- doctest = true ,
68
- warnonly = true ,
87
+ pages= [" Home" => " index.md" , " API reference" => " api.md" ],
88
+ doctest= true ,
89
+ warnonly= true ,
69
90
)
70
91
71
- deploydocs (;
72
- repo= " github.com/EnzymeAD/Reactant.jl" ,
73
- devbranch = " main" ,
74
- push_preview = true ,
75
- )
92
+ deploydocs (; repo= " github.com/EnzymeAD/Reactant.jl" , devbranch= " main" , push_preview= true )
0 commit comments