Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'more-info-about-styles-in-manual'
Closes #1052
- Loading branch information
Showing
7 changed files
with
63 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
--- | ||
styles: | ||
bodytext: | ||
textColor: blue |
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,4 @@ | ||
--- | ||
styles: | ||
bodytext: | ||
textColor: green |
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,4 @@ | ||
--- | ||
styles: | ||
normal: | ||
textColor: red |
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 @@ | ||
-s a4-landscape,a4,green_text.yaml,blue_text.yaml,red_text.yaml |
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,44 @@ | ||
Test of multiple stylesheet files | ||
================================= | ||
|
||
This test ensures that multiple style files are applied as we expect. | ||
|
||
This CLI is used: | ||
|
||
.. code-block:: text | ||
:include: test_multiple_stylesheet_files.cli | ||
green_text.yaml: | ||
|
||
.. code-block:: yaml | ||
:include: green_text.yaml | ||
blue_text.yaml: | ||
|
||
.. code-block:: yaml | ||
:include: blue_text.yaml | ||
red_text.yaml: | ||
|
||
.. code-block:: yaml | ||
:include: red_text.yaml | ||
Page orientation | ||
---------------- | ||
|
||
The order of ``a4-landscape`` and then ``a4`` means that the final page size set will be A4 portrait. | ||
|
||
Colours | ||
------- | ||
|
||
The paragraph text is blue. | ||
|
||
This is because even though ``red_text.yaml`` is applied last, it is setting the text colour of ``normal``, | ||
whereas ``blue_text.yaml`` sets the text colour of ``bodytext``. | ||
As ``bodytext`` has a ``parent`` of ``normal``, then the last file (left to right) that sets the ``bodytext`` | ||
style, so the specification in ``green_text.yaml`` is ignored. | ||
|
||
| Note that all ``literal`` elements are red as ``literal`` has a parent of ``normal`` which is now red. | ||
| Also, all headings are black as their parent is ``heading`` which explicitly sets textColor to black | ||
even though it has a parent of ``normal``. |
Binary file not shown.