mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Test suite update for math extension.
This commit is contained in:
@@ -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']
|
||||
|
||||
@@ -13,6 +13,7 @@ Contents:
|
||||
images
|
||||
includes
|
||||
markup
|
||||
math
|
||||
|
||||
Indices and tables
|
||||
==================
|
||||
|
||||
22
tests/root/math.txt
Normal file
22
tests/root/math.txt
Normal file
@@ -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`.
|
||||
Reference in New Issue
Block a user