Skip to content

Commit

Permalink
(chocolatey#798) Add AnchorJS anchors to list items
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
st3phhays committed Aug 1, 2023
1 parent 5289f53 commit bfc1b6e
Show file tree
Hide file tree
Showing 3 changed files with 455 additions and 334 deletions.
2 changes: 1 addition & 1 deletion input/_Layout.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@
</div>
<div class="container">
<div class="row">
<div id="mainContent" class="col-xl-10 order-2 order-xl-1">
<div id="mainContent" class="anchorjs-container col-xl-10 order-2 order-xl-1">
<div class="d-none d-xl-block">
@Html.Partial("_Breadcrumbs")
</div>
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
},
"homepage": "https://github.com/chocolatey/docs#readme",
"devDependencies": {
"choco-theme": "0.5.8"
"choco-theme": "0.5.11"
},
"resolutions": {
"glob-parent": "^6.0.2",
Expand Down
Loading

0 comments on commit bfc1b6e

Please sign in to comment.