Skip to content

Commit 7fcd7db

Browse files
authored
Merge pull request #1601 from wilzbach/update-dmd-link
Fix dmd source links for DDoc and DDox merged-on-behalf-of: unknown
2 parents d40ea48 + dc1c2b3 commit 7fcd7db

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-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
_=

dpl-docs/views/layout.dt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,8 @@ html(lang='en-US')
165165
- if( modname )
166166
- if( modname.startsWith("core.") )
167167
- project = "druntime", path_prefix = "src/";
168+
- else if( modname.startsWith("dmd.") || modname.startsWith("ddmd.") )
169+
- project = "dmd", path_prefix = "src/";
168170
- else
169171
- project = "phobos", path_prefix = "";
170172
- if (info.docGroups.length >= 1 && !noExactSourceCodeLinks)

0 commit comments

Comments
 (0)