Skip to content

Commit 890e7d1

Browse files
committed
Add support for more rst constructs
1 parent 10ecaf7 commit 890e7d1

File tree

1 file changed

+35
-5
lines changed

1 file changed

+35
-5
lines changed

snooty/rstspec.toml

Lines changed: 35 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,13 @@ content_type = "block"
5858
argument_type = "string"
5959
content_type = "block"
6060

61+
[directive.contents]
62+
argument_type = "string"
63+
options.local = "flag"
64+
options.backlinks = "string"
65+
options.depth = "nonnegative_integer"
66+
options.class = "string"
67+
6168
[directive.include]
6269
help = """Include a reStructuredText file's contents."""
6370
argument_type = ["path", "uri"]
@@ -67,22 +74,30 @@ help = """Include a file as a block of code."""
6774
inherit = "include"
6875
options.start-after = "string"
6976
options.end-before = "string"
77+
options.linenos = "string"
7078
options.language = "string"
7179
options.dedent = ["nonnegative_integer", "dedent_mode"]
80+
options.emphasize-lines = "string"
7281

7382
[directive.figure]
7483
help = """Include an image file."""
7584
argument_type = ["path", "uri"]
85+
content_type = "block"
7686
options.alt = "string"
7787
options.figwidth = "length"
7888
options.scale = "string"
7989
options.width = "length"
8090
options.align = "alignment"
91+
options.lightbox = "flag"
8192

8293
[directive.example]
8394
help = """A section providing an example related to the surrounding text."""
8495
content_type = "block"
8596

97+
[directive.optional]
98+
help = """A section optional information or steps."""
99+
content_type = "block"
100+
86101
[directive.raw]
87102
help = """Include raw unparsed content when rendering into a given output format."""
88103
deprecated = true
@@ -94,6 +109,9 @@ help = """Only parse a chunk of content if the condition in the argument is true
94109
argument_type = "string"
95110
content_type = "block"
96111

112+
[directive.unicode]
113+
argument_type = "string"
114+
97115
[directive.class]
98116
help = """Set a class on the next element."""
99117
deprecated = true
@@ -188,6 +206,10 @@ inherit = "_guides-base"
188206
help = """The version of product to which this guide applies."""
189207
inherit = "_guides-base"
190208

209+
[directive.hlist]
210+
content_type = "list"
211+
options.columns = "nonnegative_integer"
212+
191213
[directive.languages]
192214
help = """A list of languages that this guide supports."""
193215
example = """.. languages::
@@ -241,6 +263,12 @@ help = """Used to specify a label or button in a GUI."""
241263
[role.abbr]
242264
help = """Abbreviation with hover text."""
243265

266+
[role.file]
267+
help = """Show a file path."""
268+
269+
[role.icon]
270+
help = """Show an icon."""
271+
244272
[role.xml]
245273
help = """Use XML to create reStructuredText nodes."""
246274

@@ -303,18 +331,20 @@ type = "link http://mongodb.github.io/mongo-java-driver/3.7/javadoc/%s"
303331

304332
### Types of objects (directive & role pairs)
305333
[rstobject."py:class"]
334+
[rstobject.authaction]
306335
[rstobject.authrole]
307336
[rstobject.binary]
337+
[rstobject.bsontype]
338+
[rstobject.data]
339+
[rstobject.dbcommand]
308340
[rstobject.method]
309341
[rstobject.mongodb]
310342
[rstobject.option]
311343
[rstobject.phpclass]
312344
[rstobject.phpmethod]
345+
[rstobject.pipeline]
313346
[rstobject.program]
314-
[rstobject.update]
315347
[rstobject.query]
316348
[rstobject.setting]
317-
[rstobject.bsontype]
318-
[rstobject.pipeline]
319-
[rstobject.data]
320-
[rstobject.authaction]
349+
[rstobject.update]
350+
[rstobject.urioption]

0 commit comments

Comments
 (0)