Is it possible to add anchor links to sections like with the QA Policy? (e.g. https://projects.gentoo.org/qa/policy-guide/dependencies.html#pg0002). Note that it is possible to link to specific sections already - we just don't have an actual indicator for them, e.g. https://devmanual.gentoo.org/general-concepts/mirrors/index.html#automatic-mirroring.
Created attachment 688095 [details, diff] Patch for XSL and CSS stylesheets Yes, that could be done with CSS. Please test if attached patch does what you want.
Note that I've omitted the chapter headings. Since there is exactly one chapter per page, its address is always equal to the page address which is readily available.
Created attachment 688101 [details, diff] Patch for XSL and CSS stylesheets v2 Patch v2: - Use link icon from Font Awesome - Remove some code duplication
Comment on attachment 688101 [details, diff] Patch for XSL and CSS stylesheets v2 https://github.com/gentoo/devmanual/pull/195 now.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/proj/devmanual.git/commit/?id=ca88a7b371840409a3f3788da5365d968a55118e commit ca88a7b371840409a3f3788da5365d968a55118e Author: Ulrich Müller <ulm@gentoo.org> AuthorDate: 2021-02-22 22:02:43 +0000 Commit: Ulrich Müller <ulm@gentoo.org> CommitDate: 2021-02-25 19:06:13 +0000 devbook.xsl, devmanual.css: Add permalinks to section headers While we use empty fragments ("#") elsewhere for navigation within the document (because they don't cause reloading of the page), we use an empty href ("") for the chapter because it is meant to be copied as an external link. Closes: https://bugs.gentoo.org/772005 Suggested-by: Sam James <sam@gentoo.org> Signed-off-by: Ulrich Müller <ulm@gentoo.org> devbook.xsl | 6 +++++- devmanual.css | 14 ++++++++++++++ 2 files changed, 19 insertions(+), 1 deletion(-)