File tree Expand file tree Collapse file tree 2 files changed +26
-7
lines changed Expand file tree Collapse file tree 2 files changed +26
-7
lines changed Original file line number Diff line number Diff line change @@ -2,6 +2,32 @@ using Documenter
2
2
using DynamicExpressions
3
3
using Random: AbstractRNG
4
4
5
+ readme = joinpath (@__DIR__ , " .." , " README.md" )
6
+
7
+ index_content = let r= read (readme, String)
8
+ # Clean img tags:
9
+ r2 = replace (r, r""" <img src="([^"]+)"[^>]*>""" => " " )
10
+ # Remove div tags:
11
+ r3 = replace (r2, r" <div[^>]*>" => " " )
12
+ # Remove end div tags:
13
+ r4 = replace (r3, r" </div>" => " " )
14
+
15
+ top_part = """
16
+ # Contents
17
+
18
+ ```@contents
19
+ Pages = ["utils.md", "api.md", "eval.md"]
20
+ ```
21
+ """
22
+
23
+ join ((top_part, r4), " \n " )
24
+ end
25
+
26
+ index_md = joinpath (@__DIR__ , " src" , " index.md" )
27
+ open (index_md, " w" ) do f
28
+ write (f, index_content)
29
+ end
30
+
5
31
makedocs (;
6
32
sitename= " DynamicExpressions.jl" ,
7
33
authors= " Miles Cranmer" ,
@@ -12,7 +38,6 @@ makedocs(;
12
38
)
13
39
14
40
# Forward links from old docs:
15
-
16
41
redirect_page = """
17
42
<!DOCTYPE html>
18
43
<html lang="en">
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments