Skip to content

Commit fa3f8c1

Browse files
authored
Merge pull request #2287 from wilzbach/runtime-menu
Expose runtime docs on the released docs merged-on-behalf-of: Vladimir Panteleev <github@thecybershadow.net>
2 parents b413e09 + 19e5739 commit fa3f8c1

File tree

4 files changed

+18
-4
lines changed

4 files changed

+18
-4
lines changed

css/style.css

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2120,3 +2120,17 @@ dt.d_decl:hover .decl_anchor {
21202120
.message-box-green {
21212121
background-color: #4EBA0F;
21222122
}
2123+
2124+
/**
2125+
Custom modifications to the navigation menu
2126+
- Insert an Internal API divider before the dmd menu item
2127+
*/
2128+
.modlist-submenu-dmd::before{
2129+
content: "Internal API";
2130+
display: block;
2131+
height: 1em;
2132+
border-top: 1px solid #ccc;
2133+
margin-top: 1em;
2134+
margin-bottom: 1em;
2135+
padding-top: 0.5em;
2136+
}

dlang.org.ddoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ _=
221221
MDASH=$(T nobr, &#x200A;&mdash;&#x200A;)
222222
METACODE=$(SPANC metacode, $0)
223223
MENU = <li><a href='$1'><span>$+</span></a></li>
224-
MENU_W_SUBMENU = <li class='expand-container'><a class='expand-toggle' href='#'><span>$0</span></a>
224+
MENU_W_SUBMENU = <li class='expand-container modlist-submenu-$1'><a class='expand-toggle' href='#'><span>$(TT $1)</span></a>
225225
MENU_W_SUBMENU_LINK = <li class='expand-container'><a class='expand-toggle' href='$1'><span>$+</span></a>
226226
MENU_W_SUBMENU_END = </li>
227227
MESSAGE_BOX = $(DIVC message-box message-box-$1, $+)

posix.mak

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -416,12 +416,12 @@ ${GENERATED}/${LATEST}.ddoc :
416416
${GENERATED}/modlist-${LATEST}.ddoc : tools/modlist.d ${STABLE_DMD} $(DRUNTIME_LATEST_DIR) $(PHOBOS_LATEST_DIR) $(DMD_LATEST_DIR)
417417
mkdir -p $(dir $@)
418418
$(STABLE_RDMD) $< $(DRUNTIME_LATEST_DIR) $(PHOBOS_LATEST_DIR) $(DMD_LATEST_DIR) $(MOD_EXCLUDES_LATEST) \
419-
$(addprefix --dump , object std etc core) --dump dmd >$@
419+
$(addprefix --dump , object std etc core dmd rt) >$@
420420

421421
${GENERATED}/modlist-release.ddoc : tools/modlist.d ${STABLE_DMD} $(DRUNTIME_DIR) $(PHOBOS_DIR) $(DMD_DIR)
422422
mkdir -p $(dir $@)
423423
$(STABLE_RDMD) $< $(DRUNTIME_DIR) $(PHOBOS_DIR) $(DMD_DIR) $(MOD_EXCLUDES_RELEASE) \
424-
$(addprefix --dump , object std etc core) --dump dmd >$@
424+
$(addprefix --dump , object std etc core dmd rt) >$@
425425

426426
${GENERATED}/modlist-prerelease.ddoc : tools/modlist.d ${STABLE_DMD} $(DRUNTIME_DIR) $(PHOBOS_DIR) $(DMD_DIR)
427427
mkdir -p $(dir $@)

tools/modlist.d

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ struct Tree
3636
void dumpRoot()
3737
{
3838
writeln();
39-
writefln("$(MENU_W_SUBMENU $(TT %s))", name);
39+
writefln("$(MENU_W_SUBMENU %s)", name);
4040
writefln("$(ITEMIZE");
4141
dumpChildren([name]);
4242
writeln(")");

0 commit comments

Comments
 (0)