Skip to content

Commit 9d12326

Browse files
committed
Sync rstspecs
1 parent e45af45 commit 9d12326

File tree

1 file changed

+64
-1
lines changed

1 file changed

+64
-1
lines changed

snooty/rstspec-consolidated.toml

Lines changed: 64 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -463,6 +463,60 @@ example = """.. code:: ${1:language}
463463
${0:code content}
464464
"""
465465

466+
[directive.io-code-block]
467+
help = """A block of code and its corresponding output to show the user."""
468+
argument_type = "string"
469+
content_type = "block"
470+
options.caption = "string"
471+
options.copyable = "boolean"
472+
options.class = "string"
473+
options.source = "uri"
474+
example = """.. io-code-block::
475+
${2::copyable: (bool)
476+
:caption: (string)
477+
:class: (string)
478+
:source: ${1: URL to source code}}
479+
480+
.. input:: ${0:code input or </path/to/file>}
481+
:language: ${1:language}
482+
:emphasize-lines: (string)
483+
:linenos: (flag)
484+
485+
.. output:: ${0:code output or </path/to/file>}
486+
:language: ${1:language}
487+
:emphasize-lines: (string)
488+
:linenos: (flag)
489+
:visible: (bool)
490+
"""
491+
492+
[directive.input]
493+
help = """The code content."""
494+
argument_type = ["path", "raw"]
495+
content_type = "raw"
496+
options.language = "string"
497+
options.emphasize-lines = "linenos"
498+
options.linenos = "flag"
499+
example = """.. input:: ${0:code input or </path/to/file>}
500+
:language: ${1:language}
501+
:emphasize-lines: (string)
502+
:linenos: (flag)
503+
"""
504+
505+
[directive.output]
506+
help = """The code output."""
507+
argument_type = ["path", "raw"]
508+
content_type = "raw"
509+
options.language = "string"
510+
options.emphasize-lines = "linenos"
511+
options.linenos = "flag"
512+
options.visible = "boolean"
513+
example = """.. output:: ${0:code output or </path/to/file>}
514+
:language: ${1:language}
515+
:emphasize-lines: (string)
516+
:linenos: (flag)
517+
:visible: (bool)
518+
"""
519+
466520
[directive.cssclass]
467521
help = """Add the given CSS class name to generated HTML of the contained (if content is given) or
468522
following (if not) page element."""
@@ -646,8 +700,10 @@ example = """.. banner::
646700
[directive."mongodb:cta-banner"]
647701
content_type = "block"
648702
options.url = { type = "uri", required = true }
703+
options.icon = "string"
649704
example = """.. cta-banner::
650705
:url: https://university.mongodb.com/
706+
:icon: ${1:Leafygreen icon}
651707
652708
${2:Banner Text content}
653709
"""
@@ -870,6 +926,11 @@ options.title = {required = true, type = "string"}
870926
options.image = {required = true, type = ["path", "uri"]}
871927
options.type = "string"
872928

929+
[directive.video]
930+
help = "Embed a video in your article"
931+
argument_type = "uri"
932+
example = """.. video:: ${1: full video url}"""
933+
873934
[directive.youtube]
874935
help = "Embed a video from YouTube in your article"
875936
argument_type = "string"
@@ -1761,7 +1822,9 @@ realm-sdks = [
17611822
{id = "json-expressions", title = "JSON Expressions"},
17621823
{id = "graphql", title = "GraphQL"},
17631824
{id = "ios", title = "Swift SDK"},
1764-
{id = "android", title = "Android SDK"},
1825+
{id = "android", title = "Java SDK"},
1826+
{id = "kotlin", title = "Kotlin SDK"},
1827+
{id = "flutter", title = "Flutter SDK"},
17651828
{id = "dotnet", title = ".NET SDK"},
17661829
{id = "xamarin", title = "Xamarin SDK"},
17671830
{id = "javascript", title = "JavaScript SDKs"},

0 commit comments

Comments
 (0)