Skip to content

Commit 7e635f7

Browse files
committed
Fix DMDSRC and allow a PROJECT_SOURCE_DIR to be set by DMD
1 parent d40ea48 commit 7e635f7

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

dlang.org.ddoc

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ DDOCKEYVAL2=$(DIVC keyval $1, $(SPANC key key$1, $2:) $(DIVC val val$1, $(TAIL $
136136
DDSUBLINK=$(LINK2 $(ROOT_DIR)$1.html#$2, $3)
137137
_=
138138

139-
DMDSRC=$(HTTPS github.com/D-Programming-Language/dmd/blob/master/src/$0, $0)
139+
DMDSRC=$(HTTPS github.com/dlang/dmd/blob/master/src/dmd/$0, $0)
140140
DOT_PREFIXED=.$1$(DOT_PREFIXED $+)
141141
DOT_PREFIXED_SKIP=$(DOT_PREFIXED $+)
142142
DRUNTIMESRC=$(HTTPS github.com/dlang/druntime/blob/master/src/$0, $0)
@@ -282,7 +282,7 @@ $(DIVID tools, $(DIV,
282282
)
283283
)
284284
$(DIVC tip smallprint,
285-
<a href="https://github.com/dlang/$(PROJECT)/edit/master/$(SRCFILENAME)">Improve this page</a>
285+
<a href="https://github.com/dlang/$(PROJECT)/edit/master/$(PROJECT_SOURCE_DIR)$(SRCFILENAME)">Improve this page</a>
286286
$(DIV,
287287
Quickly fork, edit online, and submit a pull request for this page.
288288
Requires a signed-in GitHub account. This works well for small changes.
@@ -486,4 +486,6 @@ _=
486486

487487
YELLOW=$(SPANC yellow, $0)
488488
YES=$(CHECKMARK)
489+
490+
PROJECT_SOURCE_DIR=
489491
_=

0 commit comments

Comments
 (0)