Skip to content

Commit e4bf98b

Browse files
committed
do not rely on rst parser only
1 parent bd2d2e3 commit e4bf98b

File tree

6 files changed

+13
-3
lines changed

6 files changed

+13
-3
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ jobs:
3333
run: |
3434
python -m pip install --upgrade pip
3535
pip install -r requirements.txt
36+
pip install -r test/unit/requirements.txt
3637
pip install .
3738
3839
- name: Build Test
@@ -66,6 +67,7 @@ jobs:
6667
git add . -N && git diff --exit-code
6768
6869
- name: Push Unit Changes
70+
if: failure()
6971
uses: stefanzweifel/git-auto-commit-action@v4
7072
with:
7173
branch: ${{ github.head_ref || github.ref_name }}.changes

test/unit/conf.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,14 @@
44

55
extensions = [
66
'sphinxcontrib.phpdomain',
7+
'myst_parser',
78
]
89

9-
source_suffix = '.rst'
10+
myst_enable_extensions = ['colon_fence']
1011

12+
source_suffix = '.rst'
1113
master_doc = 'index'
1214

1315
exclude_patterns = ['_build']
1416

15-
pygments_style = 'sphinx'
16-
1717
html_theme = 'default'
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
1+
```{eval-rst}
12
Test: Build all files
23
=====================
34
45
.. toctree::
56
:glob:
67
78
**
9+
```
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
1+
```{eval-rst}
12
.. php:method:: Foo::simplify()
23
34
Simplify expression.
45
56
:param array $args: Associative array
7+
```

test/unit/ns.rst renamed to test/unit/ns.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
```{eval-rst}
12
Simple NS
23
=========
34
@@ -61,3 +62,4 @@ Cross linking::
6162
6263
- :php:meth:`X2::simplify`
6364
- :php:meth:`A2::simplify`
65+
```

test/unit/requirements.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
sphinx
2+
myst-parser

0 commit comments

Comments
 (0)