Skip to content

Commit bfc1b6e

Browse files
committed
(#798) Add AnchorJS anchors to list items
This adds anchors to list items that contain a <strong> or a <code> node directly after an opening <li> tag. This is to make it easier to navigate to these items, as often times this format is used more as a "definition", or something we'd want to potentially link to. No changes to current markdown is needed, as this intended to just "work". All changes for this functionality live in choco-theme and will be documented in the Choco Design System.
1 parent 5289f53 commit bfc1b6e

File tree

3 files changed

+455
-334
lines changed

3 files changed

+455
-334
lines changed

input/_Layout.cshtml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,7 @@
265265
</div>
266266
<div class="container">
267267
<div class="row">
268-
<div id="mainContent" class="col-xl-10 order-2 order-xl-1">
268+
<div id="mainContent" class="anchorjs-container col-xl-10 order-2 order-xl-1">
269269
<div class="d-none d-xl-block">
270270
@Html.Partial("_Breadcrumbs")
271271
</div>

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
},
1313
"homepage": "https://github.com/chocolatey/docs#readme",
1414
"devDependencies": {
15-
"choco-theme": "0.5.8"
15+
"choco-theme": "0.5.11"
1616
},
1717
"resolutions": {
1818
"glob-parent": "^6.0.2",

0 commit comments

Comments
 (0)