Skip to content

Commit f7bb805

Browse files
committed
Add optional rank in <product>
1 parent 8a9f314 commit f7bb805

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

src/docbuild/config/xml/data/product-config-schema.rnc

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -445,6 +445,13 @@ div {
445445
]
446446
attribute family { xsd:IDREF }
447447

448+
ds.rank.attr =
449+
## Rank of this product in the homepage listing (lower ranks are listed first; products with the same rank are sorted alphabetically by product name)
450+
[
451+
db:refpurpose [ "Rank of this product in the homepage listing (lower ranks are listed first; products with the same rank are sorted alphabetically by product name)" ]
452+
]
453+
attribute rank { xsd:PositiveInteger }
454+
448455
ds.docset-sort.attr =
449456
## Whether to sort docsets of this product Z-A9-0 (`descending`, default) or 0-9A-Z (`ascending`)
450457
[
@@ -473,6 +480,7 @@ ds.product =
473480
ds.site-section.attr? & # TODO: Do we still need this attribute?
474481
ds.series.attr &
475482
ds.family.attr &
483+
ds.rank.attr? &
476484
ds.docset-sort.attr? &
477485
ds.gated.attr?
478486
),

0 commit comments

Comments
 (0)