forked from sphinx-doc/sphinx
-
Notifications
You must be signed in to change notification settings - Fork 0
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 sphinx-doc#7053 from jakobandersen/productionlist
Production list scoping and line continuation
- Loading branch information
Showing
14 changed files
with
187 additions
and
15 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
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 |
---|---|---|
@@ -0,0 +1,6 @@ | ||
Bare | ||
==== | ||
|
||
.. productionlist:: | ||
A: `A` | somethingA | ||
B: `B` | somethingB |
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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
Dup1 | ||
==== | ||
|
||
.. productionlist:: | ||
Dup: `Dup` | somethingDup |
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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
Dup2 | ||
==== | ||
|
||
.. productionlist:: | ||
Dup: `Dup` | somethingDup |
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 |
---|---|---|
@@ -0,0 +1,6 @@ | ||
LineContinuation | ||
================ | ||
|
||
.. productionlist:: lineContinuation | ||
A: B C D \ | ||
E F G |
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 |
---|---|---|
@@ -0,0 +1,6 @@ | ||
P1 | ||
== | ||
|
||
.. productionlist:: P1 | ||
A: `A` | somethingA | ||
B: `B` | somethingB |
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 |
---|---|---|
@@ -0,0 +1,6 @@ | ||
P2 | ||
== | ||
|
||
.. productionlist:: P2 | ||
A: `A` | somethingA | ||
B: `B` | somethingB |
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
exclude_patterns = ['_build'] |
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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
FirstLineRule | ||
============= | ||
|
||
.. productionlist:: FirstLine: something | ||
SecondLine: somethingElse |
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 |
---|---|---|
@@ -0,0 +1,27 @@ | ||
.. toctree:: | ||
|
||
P1 | ||
P2 | ||
Bare | ||
Dup1 | ||
Dup2 | ||
firstLineRule | ||
LineContinuation | ||
|
||
- A: :token:`A` | ||
- B: :token:`B` | ||
- P1:A: :token:`P1:A` | ||
- P1:B: :token:`P1:B` | ||
- P2:A: :token:`P1:A` | ||
- P2:B: :token:`P2:B` | ||
- Explicit title A, plain: :token:`MyTitle <A>` | ||
- Explicit title A, colon: :token:`My:Title <A>` | ||
- Explicit title P1:A, plain: :token:`MyTitle <P1:A>` | ||
- Explicit title P1:A, colon: :token:`My:Title <P1:A>` | ||
- Tilde A: :token:`~A`. | ||
- Tilde P1:A: :token:`~P1:A`. | ||
- Tilde explicit title P1:A: :token:`~MyTitle <P1:A>` | ||
- Tilde, explicit title P1:A: :token:`MyTitle <~P1:A>` | ||
- Dup: :token:`Dup` | ||
- FirstLine: :token:`FirstLine` | ||
- SecondLine: :token:`SecondLine` |
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