I'm at Sphinx 1.1.3 and loacl mathjax works with:
extensions = ['sphinx.ext.mathjax']
mathjax_path = '/usr/share/javascript/mathjax/MathJax.js?config=default'
On Tuesday, January 24, 2012 3:44:46 AM UTC+4, bic wrote:
>
> When I put:
>
> <code>
> # Add any Sphinx extension module names here, as strings. They can be
> extensions
> # coming with Sphinx (named 'sphinx.ext.*') or your custom ones.
> extensions = ['sphinx.ext.todo', 'sphinx.ext.mathjax']
> mathjax_path = ['MathJax/MathJax.js'] ## bic 1/23/12
> </code>
>
> in conf.py I get the following error log:
> <log>
> # Sphinx version: 1.1.2
> # Python version: 2.7.2
> # Docutils version: 0.8.1 release
> # Jinja2 version: 2.6
> Traceback (most recent call last):
> File "/Library/Frameworks/Python.framework/Versions/7.2/lib/
> python2.7/site-packages/Sphinx-1.1.2-py2.7.egg/sphinx/cmdline.py",
> line 188, in main
> warningiserror, tags)
> File "/Library/Frameworks/Python.framework/Versions/7.2/lib/
> python2.7/site-packages/Sphinx-1.1.2-py2.7.egg/sphinx/application.py",
> line 134, in __init__
> self._init_builder(buildername)
> File "/Library/Frameworks/Python.framework/Versions/7.2/lib/
> python2.7/site-packages/Sphinx-1.1.2-py2.7.egg/sphinx/application.py",
> line 195, in _init_builder
> self.emit('builder-inited')
> File "/Library/Frameworks/Python.framework/Versions/7.2/lib/
> python2.7/site-packages/Sphinx-1.1.2-py2.7.egg/sphinx/application.py",
> line 314, in emit
> results.append(callback(self, *args))
> File "/Library/Frameworks/Python.framework/Versions/7.2/lib/
> python2.7/site-packages/Sphinx-1.1.2-py2.7.egg/sphinx/ext/mathjax.py",
> line 58, in builder_inited
> app.add_javascript(app.config.mathjax_path)
> File "/Library/Frameworks/Python.framework/Versions/7.2/lib/
> python2.7/site-packages/Sphinx-1.1.2-py2.7.egg/sphinx/application.py",
> line 470, in add_javascript
> posixpath.join('_static', filename))
> File "/Library/Frameworks/Python.framework/Versions/7.2/lib/
> python2.7/posixpath.py", line 66, in join
> if b.startswith('/'):
> AttributeError: 'list' object has no attribute 'starts with'
> </log>
>
> Commenting out the mathjax_path removes the error, but I can't use a
> local MathJax.
> <code>
> # Add any Sphinx extension module names here, as strings. They can be
> extensions
> # coming with Sphinx (named 'sphinx.ext.*') or your custom ones.
> extensions = ['sphinx.ext.todo', 'sphinx.ext.mathjax']
> #mathjax_path = ['MathJax/MathJax.js'] ## bic 1/23/12
> </code>
>
> Thanks looking.
>
> -Bruce
>
--
You received this message because you are subscribed to the Google Groups
"sphinx-dev" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/sphinx-dev/-/r8XNYSbYfU8J.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/sphinx-dev?hl=en.