Skip to content

Commit 186f538

Browse files
committed
DOP-6049 adds new directives called multi-column and column
1 parent 6f0cefe commit 186f538

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

snooty/rstspec.toml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -580,6 +580,32 @@ help = """A list of languages that this guide supports."""
580580
# """
581581
content_type = "list"
582582

583+
[directive.column]
584+
help = """column content for the n-column component"""
585+
content_type = "block"
586+
options.title = "string"
587+
588+
[directive."multi-column"]
589+
help = """A two-column component for the homepage"""
590+
content_type = "block"
591+
example = """.. multi-column::
592+
593+
.. column::
594+
595+
.. code-block:: ${4:language}
596+
${5:First code block content}
597+
598+
${6:Paragraph content between code blocks}
599+
600+
.. code-block:: ${7:language}
601+
${8:Second code block content}
602+
603+
.. column::
604+
605+
${9:title}
606+
${10:Unordered list content}
607+
"""
608+
583609

584610
##### Guides (LEGACY - do not deprecate until removed in dependent docs repos)
585611
[directive.hlist]

0 commit comments

Comments
 (0)