Skip to content

Commit cf1c5b9

Browse files
gjchong25Grace Chong
andauthored
DOP-2760: Add visibility option to output directive (#385)
* DOP-2760: Add visibility option to output directive * remove inheritance Co-authored-by: Grace Chong <[email protected]>
1 parent 6537ca0 commit cf1c5b9

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

snooty/rstspec.toml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -475,6 +475,7 @@ options.source = "uri"
475475
# ${2::copyable: (bool)
476476
# :caption: (string)
477477
# :class: (string)}
478+
# :source: ${1: URL to source code}
478479

479480
# ${0:code input/code output content}
480481
# """
@@ -495,12 +496,18 @@ options.linenos = "flag"
495496

496497
[directive.output]
497498
help = """The code output."""
498-
inherit = "input"
499+
argument_type = ["path", "raw"]
500+
content_type = "raw"
501+
options.language = "string"
502+
options.emphasize-lines = "linenos"
503+
options.linenos = "flag"
504+
options.visible = "boolean"
499505
# example = """.. io-code-block::
500506
# .. output:: ${0:code output or </path/to/file>}
501507
# :language: ${1:language}
502508
# :emphasize-lines: (string)
503509
# :linenos: (flag)
510+
# :visible: (bool)
504511
# """
505512

506513
[directive.cssclass]

0 commit comments

Comments
 (0)