From 2639f28a27a4ec1379d43b1dbfc99d64cca0eb94 Mon Sep 17 00:00:00 2001 From: Francis Lavoie Date: Thu, 7 Sep 2023 14:00:30 -0400 Subject: [PATCH] options: Fix PKI name link --- src/docs/markdown/caddyfile/options.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/docs/markdown/caddyfile/options.md b/src/docs/markdown/caddyfile/options.md index 273d502..65b557f 100644 --- a/src/docs/markdown/caddyfile/options.md +++ b/src/docs/markdown/caddyfile/options.md @@ -24,6 +24,12 @@ $(function() { let url = '#' + text.replace(/#/g, '').trim().toLowerCase().replace(/ /g, "-"); $(item).html(before + '' + text + ''); }); + // Surgically fix a duplicate link; 'name' appears twice as a link + // for two different sections, so we change the second to #name-1 + $('pre.chroma .line:contains("ca []")') + .next() + .find('a:contains("name")') + .attr('href', '#name-1'); });