diff options
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/root/conf.py | 3 | ||||
| -rw-r--r-- | tests/root/contents.txt | 1 | ||||
| -rw-r--r-- | tests/root/math.txt | 22 |
3 files changed, 25 insertions, 1 deletions
diff --git a/tests/root/conf.py b/tests/root/conf.py index fd04933b..5d449b10 100644 --- a/tests/root/conf.py +++ b/tests/root/conf.py @@ -23,7 +23,8 @@ sys.path.append(os.path.abspath('.')) # Add any Sphinx extension module names here, as strings. They can be extensions # coming with Sphinx (named 'sphinx.ext.*') or your custom ones. -extensions = ['ext', 'sphinx.ext.autodoc'] +extensions = ['ext', 'sphinx.ext.autodoc', 'sphinx.ext.jsmath'] +jsmath_path = 'dummy.js' # Add any paths that contain templates here, relative to this directory. templates_path = ['_templates'] diff --git a/tests/root/contents.txt b/tests/root/contents.txt index f890f172..84f380cc 100644 --- a/tests/root/contents.txt +++ b/tests/root/contents.txt @@ -13,6 +13,7 @@ Contents: images includes markup + math Indices and tables ================== diff --git a/tests/root/math.txt b/tests/root/math.txt new file mode 100644 index 00000000..36b24494 --- /dev/null +++ b/tests/root/math.txt @@ -0,0 +1,22 @@ +Test math extensions +==================== + +This is inline math: :math:`a^2 + b^2 = c^2`. + +.. math:: a^2 + b^2 = c^2 + +.. math:: + + a^2 + b^2 = c^2 + +.. math:: + :label: foo + + e^{i\pi} = 1 + +.. math:: + :label: + + e^{ix} = \cos x + i\sin x + +Referencing equation :eq:`foo`. |
