Skip to content

Commit 48a3c23

Browse files
committed
declare using MyST -> AST
1 parent 946875d commit 48a3c23

File tree

4 files changed

+73
-44
lines changed

4 files changed

+73
-44
lines changed

test/unit/index.md

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
1-
```{eval-rst}
2-
Test: Build all files
3-
=====================
1+
# Test: Build all files
42

5-
.. toctree::
6-
:glob:
3+
:::{toctree}
4+
:glob:
75

8-
**
9-
```
6+
**
7+
:::

test/unit/method.html

Lines changed: 45 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,49 @@
11
<?xml version="1.0"?>
22
<div class="body" role="main">
3-
<dl class="php method">
4-
<dt class="sig sig-object php" id="Foo::simplify">
5-
<span class="sig-name descname">
6-
<span class="pre">simplify</span>
7-
</span>
8-
<span class="sig-paren">(</span>
9-
<span class="sig-paren">)</span>
10-
<a class="headerlink" href="#Foo::simplify" title="Permalink to this definition">&#xB6;</a>
11-
</dt>
12-
<dd>
13-
<p>Simplify expression.</p>
14-
<dl class="field-list simple">
15-
<dt class="field-odd">Parameters<span class="colon">:</span></dt>
16-
<dd class="field-odd">
17-
<ul class="simple">
18-
<li>
19-
<p><strong>$args</strong> (<span><code class="xref php php-obj docutils literal notranslate"><span class="pre">array</span></code></span>) &#x2013; Associative array</p>
20-
</li>
21-
</ul>
22-
</dd>
23-
</dl>
24-
</dd>
25-
</dl>
3+
<section id="simple-method">
4+
<h1>Simple method<a class="headerlink" href="#simple-method" title="Permalink to this heading">&#xB6;</a></h1>
5+
<dl class="php class">
6+
<dt class="sig sig-object php" id="Foo">
7+
<em class="property">
8+
<span class="pre">class</span>
9+
</em>
10+
<span class="sig-name descname">
11+
<span class="pre">Foo</span>
12+
</span>
13+
<a class="headerlink" href="#Foo" title="Permalink to this definition">&#xB6;</a>
14+
</dt>
15+
<dd/>
16+
</dl>
17+
<dl class="php method">
18+
<dt class="sig sig-object php" id="Foo::test"><span class="sig-prename descclassname"><span class="pre">Foo::</span></span><span class="sig-name descname"><span class="pre">test</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="pre">$a</span></em>, <em class="sig-param"><span class="pre">...$args</span></em><span class="sig-paren">)</span><a class="headerlink" href="#Foo::test" title="Permalink to this definition">&#xB6;</a></dt>
19+
<dd>
20+
<p>Simple test method.</p>
21+
<dl class="field-list simple">
22+
<dt class="field-odd">Parameters<span class="colon">:</span></dt>
23+
<dd class="field-odd">
24+
<ul class="simple">
25+
<li>
26+
<p><strong>$args</strong> (<span><code class="xref php php-obj docutils literal notranslate"><span class="pre">array</span></code></span>) &#x2013; Associative array</p>
27+
</li>
28+
</ul>
29+
</dd>
30+
</dl>
31+
</dd>
32+
</dl>
33+
<section id="cross-linking">
34+
<h2>Cross linking<a class="headerlink" href="#cross-linking" title="Permalink to this heading">&#xB6;</a></h2>
35+
<ul class="simple">
36+
<li>
37+
<p>
38+
<a class="reference internal" href="#Foo::test" title="Foo::test">
39+
<code class="xref php php-meth docutils literal notranslate">
40+
<span class="pre">Foo::test()</span>
41+
</code>
42+
</a>
43+
</p>
44+
</li>
45+
</ul>
46+
</section>
47+
</section>
2648
<div class="clearer"/>
2749
</div>

test/unit/method.md

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,17 @@
1-
```{eval-rst}
2-
.. php:method:: Foo::simplify()
1+
# Simple method
2+
3+
:::{php:class} Foo
4+
:::
5+
6+
:::{php:method} test($a, ...$args)
37

4-
Simplify expression.
8+
Simple test method.
59

6-
:param array $args: Associative array
10+
```{eval-rst}
11+
:param array $args: Associative array
712
```
13+
:::
14+
15+
## Cross linking
16+
17+
- {php:meth}`Foo::test()`

test/unit/ns.md

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,14 @@
1-
```{eval-rst}
2-
Simple NS
3-
=========
1+
# Simple NS
42

5-
.. php:namespace:: Foo
3+
:::{php:namespace} Foo
4+
:::
65

7-
.. php:class:: A
6+
:::{php:class} A
7+
:::
88

9-
.. php:method:: simplify()
9+
:::{php:method} simplify()
10+
:::
1011

11-
Cross linking
12-
*************
12+
## Cross linking
1313

14-
* :php:meth:`A::simplify`
15-
```
14+
- {php:meth}`A::simplify`

0 commit comments

Comments
 (0)