From 304b104d41b96d25ded69e01b8b5b6c5672fe06d Mon Sep 17 00:00:00 2001 From: Kim K Date: Sun, 21 Jul 2019 22:29:16 +0800 Subject: [PATCH] feat: Use new demos from asciinema --- doc/demos/README.md | 15 +++------------ test/filetypes/javascript/classes.vader | 16 ++++++++-------- test/filetypes/javascript/es6.vader | 22 +++++++++++----------- test/filetypes/javascript/functions.vader | 22 +++++++++++----------- 4 files changed, 33 insertions(+), 42 deletions(-) diff --git a/doc/demos/README.md b/doc/demos/README.md index 18862e3e..3f97d81a 100644 --- a/doc/demos/README.md +++ b/doc/demos/README.md @@ -18,7 +18,7 @@ Supported: - Class methods - Functions -[Demo](https://vdoge.kimkoomen.nl/demos/doge-demo-php.gif) +[![Demo PHP](https://asciinema.org/a/OvTglKYTEH0FiYKQO3X0H23oB.svg)](https://asciinema.org/a/OvTglKYTEH0FiYKQO3X0H23oB) ## JavaScript @@ -38,7 +38,7 @@ Supported: All of the above is _also_ supported for TypeScript and NodeJS. -[Demo](https://vdoge.kimkoomen.nl/demos/doge-demo-javascript.gif) +[![Demo JavaScript](https://asciinema.org/a/KUvRSPGyFVI0dKsblEa41RG3x.svg)](https://asciinema.org/a/KUvRSPGyFVI0dKsblEa41RG3x) ## Python @@ -51,13 +51,4 @@ Supported: - Google - Python 3.7+ type hints -[Demo](https://vdoge.kimkoomen.nl/demos/doge-demo-python.gif) - -## Scala - -Supported: -- Functions -- Methods -- Classes - -[Demo](https://vdoge.kimkoomen.nl/demos/doge-demo-scala.gif) +[![Demo Python](https://asciinema.org/a/QKwuUrZphWPD6eZ3mowumkA1O.svg)](https://asciinema.org/a/QKwuUrZphWPD6eZ3mowumkA1O) diff --git a/test/filetypes/javascript/classes.vader b/test/filetypes/javascript/classes.vader index 20ebfb90..9339b916 100644 --- a/test/filetypes/javascript/classes.vader +++ b/test/filetypes/javascript/classes.vader @@ -13,13 +13,13 @@ Do (trigger doge): Expect javascript (generated comment with nothing but the text 'TODO'): /** - * TODO + * [TODO:description] * */ class Child {} /** - * TODO + * [TODO:description] * */ export class Child {} @@ -39,14 +39,14 @@ Do (trigger doge): Expect javascript (generated comment with @extends): /** - * TODO + * [TODO:description] * * @extends Parent */ class Child extends Parent {} /** - * TODO + * [TODO:description] * * @extends Parent */ @@ -67,14 +67,14 @@ Do (trigger doge): Expect javascript (generated comment with @implements tag): /** - * TODO + * [TODO:description] * * @implements CustomInterfaceName */ class Child implements CustomInterfaceName {} /** - * TODO + * [TODO:description] * * @implements CustomInterfaceName */ @@ -95,7 +95,7 @@ Do (trigger doge): Expect javascript (generated comment with @extends and @implements tags): /** - * TODO + * [TODO:description] * * @extends Parent * @implements CustomInterfaceName @@ -103,7 +103,7 @@ Expect javascript (generated comment with @extends and @implements tags): class Child extends Parent implements CustomInterfaceName {} /** - * TODO + * [TODO:description] * * @extends Parent * @implements CustomInterfaceName diff --git a/test/filetypes/javascript/es6.vader b/test/filetypes/javascript/es6.vader index 56029c65..7e04ab41 100644 --- a/test/filetypes/javascript/es6.vader +++ b/test/filetypes/javascript/es6.vader @@ -9,7 +9,7 @@ Do (trigger doge): Expect javascript (generated comment with @description @function tags): /** - * TODO + * [TODO:description] * * @function */ @@ -30,7 +30,7 @@ Do (trigger doge): Expect javascript (generated comment with @function and @param tags): /** - * TODO + * [TODO:description] * * @function myFunc * @param {[TODO:type]} $p1 [TODO:description] @@ -41,7 +41,7 @@ Expect javascript (generated comment with @function and @param tags): const myFunc = ($p1 = 'value', p2 = [], p3, p4) => {} /** - * TODO + * [TODO:description] * * @function myFunc * @param {[TODO:type]} $p1 [TODO:description] @@ -62,7 +62,7 @@ Do (trigger doge): Expect javascript (generated comment with @function, @param and @return tags): /** - * TODO + * [TODO:description] * * @function myFunc * @param {string} $p1 [TODO:description] @@ -96,7 +96,7 @@ Do (trigger doge): Expect javascript (generated comments with @function, @param and @return tags): class Test { /** - * TODO + * [TODO:description] * * @function myMethod * @param {number} b [TODO:description] @@ -106,7 +106,7 @@ Expect javascript (generated comments with @function, @param and @return tags): } /** - * TODO + * [TODO:description] * * @param {number} b [TODO:description] * @return {number} [TODO:description] @@ -133,7 +133,7 @@ Do (trigger doge): Expect javascript (generated comment with @description and @param tags): class Test { /** - * TODO + * [TODO:description] * * @param {number} b [TODO:description] */ @@ -153,7 +153,7 @@ Do (trigger doge): Expect javascript (generated comment with @function, @param and @return tags): /** - * TODO + * [TODO:description] * * @function Person#greet * @param {string} p1 [TODO:description] @@ -173,7 +173,7 @@ Do (trigger doge): Expect javascript (generated comment with @description and @function tags): /** - * TODO + * [TODO:description] * * @function Person#greet */ @@ -190,7 +190,7 @@ Do (trigger doge): Expect javascript (generated comment with @function, @param and @return tags): /** - * TODO + * [TODO:description] * * @function myFunc * @param {string} $p1 [TODO:description] @@ -210,7 +210,7 @@ Do (trigger doge): Expect javascript (generated comment with @function, @param and @return tags): /** - * TODO + * [TODO:description] * * @async * @function myFunc diff --git a/test/filetypes/javascript/functions.vader b/test/filetypes/javascript/functions.vader index 16a19d57..c43ef284 100644 --- a/test/filetypes/javascript/functions.vader +++ b/test/filetypes/javascript/functions.vader @@ -9,7 +9,7 @@ Do (trigger doge): Expect javascript (generated comment with @description tag): /** - * TODO + * [TODO:description] * */ function myFunc(/* inline comment */) {} @@ -25,7 +25,7 @@ Do (trigger doge): Expect javascript (generated comment with @description and @param tags): /** - * TODO + * [TODO:description] * * @param {[TODO:type]} $p1 [TODO:description] * @param {[TODO:type]} p2 [TODO:description] @@ -45,7 +45,7 @@ Do (trigger doge): Expect javascript (generated comment with @param and @return tags): /** - * TODO + * [TODO:description] * * @param {string} $p1 [TODO:description] * @param {string[]} p2 [TODO:description] @@ -66,7 +66,7 @@ Do (trigger doge): Expect javascript (generated comment with @functon and @param tags): /** - * TODO + * [TODO:description] * * @function myFunc * @param {[TODO:type]} $p1 [TODO:description] @@ -87,7 +87,7 @@ Do (trigger doge): Expect javascript (generated comment with @function and @param tags): /** - * TODO + * [TODO:description] * * @function myFunc * @param {string} $p1 [TODO:description] @@ -140,7 +140,7 @@ Do (trigger doge): Expect javascript (generated comment with @function, @param and @return tags): /** - * TODO + * [TODO:description] * * @function Person#greet * @param {string} p1 [TODO:description] @@ -160,7 +160,7 @@ Do (trigger doge): Expect javascript (generated comment with @description and @function tags): /** - * TODO + * [TODO:description] * * @function Person#greet */ @@ -177,7 +177,7 @@ Do (trigger doge): Expect javascript (generated comment with @param and @return tags): /** - * TODO + * [TODO:description] * * @param {string} $p1 [TODO:description] * @param {Foo|Bar|Baz} p2 [TODO:description] @@ -196,7 +196,7 @@ Do (trigger doge): Expect javascript (generated comment with @async, and @param tags): /** - * TODO + * [TODO:description] * * @async * @param {[TODO:type]} $p1 [TODO:description] @@ -217,7 +217,7 @@ Do (trigger doge): Expect javascript (generated comment with @description and @param tags): /** - * TODO + * [TODO:description] * * @param {[TODO:type]} $p1 [TODO:description] * @param {[TODO:type]} p2 [TODO:description] @@ -237,7 +237,7 @@ Do (trigger doge): Expect javascript (generated comment with @async, and @param tags): /** - * TODO + * [TODO:description] * * @async * @param {[TODO:type]} $p1 [TODO:description]