Skip to content

Commit 833ef8f

Browse files
committed
0.1.7: Update CDN version
Prepare for Trac 1.4 by dropping Genshi imports
1 parent f25dfd8 commit 833ef8f

File tree

5 files changed

+10
-10
lines changed

5 files changed

+10
-10
lines changed

mathjax/__init__.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
1-
from api import *
1+
import pkg_resources
2+
3+
pkg_resources.require('Trac >= 1.0')

mathjax/api.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,11 @@
88

99
from trac.core import Component, implements
1010
from trac.mimeview.api import IHTMLPreviewRenderer
11+
from trac.util.html import Markup, html as tag
1112
from trac.web.chrome import ITemplateProvider, add_script
1213
from trac.wiki.api import IWikiMacroProvider
1314

14-
from genshi.builder import tag
15-
from genshi.core import Markup
16-
17-
MATHJAX_URL = 'https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.0/MathJax.js'
15+
MATHJAX_URL = 'https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.9/MathJax.js'
1816

1917

2018
class MathJaxPlugin(Component):
@@ -31,7 +29,7 @@ class MathJaxPlugin(Component):
3129
}}}
3230
"""
3331

34-
implements(IHTMLPreviewRenderer, IWikiMacroProvider, ITemplateProvider)
32+
implements(IHTMLPreviewRenderer, ITemplateProvider, IWikiMacroProvider)
3533

3634
# IWikiMacroProvider methods
3735

mathjax/htdocs/update.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
jQuery(document).ready(function ($) {
1+
jQuery(function ($) {
22
var render = function () {
33
$("#content .trac-mathjax").each(function() {
44
var node = $(this);

setup.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
#tag_build = dev
33

44
[aliases]
5-
release = sdist bdist_wheel
5+
release = sdist bdist_wheel bdist_egg

setup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
from setuptools import setup
1212

13-
VERSION = '0.1.6'
13+
VERSION = '0.1.7'
1414
PACKAGE = 'mathjax'
1515

1616
setup(
@@ -31,6 +31,6 @@
3131
install_requires=[],
3232
zip_safe=False,
3333
entry_points={
34-
'trac.plugins': '%s = %s' % (PACKAGE, PACKAGE),
34+
'trac.plugins': '%s = %s.api' % (PACKAGE, PACKAGE),
3535
},
3636
)

0 commit comments

Comments
 (0)