Skip to content

Commit 19e5739

Browse files
committed
Insert an 'Internal API' divider before the dmd menu item
1 parent 488d0ce commit 19e5739

File tree

3 files changed

+16
-2
lines changed

3 files changed

+16
-2
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,  — )
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, $+)

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)