|
16 | 16 |
|
17 | 17 | # Documenter Setup. |
18 | 18 |
|
| 19 | +symlink_q(tgt, link) = isfile(link) || symlink(tgt, link) |
| 20 | +cp_q(src, dest) = isfile(dest) || cp(src, dest) |
| 21 | + |
19 | 22 | # make links for stdlib package docs |
20 | 23 | if Sys.iswindows() |
21 | | - cp("../stdlib/DelimitedFiles/docs/src/index.md", "src/stdlib/delimitedfiles.md") |
22 | | - cp("../stdlib/Test/docs/src/index.md", "src/stdlib/test.md") |
| 24 | + cp_q("../stdlib/DelimitedFiles/docs/src/index.md", "src/stdlib/delimitedfiles.md") |
| 25 | + cp_q("../stdlib/Test/docs/src/index.md", "src/stdlib/test.md") |
| 26 | + cp_q("../stdlib/Mmap/docs/src/index.md", "src/stdlib/mmap.md") |
| 27 | + cp_q("../stdlib/SharedArrays/docs/src/index.md", "src/stdlib/sharedarrays.md") |
23 | 28 | else |
24 | | - symlink("../../../stdlib/DelimitedFiles/docs/src/index.md", "src/stdlib/delimitedfiles.md") |
25 | | - symlink("../../../stdlib/Test/docs/src/index.md", "src/stdlib/test.md") |
| 29 | + symlink_q("../../../stdlib/DelimitedFiles/docs/src/index.md", "src/stdlib/delimitedfiles.md") |
| 30 | + symlink_q("../../../stdlib/Test/docs/src/index.md", "src/stdlib/test.md") |
| 31 | + symlink_q("../../../stdlib/Mmap/docs/src/index.md", "src/stdlib/mmap.md") |
| 32 | + symlink_q("../../../stdlib/SharedArrays/docs/src/index.md", "src/stdlib/sharedarrays.md") |
26 | 33 | end |
27 | 34 |
|
28 | 35 | const PAGES = [ |
@@ -126,11 +133,11 @@ const PAGES = [ |
126 | 133 | ], |
127 | 134 | ] |
128 | 135 |
|
129 | | -using DelimitedFiles, Test |
| 136 | +using DelimitedFiles, Test, Mmap, SharedArrays |
130 | 137 |
|
131 | 138 | makedocs( |
132 | 139 | build = joinpath(pwd(), "_build/html/en"), |
133 | | - modules = [Base, Core, BuildSysImg, DelimitedFiles, Test], |
| 140 | + modules = [Base, Core, BuildSysImg, DelimitedFiles, Test, Mmap, SharedArrays], |
134 | 141 | clean = false, |
135 | 142 | doctest = "doctest" in ARGS, |
136 | 143 | linkcheck = "linkcheck" in ARGS, |
|
0 commit comments