This repository has been archived by the owner on Jun 23, 2022. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #24 from livibetter/improve-docs
add TOC, use kbd, fix table syntax, put example code in literal block
- Loading branch information
Showing
2 changed files
with
58 additions
and
50 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,58 +1,60 @@ | ||
Simple example | ||
============== | ||
Set your cursor inside the following paragraph and type ",,c": | ||
|
||
Feature Description | ||
Easy It's soo easy, man. | ||
Predictable Amount of spaces doesn't matter. | ||
Repeatable It can be repeated. | ||
Flexible Even spaces at the end of a line are fine. | ||
|
||
Then, the paragraph should turn into: | ||
|
||
+=============+============================================+ | ||
| Feature | Description | | ||
+=============+============================================+ | ||
| Easy | It's soo easy, man. | | ||
+-------------+--------------------------------------------+ | ||
| Predictable | Amount of spaces doesn't matter. | | ||
+-------------+--------------------------------------------+ | ||
| Repeatable | It can be repeated. | | ||
+-------------+--------------------------------------------+ | ||
| Flexible | Even spaces at the end of a line are fine. | | ||
+-------------+--------------------------------------------+ | ||
Set your cursor inside the following paragraph and type :kbd:`,,c`:: | ||
|
||
Feature Description | ||
Easy It's soo easy, man. | ||
Predictable Amount of spaces doesn't matter. | ||
Repeatable It can be repeated. | ||
Flexible Even spaces at the end of a line are fine. | ||
|
||
Then, the paragraph should turn into:: | ||
|
||
+-------------+--------------------------------------------+ | ||
| Feature | Description | | ||
+=============+============================================+ | ||
| Easy | It's soo easy, man. | | ||
+-------------+--------------------------------------------+ | ||
| Predictable | Amount of spaces doesn't matter. | | ||
+-------------+--------------------------------------------+ | ||
| Repeatable | It can be repeated. | | ||
+-------------+--------------------------------------------+ | ||
| Flexible | Even spaces at the end of a line are fine. | | ||
+-------------+--------------------------------------------+ | ||
|
||
Then, fix the "soo" to become "so" and insert the word "really" between | ||
"doesn't" and "matter". Finally, rename "Easy" to "Super easy", so it looks | ||
like this: | ||
like this:: | ||
|
||
+=============+==================================+ | ||
| Feature | Description | | ||
+=============+==================================+ | ||
| Super easy | It's so easy, man. | | ||
+-------------+----------------------------------+ | ||
| Predictable | Amount of spaces doesn't really matter. | | ||
+-------------+----------------------------------+ | ||
| Repeatable | It can be repeated. | | ||
+-------------+----------------------------------+ | ||
+-------------+----------------------------------+ | ||
| Feature | Description | | ||
+=============+==================================+ | ||
| Super easy | It's so easy, man. | | ||
+-------------+----------------------------------+ | ||
| Predictable | Amount of spaces doesn't really matter. | | ||
+-------------+----------------------------------+ | ||
| Repeatable | It can be repeated. | | ||
+-------------+----------------------------------+ | ||
|
||
Then, set your cursor inside the table again, and type ,,f to reformat the | ||
table. | ||
Then, set your cursor inside the table again, and type :kbd:`,,f` to reformat | ||
the table. | ||
|
||
|
||
A more complex example | ||
====================== | ||
|
||
Feature| Description | | ||
Ease of use | Drop dead simple! | ||
Foo | Bar, qux, mux | ||
Predictability | Deploykdj sfkljsdjf ljdflsk jsdflkj dsflkj sdlkj dfslkj | ||
| | dfslkjds flkdjsfl sdfjlk jdfslk djsfl dfjslk jsdflk jfdslk jdfslkds fjlkds | ||
| | jldkfj ldfsjlsd jldsf jlkjds flds fjlk jdflk jdsflj dslfjs dlfj sdflkj sdlfj | ||
| |dfslkjds flkdjsfl sdfjlk jdfslk djsfl dfjslk jsdflk jfdslk jdfslkds fjlkds | ||
| |jldkfj ldfsjlsd jldsf jlkjds flds fjlk jdflk jdsflj dslfjs dlfj sdflkj sdlfj | ||
| |dfslkjds flkdjsfl sdfjlk jdfslk djsfl dfjslk jsdflk jfdslk jdfslkds fjlkds | ||
| |jldkfj ldfsjlsd jldsf jlkjds flds fjlk jdflk jdsflj dslfjs dlfj sdflkj sdlfj | | ||
| |ldfsj dlfsj dfskjdfs ldsfj | ||
:: | ||
|
||
Feature| Description | | ||
Ease of use | Drop dead simple! | ||
Foo | Bar, qux, mux | ||
Predictability | Deploykdj sfkljsdjf ljdflsk jsdflkj dsflkj sdlkj dfslkj | ||
| | dfslkjds flkdjsfl sdfjlk jdfslk djsfl dfjslk jsdflk jfdslk jdfslkds fjlkds | ||
| | jldkfj ldfsjlsd jldsf jlkjds flds fjlk jdflk jdsflj dslfjs dlfj sdflkj sdlfj | ||
| |dfslkjds flkdjsfl sdfjlk jdfslk djsfl dfjslk jsdflk jfdslk jdfslkds fjlkds | ||
| |jldkfj ldfsjlsd jldsf jlkjds flds fjlk jdflk jdsflj dslfjs dlfj sdflkj sdlfj | ||
| |dfslkjds flkdjsfl sdfjlk jdfslk djsfl dfjslk jsdflk jfdslk jdfslkds fjlkds | ||
| |jldkfj ldfsjlsd jldsf jlkjds flds fjlk jdflk jdsflj dslfjs dlfj sdflkj sdlfj | | ||
| |ldfsj dlfsj dfskjdfs ldsfj | ||
|
||
And some para-text below it. |