Skip to content

Commit

Permalink
Fix #40: build-docs shouldn't rely on specific dir layout for deps.
Browse files Browse the repository at this point in the history
  • Loading branch information
Abscissa committed Jul 16, 2018
1 parent e3de0eb commit 31bfc72
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ SDLang-D - ChangeLog
v0.10.5 - TBD
---------------------
- **New:**: Eliminate libInputVisitor dependency, use Phobos Generator instead.
- **Fixed:** [#40](https://github.com/Abscissa/SDLang-D/issues/40):
The build-docs script shouldn't rely on specific dir layout for deps.

v0.10.4 - 2018-07-15
---------------------
Expand Down
3 changes: 2 additions & 1 deletion build-docs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#!/bin/sh
rdmd --build-only -c -Isrc -I../taggedalgebraic/source -Dddocs_tmp -X -Xfdocs/docs.json --force src/sdlang/package.d
IMPORT_PATHS=`dub describe --data=import-paths`
rdmd --build-only -c -Isrc $IMPORT_PATHS -Dddocs_tmp -X -Xfdocs/docs.json --force src/sdlang/package.d
rm -rf docs_tmp
rm src/sdlang/package
ddox filter docs/docs.json --ex sdlang.lexer --ex sdlang.symbol --ex taggedalgebraic --min-protection Public
Expand Down
5 changes: 3 additions & 2 deletions build-docs.bat
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
@echo off
rdmd --build-only -c -Isrc -I../libInputVisitor -I../taggedalgebraic/source -Dddocs_tmp -X -Xfdocs/docs.json --force src/sdlang/package.d
for /f %%i in ('dub describe --data=import-paths') do set IMPORT_PATHS=%%i
rdmd --build-only -c %IMPORT_PATHS% -Dddocs_tmp -X -Xfdocs/docs.json --force src/sdlang/package.d
rmdir /S /Q docs_tmp > NUL 2> NUL
del src\sdlang\package.exe
ddox filter docs/docs.json --ex sdlang.lexer --ex sdlang.symbol --ex libInputVisitor --ex taggedalgebraic --min-protection Public
ddox filter docs/docs.json --ex sdlang.lexer --ex sdlang.symbol --ex taggedalgebraic --min-protection Public
ddox generate-html docs/docs.json docs/public --navigation-type=ModuleTree --override-macros=ddoc/macros.ddoc

0 comments on commit 31bfc72

Please sign in to comment.