Skip to content

Commit 4ce1205

Browse files
committed
[reST] refactor
1 parent 829de45 commit 4ce1205

14 files changed

+2438
-327
lines changed

RestructuredText/Comments.tmPreferences

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<plist version="1.0">
33
<dict>
4-
<key>name</key>
5-
<string>Miscellaneous</string>
64
<key>scope</key>
75
<string>text.restructuredtext</string>
86
<key>settings</key>

RestructuredText/Main.sublime-menu

Lines changed: 92 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,92 @@
1+
[
2+
{
3+
"id": "preferences",
4+
"children":
5+
[
6+
{
7+
"caption": "Package Settings",
8+
"id": "package-settings",
9+
"children":
10+
[
11+
{
12+
"caption": "reStructuredText (reST)",
13+
"children":
14+
[
15+
{
16+
"caption": "Docutils ∙ Reference ∙ Introduction",
17+
"command": "open_url",
18+
"args": { "url": "https://docutils.sourceforge.io/docs/ref/rst/introduction.html" }
19+
},
20+
{
21+
"caption": "Docutils ∙ Reference ∙ Markup Specification",
22+
"command": "open_url",
23+
"args": { "url": "https://docutils.sourceforge.io/docs/ref/rst/restructuredtext.html" }
24+
},
25+
{
26+
"caption": "Docutils ∙ Reference ∙ Directives",
27+
"command": "open_url",
28+
"args": { "url": "https://docutils.sourceforge.io/docs/ref/rst/directives.html" }
29+
},
30+
{
31+
"caption": "Docutils ∙ Reference ∙ Interpreted Text Roles",
32+
"command": "open_url",
33+
"args": { "url": "https://docutils.sourceforge.io/docs/ref/rst/roles.html" }
34+
},
35+
{
36+
"caption": "Docutils ∙ User ∙ Quickstart",
37+
"command": "open_url",
38+
"args": { "url": "https://docutils.sourceforge.io/docs/user/rst/quickstart.html" }
39+
},
40+
{
41+
"caption": "Docutils ∙ User ∙ Examples",
42+
"command": "open_url",
43+
"args": { "url": "https://docutils.sourceforge.io/docs/user/rst/demo.html" }
44+
},
45+
{
46+
"caption": "Docutils ∙ User ∙ Quick Reference",
47+
"command": "open_url",
48+
"args": { "url": "https://docutils.sourceforge.io/docs/user/rst/quickref.html" }
49+
},
50+
{ "caption": "-" },
51+
{
52+
"caption": "Sphinx ∙ Documentation",
53+
"command": "open_url",
54+
"args": { "url": "https://www.sphinx-doc.org/en/master/" }
55+
},
56+
{
57+
"caption": "Sphinx ∙ Command Line Tools",
58+
"command": "open_url",
59+
"args": { "url": "https://www.sphinx-doc.org/en/master/man/index.html" }
60+
},
61+
{
62+
"caption": "Sphinx ∙ 'sphinx-build' Command Line",
63+
"command": "open_url",
64+
"args": { "url": "https://www.sphinx-doc.org/en/master/man/sphinx-build.html" }
65+
},
66+
{
67+
"caption": "Sphinx ∙ Glossary",
68+
"command": "open_url",
69+
"args": { "url": "https://www.sphinx-doc.org/en/master/glossary.html" }
70+
},
71+
{
72+
"caption": "Sphinx ∙ Usage ∙ Configuration",
73+
"command": "open_url",
74+
"args": { "url": "https://www.sphinx-doc.org/en/master/usage/configuration.html" }
75+
},
76+
{
77+
"caption": "Sphinx ∙ Usage ∙ reST ∙ Directives",
78+
"command": "open_url",
79+
"args": { "url": "https://www.sphinx-doc.org/en/master/usage/restructuredtext/directives.html" }
80+
},
81+
{
82+
"caption": "Sphinx ∙ Usage ∙ reST ∙ Interpreted Text Roles",
83+
"command": "open_url",
84+
"args": { "url": "https://www.sphinx-doc.org/en/master/usage/restructuredtext/roles.html" }
85+
}
86+
]
87+
}
88+
]
89+
}
90+
]
91+
}
92+
]
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
%YAML 1.2
2+
---
3+
# https://www.sphinx-doc.org/en/master/
4+
# http://www.sublimetext.com/docs/syntax.html
5+
6+
name: Sphinx reStructuredText
7+
scope: text.restructuredtext.sphinx
8+
version: 2
9+
10+
extends: Packages/RestructuredText/reStructuredText.sublime-syntax
11+
12+
###[ CONTEXTS ]################################################################
13+
14+
contexts:
15+
16+
main:
17+
- include: sphinx
18+
19+
###[ SPHINX ]##################################################################
20+
21+
sphinx:
22+
- include: restructuredtext
23+
24+
###[ VARIABLES ]###############################################################
25+
26+
# variables: {}
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<plist version="1.0">
3+
<dict>
4+
<!--
5+
https://docutils.sourceforge.io/docs/ref/rst/restructuredtext.html#implicit-hyperlink-targets
6+
-->
7+
<key>scope</key>
8+
<string><![CDATA[
9+
meta.link.citation.def.restructuredtext constant.other.citation.link.restructuredtext
10+
]]></string>
11+
<key>settings</key>
12+
<dict>
13+
<key>showInIndexedSymbolList</key>
14+
<integer>0</integer>
15+
<key>showInSymbolList</key>
16+
<integer>1</integer>
17+
</dict>
18+
</dict>
19+
</plist>
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<plist version="1.0">
3+
<dict>
4+
<!--
5+
https://docutils.sourceforge.io/docs/ref/rst/restructuredtext.html#implicit-hyperlink-targets
6+
-->
7+
<key>scope</key>
8+
<string><![CDATA[
9+
meta.link.footnote.def.restructuredtext constant.other.footnote.link.restructuredtext
10+
]]></string>
11+
<key>settings</key>
12+
<dict>
13+
<key>showInIndexedSymbolList</key>
14+
<integer>0</integer>
15+
<key>showInSymbolList</key>
16+
<integer>1</integer>
17+
</dict>
18+
</dict>
19+
</plist>
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<plist version="1.0">
3+
<dict>
4+
<!--
5+
https://docutils.sourceforge.io/docs/ref/rst/restructuredtext.html#implicit-hyperlink-targets
6+
-->
7+
<key>scope</key>
8+
<string><![CDATA[
9+
meta.heading.restructuredtext entity.name.section.restructuredtext - punctuation.heading
10+
]]></string>
11+
<key>settings</key>
12+
<dict>
13+
<key>showInIndexedSymbolList</key>
14+
<integer>1</integer>
15+
<key>showInSymbolList</key>
16+
<integer>1</integer>
17+
</dict>
18+
</dict>
19+
</plist>

0 commit comments

Comments
 (0)