forked from mysql-d/mysql-native
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild-docs.bat
24 lines (20 loc) · 881 Bytes
/
build-docs.bat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
@echo off
rem Please use DMD 2.077.1 or below when building the documentation.
rem
rem DMD 2.078.0 and up causes lots of duplicated symbols in the documentation.
rem (See: https://github.com/rejectedsoftware/ddox/issues/208 )
rem
rem DMD 2.086.0 and up cause errors when building the docs because
rem gen-package-version and Scriptlike need updated.
rdmd --build-only -c -Isource -Dddocs_tmp -X -Xfdocs/docs.json -version=MySQLDocs --force source/mysql/package.d
rmdir /S /Q docs_tmp > NUL 2> NUL
del source\mysql\package.obj
echo Building ddox...
cd .\ddox
dub build
cd ..
echo Done building ddox...
echo ddox filter...
.\ddox\ddox -- filter docs/docs.json --min-protection Public
echo ddox generate-html...
.\ddox\ddox -- generate-html docs/docs.json docs/public --navigation-type=ModuleTree --override-macros=ddoc/macros.ddoc --override-macros=ddoc/packageVersion.ddoc