From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from firstgate.proxmox.com (firstgate.proxmox.com [IPv6:2a01:7e0:0:424::9]) by lore.proxmox.com (Postfix) with ESMTPS id 4FBDD1FF183 for ; Wed, 13 Aug 2025 12:05:40 +0200 (CEST) Received: from firstgate.proxmox.com (localhost [127.0.0.1]) by firstgate.proxmox.com (Proxmox) with ESMTP id A5222306C5; Wed, 13 Aug 2025 12:07:19 +0200 (CEST) From: Christoph Heiss To: pmg-devel@lists.proxmox.com Date: Wed, 13 Aug 2025 12:06:35 +0200 Message-ID: <20250813100639.368876-2-c.heiss@proxmox.com> X-Mailer: git-send-email 2.50.1 In-Reply-To: <20250813100639.368876-1-c.heiss@proxmox.com> References: <20250813100639.368876-1-c.heiss@proxmox.com> MIME-Version: 1.0 X-Bm-Milter-Handled: 55990f41-d878-4baa-be0a-ee34c49e34d2 X-Bm-Transport-Timestamp: 1755079573510 X-SPAM-LEVEL: Spam detection results: 0 AWL -0.964 Adjusted score from AWL reputation of From: address BAYES_00 -1.9 Bayes spam probability is 0 to 1% DMARC_MISSING 0.1 Missing DMARC policy KAM_DMARC_STATUS 0.01 Test Rule for DKIM or SPF Failure with Strict Alignment KAM_MAILER 2 Automated Mailer Tag Left in Email SPF_HELO_NONE 0.001 SPF: HELO does not publish an SPF Record SPF_PASS -0.001 SPF: sender matches SPF record Subject: [pmg-devel] [PATCH pmg-docs 1/2] fix #6656: asciidoc: add anchor links for paragraphs with ids X-BeenThere: pmg-devel@lists.proxmox.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: Proxmox Mail Gateway development discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: pmg-devel-bounces@lists.proxmox.com Sender: "pmg-devel" Fixes [0]. All paragraphs with have `id` tags will now have an anchor (shown on hover) besides their title, thus making these sections easily linkable somewhere else. [0] https://bugzilla.proxmox.com/show_bug.cgi?id=6656 [1] https://lore.proxmox.com/pve-devel/20250812095637.444463-1-c.heiss@proxmox.com/T/#u Signed-off-by: Christoph Heiss --- asciidoc/pmg-docs.css | 3 ++- asciidoc/pmg-html.conf | 7 +++++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/asciidoc/pmg-docs.css b/asciidoc/pmg-docs.css index 756b10d..92f4ef8 100644 --- a/asciidoc/pmg-docs.css +++ b/asciidoc/pmg-docs.css @@ -58,7 +58,8 @@ h2:hover > a.headerlink, h3:hover > a.headerlink, h4:hover > a.headerlink, h5:hover > a.headerlink, -h6:hover > a.headerlink { +h6:hover > a.headerlink, +div[class="paragraph"][id]:hover a.headerlink { visibility: visible; } diff --git a/asciidoc/pmg-html.conf b/asciidoc/pmg-html.conf index 40dae57..6bb5671 100644 --- a/asciidoc/pmg-html.conf +++ b/asciidoc/pmg-html.conf @@ -311,9 +311,12 @@ endif::deprecated-quotes[] {thumbnail#}{float@right: style="padding\: 0 0 0 10px;float\:right;"} {thumbnail#}{big%}{float%} style="padding: 0 0 0 10px;float:right;" {thumbnail#}> -{title?
{title}
}

+{title?

{title}
} +

| -

+{id? } +

+ [admonitionparagraph] template::[admonitionblock] -- 2.50.1 _______________________________________________ pmg-devel mailing list pmg-devel@lists.proxmox.com https://lists.proxmox.com/cgi-bin/mailman/listinfo/pmg-devel