-
-
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.
Sphinx also warns about these
- Loading branch information
Showing
7 changed files
with
126 additions
and
23 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
20 changes: 20 additions & 0 deletions
20
packages/guides/src/Exception/DuplicateLinkAnchorException.php
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,20 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
/** | ||
* This file is part of phpDocumentor. | ||
* | ||
* For the full copyright and license information, please view the LICENSE | ||
* file that was distributed with this source code. | ||
* | ||
* @link https://phpdoc.org | ||
*/ | ||
|
||
namespace phpDocumentor\Guides\Exception; | ||
|
||
use Exception; | ||
|
||
final class DuplicateLinkAnchorException extends Exception | ||
{ | ||
} |
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
31 changes: 31 additions & 0 deletions
31
tests/Integration/tests/anchor/anchor-duplicate-warning/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,31 @@ | ||
<!-- content start --> | ||
<div class="section" id="overview"> | ||
<a id="rst-overview"></a> | ||
<h1>Overview</h1> | ||
|
||
<p>RST Overview content</p> | ||
|
||
</div> | ||
<div class="section" id="overview-1"> | ||
<a id="sphinx-overview"></a> | ||
<h1>Overview</h1> | ||
|
||
<p>Sphinx Overview content</p> | ||
|
||
<div class="section" id="somewhere-else"> | ||
<h2>Somewhere else</h2> | ||
|
||
<p>This is a link to the RST Overview: <a href="/index.html#rst-overview">Overview</a></p> | ||
|
||
<div class="toc"> | ||
<ul class="menu-level"> | ||
<li class="toc-item"> | ||
<a href="/page.html#page">Page</a> | ||
|
||
|
||
</li> | ||
</ul> | ||
</div> | ||
</div> | ||
</div> | ||
<!-- content end --> |
1 change: 1 addition & 0 deletions
1
tests/Integration/tests/anchor/anchor-duplicate-warning/expected/logs/warning.log
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 @@ | ||
app.WARNING: Duplicate anchor "rst-overview". There is already another anchor of that name in document "index" {"rst-file":"page.rst"} [] |
23 changes: 23 additions & 0 deletions
23
tests/Integration/tests/anchor/anchor-duplicate-warning/input/index.rst
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,23 @@ | ||
.. _rst-overview: | ||
|
||
Overview | ||
********** | ||
|
||
RST Overview content | ||
|
||
.. _sphinx-overview: | ||
|
||
Overview | ||
********* | ||
|
||
Sphinx Overview content | ||
|
||
Somewhere else | ||
============= | ||
|
||
This is a link to the RST Overview: :ref:`rst-overview` | ||
|
||
.. toctree:: | ||
:glob: | ||
|
||
* |
7 changes: 7 additions & 0 deletions
7
tests/Integration/tests/anchor/anchor-duplicate-warning/input/page.rst
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,7 @@ | ||
.. _rst-overview: | ||
|
||
==== | ||
Page | ||
==== | ||
|
||
RST Overview content |