Skip to content

Commit 18b6199

Browse files
authored
Merge pull request #12153 from hasezoey/addCodeToSidebar
docs(api_split.pug): add "code" to sidebar entries
2 parents da80e5b + 97be3cf commit 18b6199

2 files changed

Lines changed: 5 additions & 1 deletion

File tree

docs/api_split.pug

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ block content
3333
each prop in item.props
3434
li
3535
a(href='#' + prop.anchorId)
36-
| #{prop.string}
36+
| <code>#{prop.string}</code>
3737
- else
3838
div.nav-item-title
3939
a(href=item.name.toLowerCase() + '.html')

docs/css/api.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,10 @@
3232
font-size: 0.66em;
3333
}
3434

35+
.nav-item-sub > li {
36+
padding: 2px 0px;
37+
}
38+
3539
.api-nav ul {
3640
margin-top: 0.25em;
3741
padding-left: 1em;

0 commit comments

Comments
 (0)