blob: 6724b0f6c3003040cf1a969bd1cf377eebca8864 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
|
[namespaces]
mal = http://projectmallard.org/1.0/
xi = http://www.w3.org/2001/XInclude
[default]
version = gnome:40
[check:hrefs]
allow = help:orca help:baobab help:polari
[check:validate]
strict = true
# The use of xml:id messes up validation. It really shouldn't
# Let's fix the Mallard schemas so we don't have to skip these.
skip = shell-keyboard-shortcuts.page keyboard-nav.page
allow = http://www.w3.org/2005/11/its http://itstool.org/extensions/ http://www.w3.org/XML/1998/namespace http://www.w3.org/1999/xlink http://www.w3.org/XML/1998/namespace http://projectmallard.org/experimental/ui/
[check:gnome-info-legal-xi]
select = /mal:page/mal:info
assert = xi:include[@href='legal.xml']
message = Must include legal.xml
xinclude = false
[check:gnome-info-legal-no]
select = /mal:page/mal:info
assert = not(mal:license)
message = Must not include license directly
xinclude = false
[check:gnome-desc]
select = /mal:page/mal:info
assert = normalize-space(mal:desc) != ''
message = Must have non-empty desc
[check:gnome-desc-punc]
select = /mal:page/mal:info/mal:desc
assert = substring(normalize-space(.), string-length(normalize-space(.))) = '.' or substring(normalize-space(.), string-length(normalize-space(.))) = '?'
message = Desc must end with a period or question mark
[check:gnome-no-desc-link]
desc = Stop putting links in desc elements
select = //mal:desc
assert = not(mal:link)
message = Stop putting links in desc elements
[check:gnome-trail-title]
skip = hardware-auth.page
desc = Use a short title for link trails
select = /mal:page[@type='guide']
assert = string-length(mal:title) <= 20 or (mal:info/mal:title[@type='link' and @role='trail'] and string-length(mal:info/mal:title[@type='link' and @role='trail']) <= 20)
message = Use a short title for link trails
[check:gnome-no-ascii-quotes]
select = //mal:*[not(ancestor-or-self::mal:cmd or ancestor-or-self::mal:code or ancestor-or-self::mal:comment or ancestor-or-self::mal:file or ancestor-or-self::mal:input or ancestor-or-self::mal:key or ancestor-or-self::mal:output or ancestor-or-self::mal:screen or ancestor-or-self::mal:screen or ancestor-or-self::mal:sys)]
assert = not(contains(text(), "'") or contains(text(), '"'))
message = Use ‘curly’ “quotes” instead of 'straight' "quotes"
#[check:gnome-no-guide-style]
#select = /mal:page[@type='guide']
#assert = not(@style)
#message = Do not set a style attribute on guide pages
|