-
-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[TASK] Add tests for images with relative paths
- Loading branch information
Showing
12 changed files
with
432 additions
and
0 deletions.
There are no files selected for viewing
11 changes: 11 additions & 0 deletions
11
tests/Integration/tests/markdown/image-path-relative-md/expected/dir1/dir2/index.html
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,11 @@ | ||
<!-- content start --> | ||
<div class="section" id="dir-2-title"> | ||
<h1>Dir 2 Title</h1> | ||
|
||
<p>Lorem Ipsum Dolor.</p> | ||
|
||
|
||
<p><img src="../../images/hero-illustration.svg" alt="Hero Illustrations"/></p> | ||
|
||
</div> | ||
<!-- content end --> |
8 changes: 8 additions & 0 deletions
8
tests/Integration/tests/markdown/image-path-relative-md/expected/dir1/dir2/somePage.html
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,8 @@ | ||
<!-- content start --> | ||
<div class="section" id="some-page-in-dir-2"> | ||
<h1>Some Page in dir 2</h1> | ||
|
||
<p>Lorem Ipsum <code>Dolor</code>.</p> | ||
|
||
</div> | ||
<!-- content end --> |
11 changes: 11 additions & 0 deletions
11
tests/Integration/tests/markdown/image-path-relative-md/expected/dir1/index.html
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,11 @@ | ||
<!-- content start --> | ||
<div class="section" id="dir-1-title"> | ||
<h1>Dir 1 Title</h1> | ||
|
||
<p>Lorem Ipsum Dolor.</p> | ||
|
||
|
||
<p><img src="../images/hero-illustration.svg" alt="Hero Illustrations"/></p> | ||
|
||
</div> | ||
<!-- content end --> |
180 changes: 180 additions & 0 deletions
180
...ion/tests/markdown/image-path-relative-md/expected/images/hero-illustration.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 8 additions & 0 deletions
8
tests/Integration/tests/markdown/image-path-relative-md/expected/index.html
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,8 @@ | ||
<!-- content start --> | ||
<div class="section" id="document-title"> | ||
<h1>Document Title</h1> | ||
|
||
<p>Lorem Ipsum Dolor.</p> | ||
|
||
</div> | ||
<!-- content end --> |
5 changes: 5 additions & 0 deletions
5
tests/Integration/tests/markdown/image-path-relative-md/input/dir1/dir2/index.md
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 @@ | ||
# Dir 2 Title | ||
|
||
Lorem Ipsum Dolor. | ||
|
||
![Hero Illustrations](../../images/hero-illustration.svg) |
4 changes: 4 additions & 0 deletions
4
...s/Integration/tests/markdown/image-path-relative-md/input/dir1/dir2/somePage.md
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 @@ | ||
|
||
# Some Page in dir 2 | ||
|
||
Lorem Ipsum `Dolor`. |
5 changes: 5 additions & 0 deletions
5
tests/Integration/tests/markdown/image-path-relative-md/input/dir1/index.md
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 @@ | ||
# Dir 1 Title | ||
|
||
Lorem Ipsum Dolor. | ||
|
||
![Hero Illustrations](../images/hero-illustration.svg) |
11 changes: 11 additions & 0 deletions
11
tests/Integration/tests/markdown/image-path-relative-md/input/guides.xml
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,11 @@ | ||
<?xml version="1.0" encoding="UTF-8" ?> | ||
<guides xmlns="https://www.phpdoc.org/guides" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:schemaLocation="https://www.phpdoc.org/guides packages/guides-cli/resources/schema/guides.xsd" | ||
theme="bootstrap" | ||
input-format="md" | ||
links-are-relative="1" | ||
automatic-menu="true" | ||
> | ||
<extension class="phpDocumentor\Guides\Bootstrap"/> | ||
</guides> |
Oops, something went wrong.