From: Christoph Heiss <c.heiss@proxmox.com>
To: pve-devel@lists.proxmox.com
Subject: [pve-devel] [PATCH docs 4/5] fix #6656: asciidoc: add anchor links for paragraphs with ids
Date: Tue, 12 Aug 2025 11:56:28 +0200 [thread overview]
Message-ID: <20250812095637.444463-5-c.heiss@proxmox.com> (raw)
In-Reply-To: <20250812095637.444463-1-c.heiss@proxmox.com>
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
Signed-off-by: Christoph Heiss <c.heiss@proxmox.com>
---
asciidoc/pve-docs.css | 3 ++-
asciidoc/pve-html.conf | 7 +++++--
2 files changed, 7 insertions(+), 3 deletions(-)
diff --git a/asciidoc/pve-docs.css b/asciidoc/pve-docs.css
index a35f762..f584b16 100644
--- a/asciidoc/pve-docs.css
+++ b/asciidoc/pve-docs.css
@@ -89,7 +89,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/pve-html.conf b/asciidoc/pve-html.conf
index f42accd..8c28c01 100644
--- a/asciidoc/pve-html.conf
+++ b/asciidoc/pve-html.conf
@@ -308,9 +308,12 @@ endif::deprecated-quotes[]
{thumbnail#}{float@right: style="padding\: 0 0 0 10px;float\:right;"}
{thumbnail#}{float%} style="padding: 0 0 0 10px;float:right;"
{thumbnail#}></a>
-{title?<div class="title">{title}</div>}<p>
+{title? <div class="title">{title}</div>}
+<p>
|
-</p></div>
+{id? <a class="headerlink" href="#{id}" title="Permalink to this heading"></a>}
+</p>
+</div>
[admonitionparagraph]
template::[admonitionblock]
--
2.50.1
_______________________________________________
pve-devel mailing list
pve-devel@lists.proxmox.com
https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel
next prev parent reply other threads:[~2025-08-12 9:55 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-08-12 9:56 [pve-devel] [PATCH common/docs 0/5] fix #6656: add clickable anchors for cli subcommands Christoph Heiss
2025-08-12 9:56 ` [pve-devel] [PATCH common 1/3] gitignore: add rules for more build artifacts Christoph Heiss
2025-09-05 18:45 ` [pve-devel] applied: " Thomas Lamprecht
2025-08-12 9:56 ` [pve-devel] [PATCH common 2/3] cli handler: drop unused subroutine Christoph Heiss
2025-09-05 18:45 ` [pve-devel] applied: " Thomas Lamprecht
2025-08-12 9:56 ` [pve-devel] [PATCH common 3/3] fix #6656: cli handler: generate anchors for all (sub-)commands Christoph Heiss
2025-09-05 18:45 ` [pve-devel] applied: " Thomas Lamprecht
2025-08-12 9:56 ` Christoph Heiss [this message]
2025-09-05 19:06 ` [pve-devel] applied: [PATCH docs 4/5] fix #6656: asciidoc: add anchor links for paragraphs with ids Thomas Lamprecht
2025-08-12 9:56 ` [pve-devel] [PATCH docs 5/5] update generated cli synopsis files Christoph Heiss
2025-09-05 19:06 ` Thomas Lamprecht
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20250812095637.444463-5-c.heiss@proxmox.com \
--to=c.heiss@proxmox.com \
--cc=pve-devel@lists.proxmox.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.