Skip to content

Commit 27ea51f

Browse files
committed
docs: Fix building docs, and update ddox.
1 parent 50c7eb4 commit 27ea51f

File tree

66 files changed

+470
-214
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

66 files changed

+470
-214
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ Update from `vibe-d:core` to `vibe-core`, and various other improvements.
2323
- **Tests:** Fixed: USE_UNIT_THREADED envar doen't actually use unit-threaded.
2424
- **Tests:** Better diagnostics when using alternate `dub.selections.json`. (@SingingBush)
2525
- **Docs:** Add documentation and CI-related policies to `.travis.yml`.
26+
- **Docs:** Update modified ddox from 0.16.6 to 0.16.12.
2627
- **Internal:** [#212](https://github.com/mysql-d/mysql-native/issues/212):
2728
Add [.editorconfig](https://editorconfig.org/) file. (@schveiguy)
2829

build-docs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,13 @@
11
#!/bin/sh
2+
3+
# Please use DMD 2.077.1 or below when building the documentation.
4+
#
5+
# DMD 2.078.0 and up causes lots of duplicated symbols in the documentation.
6+
# (See: https://github.com/rejectedsoftware/ddox/issues/208 )
7+
#
8+
# DMD 2.086.0 and up cause errors when building the docs because
9+
# gen-package-version and Scriptlike need updated.
10+
211
rdmd --build-only -c -Isource -Dddocs_tmp -X -Xfdocs/docs.json -version=MySQLDocs --force source/mysql/package.d
312
rm -rf docs_tmp
413
rm source/mysql/package.o

build-docs.bat

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,13 @@
11
@echo off
2+
3+
rem Please use DMD 2.077.1 or below when building the documentation.
4+
rem
5+
rem DMD 2.078.0 and up causes lots of duplicated symbols in the documentation.
6+
rem (See: https://github.com/rejectedsoftware/ddox/issues/208 )
7+
rem
8+
rem DMD 2.086.0 and up cause errors when building the docs because
9+
rem gen-package-version and Scriptlike need updated.
10+
211
rdmd --build-only -c -Isource -Dddocs_tmp -X -Xfdocs/docs.json -version=MySQLDocs --force source/mysql/package.d
312
rmdir /S /Q docs_tmp > NUL 2> NUL
413
del source\mysql\package.obj

ddox/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
/ddox
33
/__*
44
node_modules
5+
ddox-test-library
56
test/screenshots/*.diff.png
67
test/screenshots/*.fail.png
78
tests/*/test.json

ddox/.travis.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,9 @@
11
language: d
2-
services:
3-
- docker
2+
d: dmd-2.078.1
43
addons:
54
apt:
65
packages:
76
- libevent-dev
87
- libssl-dev
9-
- pkg-config
10-
- zlib1g-dev
118

129
script: ./travis-ci.sh

ddox/README-mysql-native.txt

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,10 @@
11
This copy of DDOX is included in the mysql-native repository for
22
mysql-native's convenience.
33

4-
This is based on DDOX's 'v0.16.6' tag, with the following changes:
4+
This is based on DDOX's 'v0.16.12' tag, with the following changes:
55

66
- Added this 'README-mysql-native.txt' file.
77

8-
- Modified 'dub.sdl' to include the version identifier 'VibeUseOpenSSL11' so
9-
it will succesfully link on my machine (Workaround DDOX Issue #186)
10-
118
- Modified 'layout.dt' and 'ddox.layout.dt' for mysql-native's purposes.
129
(Workaround DDOX Issue #88)
1310

ddox/dub.sdl

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,16 @@ license "MIT"
66

77
dependency "vibe-d:web" version=">=0.7.31 <0.9.0"
88
dependency "hyphenate" version="~>1.1.0"
9-
dependency "libdparse" version="~>0.7.0"
9+
dependency "libdparse" version="~>0.8.0"
1010

11-
versions "JsonLineNumbers" "VibeUseOpenSSL11"
11+
configuration "application" {
12+
targetType "executable"
13+
// Temporarily disabled to work around dlang/dub#1407
14+
// mainSourceFile "source/app.d"
15+
versions "JsonLineNumbers" "VibeNoSSL"
16+
}
17+
18+
configuration "library" {
19+
targetType "library"
20+
excludedSourceFiles "source/app.d"
21+
}

ddox/dub.selections.json

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,20 @@
11
{
22
"fileVersion": 1,
33
"versions": {
4-
"botan": "1.12.9",
4+
"botan": "1.12.10",
55
"botan-math": "1.0.3",
6-
"diet-ng": "1.4.3",
7-
"eventcore": "0.8.17",
6+
"diet-ng": "1.5.0",
7+
"eventcore": "0.8.35",
88
"hyphenate": "1.1.1",
99
"libasync": "0.8.3",
10-
"libdparse": "0.7.1",
10+
"libdparse": "0.8.7",
1111
"libevent": "2.0.2+2.0.16",
12-
"memutils": "0.4.9",
13-
"openssl": "1.1.5+1.0.1g",
14-
"taggedalgebraic": "0.10.7",
15-
"vibe-core": "1.2.0",
16-
"vibe-d": "0.8.1"
12+
"memutils": "0.4.11",
13+
"mir-linux-kernel": "1.0.0",
14+
"openssl": "1.1.6+1.0.1g",
15+
"stdx-allocator": "2.77.2",
16+
"taggedalgebraic": "0.10.11",
17+
"vibe-core": "1.4.0",
18+
"vibe-d": "0.8.4"
1719
}
1820
}

ddox/source/ddox/api.d

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ string getAttributeString(Declaration decl, AttributeStringKind kind)
247247

248248
enum AttributeStringKind { normal, functionPrefix, functionSuffix }
249249

250-
string[] declStyleClasses(Declaration decl)
250+
auto declStyleClasses(Declaration decl)
251251
{
252252
string[] ret;
253253
ret ~= decl.protection.to!string().toLower();
@@ -257,7 +257,7 @@ string[] declStyleClasses(Declaration decl)
257257
if (tdecl.type.attributes.canFind("@property")) ret ~= "property";
258258
if (tdecl.type.attributes.canFind("static")) ret ~= "static";
259259
}
260-
return ret;
260+
return ret.join(" ");
261261
}
262262

263263
string formatType()(CachedType type, scope string delegate(in Entity) link_to, bool include_code_tags = true)
@@ -380,6 +380,10 @@ void renderTemplateArgs(R)(ref R output, Declaration decl, scope string delegate
380380
output.put(' ');
381381
}
382382
output.put(arg.name);
383+
if (arg.specValue.length) {
384+
output.highlightDCode(" : ");
385+
output.highlightDCode(arg.specValue);
386+
}
383387
if (arg.defaultValue.length) {
384388
output.highlightDCode(" = ");
385389
output.highlightDCode(arg.defaultValue);

ddox/source/ddox/ddoc.d

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ class DdocComment {
207207

208208
foreach (s; m_sections) {
209209
if (display_section && !display_section(s.name)) continue;
210-
parseSection(dst, s.name, s.lines, context, hlevel, allmacros);
210+
parseSection(dst, s.name, s.lines.dup, context, hlevel, allmacros);
211211
}
212212
}
213213

0 commit comments

Comments
 (0)