mirror of
https://github.com/caddyserver/website.git
synced 2025-04-21 12:36:16 -04:00
docs: Add SPA page for listing modules by their ID
This commit is contained in:
parent
0834562c9b
commit
ca8197d483
14 changed files with 565 additions and 392 deletions
|
@ -11,6 +11,10 @@ $(function() {
|
|||
// as a special case, highlight the JSON structure link anywhere within it
|
||||
$currentPageLink = $('main nav a[href="/docs/json/"]');
|
||||
}
|
||||
if (hasPrefix(window.location.pathname, "/docs/modules/")) {
|
||||
// as another special case, highlight the modules link anywhere within it
|
||||
$currentPageLink = $('main nav a[href="/docs/modules/"]');
|
||||
}
|
||||
$currentPageLink.addClass('current');
|
||||
|
||||
// add anchor links, inspired by https://github.com/bryanbraun/anchorjs
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue