Skip to content

Commit 74f82af

Browse files
committed
Found a way to avoid maintaining a separate dub file for docs.
1 parent 31a768f commit 74f82af

File tree

3 files changed

+6
-9
lines changed

3 files changed

+6
-9
lines changed

.github/workflows/docs.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,6 @@ jobs:
2929
# run ddox directly instead with the same command line, including
3030
# our custom macro file
3131
32-
# need to use the docs recipe file. This includes the required versions
33-
cp dub-docs.sdl dub.sdl
3432
# build original docs, this gets the json file properly set up
3533
dub build -b ddox
3634
# remove docs generated without macro file

dub-docs.sdl

Lines changed: 0 additions & 7 deletions
This file was deleted.

dub.sdl

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,3 +20,9 @@ configuration "unittest" {
2020
debugVersions "MYSQLN_TESTS"
2121
targetType "sourceLibrary"
2222
}
23+
24+
buildType "ddox" {
25+
dflags "-c" "-Df__dummy.html" "-Xfdocs.json"
26+
versions "MySQLDocs"
27+
buildOptions "syntaxOnly"
28+
}

0 commit comments

Comments
 (0)