Skip to content

Commit 60110b4

Browse files
authored
Add configuration options for math mode (#2056)
* add mathjax config to conf.py * mathjax3 * whatsnew * v0.11 whatsnew
1 parent 3bfd0d5 commit 60110b4

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

docs/sphinx/source/conf.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,9 @@
5656
'sphinx_toggleprompt',
5757
]
5858

59+
mathjax3_config = {'chtml': {'displayAlign': 'left',
60+
'displayIndent': '2em'}}
61+
5962
napoleon_use_rtype = False # group rtype on same line together with return
6063

6164
# Add any paths that contain templates here, relative to this directory.

docs/sphinx/source/whatsnew/v0.11.0.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,12 @@ Testing
2727

2828
Documentation
2929
~~~~~~~~~~~~~
30-
30+
* Configure mathjax to left-align and indent equations in docstrings. (:pull:`2056`)
3131

3232
Requirements
3333
~~~~~~~~~~~~
3434

3535

3636
Contributors
3737
~~~~~~~~~~~~
38+
* Cliff Hansen (:ghuser:`cwhanse`)

0 commit comments

Comments
 (0)