-
Notifications
You must be signed in to change notification settings - Fork 599
[reST] refactor #4212
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
[reST] refactor #4212
Conversation
b40f0f7 to
8817eaf
Compare
72e437b to
ae329e0
Compare
|
Thanks a lot for taking care of this.
Example file having lots of these: https://raw.githubusercontent.com/giampaolo/psutil/refs/heads/master/HISTORY.rst. |
843a5bc to
0607aca
Compare
ebfb8c4 to
c34db53
Compare
6bfcc32 to
5d0438e
Compare
|
Hello, @jrappen ! These suggestions might be helpful:
Keymaps for suggestions above: // --------------------------------------------------------------------
// reStructuredText Tools
// --------------------------------------------------------------------
{
"keys": ["ctrl+alt+f"],
"command": "rst_encapsulate_field",
"context":
[
{ "key": "selector", "operand": "text.restructuredtext"},
{ "key": "selection_empty", "operand": false, "match_all": true },
]
},
{
"keys": ["ctrl+alt+l"], // Lower-case 'L'
"command": "rst_encapsulate_literal",
"context":
[
{ "key": "selector", "operand": "text.restructuredtext"},
{ "key": "selection_empty", "operand": false, "match_all": true },
]
},
{
"keys": ["ctrl+alt+t"],
"command": "rst_encapsulate_interpreted_text_role",
"args": {
"role_name": "term"
},
"context":
[
{ "key": "selector", "operand": "text.restructuredtext"},
{ "key": "selection_empty", "operand": false, "match_all": true },
]
}, |
757833e to
065ce10
Compare
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
|
@jrappen More syntax bugs:
|
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
495a44a to
31d4eb3
Compare
|
Hi, @jrappen ! I found an asset for you -- a great "test bed" for reST: https://github.com/sphinx-themes/sphinx-themes.org/tree/master/sample-docs These are the docs that are used over and over again (under each hosted theme) to generate this website: Example for the Futo theme: https://sphinx-themes.org/sample-sites/furo/ And these docs in particular should be a GREAT test for the reST package: https://sphinx-themes.org/sample-sites/furo/kitchen-sink/ Kind regards, |


Note
This PR is a work-in-progress. If you have suggestions for stuff that
should be fixed, leave a comment below.
current TODOs
Additions:
mapping.pairwhile checking value formattargets (sections, footnotes, citations)
jsonc, html, python, toml, yaml), compare [reStructuredText] Code-blocks are not handled #3158
targets
interpreted text, optionallywith roles
lines
Fixes:
...as comments[RestructuredText] single quotes break link targets #1204
Changes:
section headings and their punctuation
scope naming guide
punctuation.definition.endrules for inline itemsbefore
invalid.illegal.newlinecompare [reST] Internal link labels should allow more character types #793
auto_complete_selectordefaultdirective names
References:
syntax don't get lost
Thanks to these contributors: