File tree Expand file tree Collapse file tree 9 files changed +24
-18
lines changed Expand file tree Collapse file tree 9 files changed +24
-18
lines changed Original file line number Diff line number Diff line change @@ -11,7 +11,6 @@ Make sure you have these prerequisites working:
11
11
* The C++ compiler for your platform (invokable as ` gcc ` )
12
12
* Optional: ` latex ` for building the pdf documentation
13
13
* Optional: ` kindlegen ` for building the Kindle documentation
14
- * If you're running OSX, make sure you have some version of ` libevent ` installed (needed for Ddox)
15
14
16
15
## Getting the code
17
16
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " dpl-docs" ,
3
3
"dependencies" : {
4
- "ddox" : " ~>0.15.0 "
4
+ "ddox" : " ~>0.16.7 "
5
5
},
6
- "versions" : [" VibeCustomMain" , " VibeNoSSL" ]
6
+ "versions" : [" VibeNoSSL" ],
7
+ "subConfigurations" : { "eventcore" : " libasync" }
7
8
}
Original file line number Diff line number Diff line change 1
1
{
2
2
"fileVersion" : 1 ,
3
3
"versions" : {
4
- "ddox" : " 0.15.18" ,
5
- "experimental_allocator" : " 2.70.0-b1" ,
4
+ "botan" : " 1.12.9" ,
5
+ "botan-math" : " 1.0.3" ,
6
+ "ddox" : " 0.16.7" ,
7
+ "diet-ng" : " 1.4.3" ,
8
+ "eventcore" : " 0.8.17" ,
6
9
"hyphenate" : " 1.1.1" ,
7
10
"libasync" : " 0.8.3" ,
8
- "libdparse" : " 0.7.0" ,
9
- "libev" : " 5.0.0+4.04" ,
11
+ "libdparse" : " 0.7.1" ,
10
12
"libevent" : " 2.0.2+2.0.16" ,
11
13
"memutils" : " 0.4.9" ,
12
- "vibe-d" : " 0.7.31"
14
+ "openssl" : " 1.1.5+1.0.1g" ,
15
+ "taggedalgebraic" : " 0.10.7" ,
16
+ "vibe-core" : " 1.2.0" ,
17
+ "vibe-d" : " 0.8.1"
13
18
}
14
19
}
Original file line number Diff line number Diff line change @@ -16,5 +16,7 @@ int main(string[] args)
16
16
environment[" GIT_TARGET" ] = git_target;
17
17
environment[" NO_EXACT_SOURCE_CODE_LINKS" ] = noExactSourceCodeLinks ? " 1" : " 0" ;
18
18
setLogFormat(FileLogger.Format.plain);
19
+ if (args.length > 1 && args[1 ] != " filter" )
20
+ args ~= " --html-style=pretty" ;
19
21
return ddoxMain (args);
20
22
}
Original file line number Diff line number Diff line change 1
1
- import ddox.entities;
2
2
3
- - Module getPackageModule(Package pack)
4
- - import std.algorithm : find;
5
- - if (auto pp = cast(Package)pack.parent)
6
- - return pp.lookup!Module(pack.name);
7
- - return null;
8
-
9
3
- void moduleNavTree(Package pack, Module pack_mod)
10
4
- string pack_class = "expand-container";
11
5
- foreach(i, p; pack.packages)
Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ block title
5
5
block ddox.title
6
6
7
7
block navigation
8
+ include ddox.inc.utils
8
9
include ddox.inc.module-tree
9
10
10
11
block body
Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ block ddox.title
7
7
- title = "API documentation";
8
8
9
9
block ddox.members
10
+ - import std.conv : to;
10
11
11
12
- void moduleInfoRec(Package pack)
12
13
- foreach( p; pack.packages )
@@ -16,7 +17,7 @@ block ddox.members
16
17
tr
17
18
td
18
19
a(href="#{info.linkTo(m)}")
19
- code!= m.qualifiedName.replace(".", "<wbr/>.")
20
+ code!= m.qualifiedName.to!string. replace(".", "<wbr/>.")
20
21
td
21
22
- if( m.docGroup )
22
23
|!= info.formatDoc(m.docGroup, 0, sec => sec == "$Short")
@@ -27,7 +28,7 @@ block ddox.members
27
28
- foreach( m; pack.modules )
28
29
- if (m.qualifiedName.startsWith(prefix))
29
30
a(href="#{info.linkTo(m)}")
30
- code!= m.qualifiedName.replace(".", "<wbr/>.")
31
+ code!= m.qualifiedName.to!string. replace(".", "<wbr/>.")
31
32
32
33
table
33
34
col.caption
Original file line number Diff line number Diff line change
1
+ - import std.conv : text;
1
2
div#disqus_thread
2
3
script(language="javascript").
3
4
var disqus_shortname = 'vibe-d'; // required: replace example with your forum shortname
4
5
var disqus_developer = 1;
5
- var disqus_identifier = #{"\\\" phobos-" ~ info.node.qualifiedName ~ "\\\"" };
6
+ var disqus_identifier = #{text(`" phobos-`, info.node.qualifiedName.text, `"`) };
6
7
7
8
8
9
/* * * DON'T EDIT BELOW THIS LINE * * */
Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ html(lang='en-US')
7
7
| All Rights Reserved.
8
8
| https://dlang.org/foundation.html
9
9
- import std.process : environment;
10
+ - import std.array : replace;
10
11
- string version_id = environment["GIT_TARGET"];
11
12
- bool noExactSourceCodeLinks = environment["NO_EXACT_SOURCE_CODE_LINKS"] == "1";
12
13
- bool haveVersion = version_id.startsWith("v");
@@ -51,7 +52,7 @@ html(lang='en-US')
51
52
span Documentation
52
53
ul
53
54
li
54
- a(href="#{root_dir}spec/spec.html")Language Reference
55
+ a(href="#{root_dir}spec/spec.html") Language Reference
55
56
li
56
57
a(href="#{root_dir}phobos/index.html") Library Reference
57
58
li
@@ -159,6 +160,7 @@ html(lang='en-US')
159
160
#content.hyphenate
160
161
#tools
161
162
div
163
+ - import ddox.entities : Declaration;
162
164
- auto modname = info.node.moduleName;
163
165
- string project = "dlang.org";
164
166
- string path_prefix, line_suffix, filename;
You can’t perform that action at this time.
0 commit comments