Skip to content

Commit

Permalink
Test support for Sphinx's version changes directives
Browse files Browse the repository at this point in the history
  • Loading branch information
wouterj committed Apr 16, 2023
1 parent 9be2145 commit 1f54b62
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 0 deletions.
18 changes: 18 additions & 0 deletions tests/Functional/tests/versionchanges/versionchanges.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<div class="phpdocumentor-versionchange versionadded">
<p class="versionmodified added">New in version 2.0</p>
<article>
<p>Some feature was introduced.</p>
</article>
</div>
<div class="phpdocumentor-versionchange versionchanged">
<p class="versionmodified changed">Changed in version 2.2</p>
<article>
<p>Some feature changed, prior to 2.2 it behaved differently.</p>
</article>
</div>
<div class="phpdocumentor-versionchange deprecated">
<p class="versionmodified deprecated">Deprecated since version 2.4</p>
<article>
<p>Don&#039;t use this feature, it&#039;ll be removed in 3.0.</p>
</article>
</div>
11 changes: 11 additions & 0 deletions tests/Functional/tests/versionchanges/versionchanges.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
.. versionadded:: 2.0

Some feature was introduced.

.. versionchanged:: 2.2

Some feature changed, prior to 2.2 it behaved differently.

.. deprecated:: 2.4

Don't use this feature, it'll be removed in 3.0.

0 comments on commit 1f54b62

Please sign in to comment.