-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathmakedocs
executable file
·25 lines (23 loc) · 1.12 KB
/
makedocs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#!/bin/sh
echo "Note, generating Scriptlike's docs requires that dub"
echo "<http://code.dlang.org/download> be available on your PATH."
echo
echo "You must also have ddox and gen-package-version available through dub:"
echo "$ dub fetch ddox --version=0.15.18"
echo "$ dub fetch gen-package-version --version=1.0.5"
echo "or:"
echo "$ dub add-local [path/to/ddox]"
echo "$ dub add-local [path/to/gen-package-version]"
echo
echo "You may need to remove any older versions installed"
echo "so they don't get run instead."
echo
echo "If you get errors, double-check you have dub, ddox and gen-package-version"
echo "all installed as described above."
echo
dub run gen-package-version -- scriptlike --src=src --ddoc=ddoc
rdmd -Isrc -Iddoc --build-only --force -c -Dddocs_tmp -X -Xfdocs/docs.json -version=docs_scriptlike_d src/scriptlike/package.d
rm -rf docs_tmp
rm src/scriptlike/package.o
dub run ddox -- filter docs/docs.json --min-protection=Protected --ex=scriptlike.packageVersion
dub run ddox -- generate-html docs/docs.json docs/public --navigation-type=ModuleTree --override-macros=ddoc/macros.ddoc --override-macros=ddoc/packageVersion.ddoc