From a463438a3d238396a884b420400ccffaaf106a49 Mon Sep 17 00:00:00 2001 From: twabiko Date: Tue, 4 Aug 2015 22:24:24 +0900 Subject: [PATCH 1/7] fix typo. --- snippets/rst.snippets | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/snippets/rst.snippets b/snippets/rst.snippets index f4d99d7..72263ec 100644 --- a/snippets/rst.snippets +++ b/snippets/rst.snippets @@ -56,7 +56,7 @@ snippet err: snippet cau: .. caution:: ${0:Watch out!} -#Spinx only +#Sphinx only snippet sid: .. sidebar:: ${1:Title} From d4e3f9193e4e2d65820a4ed005600930efc31651 Mon Sep 17 00:00:00 2001 From: twabiko Date: Tue, 4 Aug 2015 22:30:38 +0900 Subject: [PATCH 2/7] add 'todo' for Sphinx. --- snippets/rst.snippets | 3 +++ 1 file changed, 3 insertions(+) diff --git a/snippets/rst.snippets b/snippets/rst.snippets index 72263ec..f79be0b 100644 --- a/snippets/rst.snippets +++ b/snippets/rst.snippets @@ -60,6 +60,9 @@ snippet cau: snippet sid: .. sidebar:: ${1:Title} + ${0} +snippet tod: + .. todo:: ${0} # CJK optimize, CJK has no space between charaters snippet *c From 59fcc690bc478f71f30f3a32f1e1d10b344525a1 Mon Sep 17 00:00:00 2001 From: twabiko Date: Tue, 4 Aug 2015 22:37:56 +0900 Subject: [PATCH 3/7] add 'list-tables' for Sphinx --- snippets/rst.snippets | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/snippets/rst.snippets b/snippets/rst.snippets index f79be0b..c407dbb 100644 --- a/snippets/rst.snippets +++ b/snippets/rst.snippets @@ -64,6 +64,21 @@ snippet sid: snippet tod: .. todo:: ${0} +snippet tod: + .. list-table:: ${0:Title} + :header-rows: 1 + :stub-columns: 1 + + * - x1,y1 + - x2,y1 + - x3,y1 + * - x1,y2 + - x2,y2 + - x3,y2 + * - x1,y3 + - x2,y3 + - x3,y3 + # CJK optimize, CJK has no space between charaters snippet *c \ *${1:Emphasis}*\ ${0} From 6340f55102b5eb899fb42593695d5f24be577f7d Mon Sep 17 00:00:00 2001 From: twabiko Date: Tue, 4 Aug 2015 22:40:27 +0900 Subject: [PATCH 4/7] add 'toc-tree' for Sphinx --- snippets/rst.snippets | 25 +++++++++++++++---------- 1 file changed, 15 insertions(+), 10 deletions(-) diff --git a/snippets/rst.snippets b/snippets/rst.snippets index c407dbb..e845b8b 100644 --- a/snippets/rst.snippets +++ b/snippets/rst.snippets @@ -64,21 +64,26 @@ snippet sid: snippet tod: .. todo:: ${0} -snippet tod: +snippet lis: .. list-table:: ${0:Title} :header-rows: 1 :stub-columns: 1 - * - x1,y1 - - x2,y1 - - x3,y1 - * - x1,y2 - - x2,y2 - - x3,y2 - * - x1,y3 - - x2,y3 - - x3,y3 + * - x1,y1 + - x2,y1 + - x3,y1 + * - x1,y2 + - x2,y2 + - x3,y2 + * - x1,y3 + - x2,y3 + - x3,y3 +snippet toc: + .. toctree:: + :maxdepth: 2 + + ${0} # CJK optimize, CJK has no space between charaters snippet *c \ *${1:Emphasis}*\ ${0} From c8d852e3ab868572f45e974a94d060859ede0dde Mon Sep 17 00:00:00 2001 From: twabiko Date: Tue, 4 Aug 2015 22:43:52 +0900 Subject: [PATCH 5/7] add 'download' for Sphinx --- snippets/rst.snippets | 2 ++ 1 file changed, 2 insertions(+) diff --git a/snippets/rst.snippets b/snippets/rst.snippets index e845b8b..2ed26f0 100644 --- a/snippets/rst.snippets +++ b/snippets/rst.snippets @@ -84,6 +84,8 @@ snippet toc: :maxdepth: 2 ${0} +snippet dow: + :download:`${0:text} <${1:path}>` # CJK optimize, CJK has no space between charaters snippet *c \ *${1:Emphasis}*\ ${0} From 081380e73a7385a883e785615587cf55df2c14e9 Mon Sep 17 00:00:00 2001 From: twabiko Date: Tue, 4 Aug 2015 22:45:32 +0900 Subject: [PATCH 6/7] add 'ref' for Sphinx --- snippets/rst.snippets | 2 ++ 1 file changed, 2 insertions(+) diff --git a/snippets/rst.snippets b/snippets/rst.snippets index 2ed26f0..65d7a45 100644 --- a/snippets/rst.snippets +++ b/snippets/rst.snippets @@ -86,6 +86,8 @@ snippet toc: ${0} snippet dow: :download:`${0:text} <${1:path}>` +snippet ref: + :ref:`${0:text} <${1:path}>` # CJK optimize, CJK has no space between charaters snippet *c \ *${1:Emphasis}*\ ${0} From 3809ffb17a717fa5fcfc767e9ce4ed8073de0b32 Mon Sep 17 00:00:00 2001 From: twabiko Date: Tue, 4 Aug 2015 22:46:18 +0900 Subject: [PATCH 7/7] add 'doc' for Sphinx --- snippets/rst.snippets | 2 ++ 1 file changed, 2 insertions(+) diff --git a/snippets/rst.snippets b/snippets/rst.snippets index 65d7a45..b185245 100644 --- a/snippets/rst.snippets +++ b/snippets/rst.snippets @@ -88,6 +88,8 @@ snippet dow: :download:`${0:text} <${1:path}>` snippet ref: :ref:`${0:text} <${1:path}>` +snippet doc: + :doc:`${0:text} <${1:path}>` # CJK optimize, CJK has no space between charaters snippet *c \ *${1:Emphasis}*\ ${0}