A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/eslint/eslint/commit/2aadc93272f1ab7f40246c6b18c4056660f2b3a2 below:

add anchors to headings inside docs content (#16134) · eslint/eslint@2aadc93 · GitHub

File tree Expand file treeCollapse file tree 2 files changed

+5

-0

lines changed

Filter options

Expand file treeCollapse file tree 2 files changed

+5

-0

lines changed Original file line number Diff line number Diff line change

@@ -121,6 +121,7 @@

121 121

<script type="module" src="{{ '/assets/js/search.js' | url }}"></script>

122 122

<link rel="stylesheet" type="text/css" href="{{ '/assets/css/styles.css' | url }}">

123 123

<link rel="stylesheet" href="{{ '/assets/css/print.css' | url }}" media="print">

124 +

<script src="https://unpkg.com/anchor-js@4.3.1/anchor.min.js"></script>

124 125

</head>

125 126 126 127

<body class="{{ hook }} docs">

Original file line number Diff line number Diff line change

@@ -276,3 +276,7 @@ if (index) {

276 276

allCollapsed: false

277 277

});

278 278

}

279 + 280 +

document.addEventListener("DOMContentLoaded", () => {

281 +

anchors.add(".docs-content h2:not(.c-toc__label), .docs-content h3, .docs-content h4");

282 +

});

You can’t perform that action at this time.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4