From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 8FE9215814C for ; Sun, 22 Oct 2023 11:44:49 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id D89252BC02D; Sun, 22 Oct 2023 11:44:48 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id B99B52BC02D for ; Sun, 22 Oct 2023 11:44:48 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id D1DA4335CA6 for ; Sun, 22 Oct 2023 11:44:47 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 7DFF0E88 for ; Sun, 22 Oct 2023 11:44:46 +0000 (UTC) From: "Ulrich Müller" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Ulrich Müller" Message-ID: <1697964813.5fb4841a76b2dcfc5ec0e464f6aec698eb21a5ac.ulm@gentoo> Subject: [gentoo-commits] proj/devmanual:master commit in: / X-VCS-Repository: proj/devmanual X-VCS-Files: devbook.rnc devbook.rng devbook.xsl X-VCS-Directories: / X-VCS-Committer: ulm X-VCS-Committer-Name: Ulrich Müller X-VCS-Revision: 5fb4841a76b2dcfc5ec0e464f6aec698eb21a5ac X-VCS-Branch: master Date: Sun, 22 Oct 2023 11:44:46 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 2a689382-16b8-4a4b-9700-3555d2ed394c X-Archives-Hash: 69f1f79151b07b2ff479c7cb4c641683 commit: 5fb4841a76b2dcfc5ec0e464f6aec698eb21a5ac Author: Ulrich Müller gentoo org> AuthorDate: Sat Oct 21 16:27:05 2023 +0000 Commit: Ulrich Müller gentoo org> CommitDate: Sun Oct 22 08:53:33 2023 +0000 URL: https://gitweb.gentoo.org/proj/devmanual.git/commit/?id=5fb4841a devbook.xsl: Support type and start attributes for ordered lists Simply copy them to the HTML output. Signed-off-by: Ulrich Müller gentoo.org> devbook.rnc | 14 +++++++++++--- devbook.rng | 13 ++++++++++++- devbook.xsl | 7 ++++++- 3 files changed, 29 insertions(+), 5 deletions(-) diff --git a/devbook.rnc b/devbook.rnc index 9fe44b8..158f372 100644 --- a/devbook.rnc +++ b/devbook.rnc @@ -1,4 +1,4 @@ -# Copyright 2022 Gentoo Authors +# Copyright 2022-2023 Gentoo Authors # Distributed under the terms of the MIT license # or the CC-BY-SA-4.0 license (dual-licensed) @@ -93,8 +93,16 @@ ti = element ti { all } -ul = element ul { attribute class { "list-group" }?, li+ } -ol = element ol { li+ } +ul = element ul { + attribute class { "list-group" }?, + li+ +} + +ol = element ol { + attribute type { "1" | "A" | "a" | "I" | "i" }?, + li+ +} + li = element li { all } dl = element dl { (dt | dd)+ } diff --git a/devbook.rng b/devbook.rng index cfca2b4..c3c616f 100644 --- a/devbook.rng +++ b/devbook.rng @@ -2,7 +2,7 @@ @@ -326,6 +326,17 @@ + + + + 1 + A + a + I + i + + + diff --git a/devbook.xsl b/devbook.xsl index 9289eab..426b2fd 100644 --- a/devbook.xsl +++ b/devbook.xsl @@ -186,7 +186,12 @@ -
+
    + + + + +