File tree Expand file tree Collapse file tree 5 files changed +10
-10
lines changed Expand file tree Collapse file tree 5 files changed +10
-10
lines changed Original file line number Diff line number Diff line change 1
- from api import *
1
+ import pkg_resources
2
+
3
+ pkg_resources .require ('Trac >= 1.0' )
Original file line number Diff line number Diff line change 8
8
9
9
from trac .core import Component , implements
10
10
from trac .mimeview .api import IHTMLPreviewRenderer
11
+ from trac .util .html import Markup , html as tag
11
12
from trac .web .chrome import ITemplateProvider , add_script
12
13
from trac .wiki .api import IWikiMacroProvider
13
14
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'
18
16
19
17
20
18
class MathJaxPlugin (Component ):
@@ -31,7 +29,7 @@ class MathJaxPlugin(Component):
31
29
}}}
32
30
"""
33
31
34
- implements (IHTMLPreviewRenderer , IWikiMacroProvider , ITemplateProvider )
32
+ implements (IHTMLPreviewRenderer , ITemplateProvider , IWikiMacroProvider )
35
33
36
34
# IWikiMacroProvider methods
37
35
Original file line number Diff line number Diff line change 1
- jQuery ( document ) . ready ( function ( $ ) {
1
+ jQuery ( function ( $ ) {
2
2
var render = function ( ) {
3
3
$ ( "#content .trac-mathjax" ) . each ( function ( ) {
4
4
var node = $ ( this ) ;
Original file line number Diff line number Diff line change 2
2
# tag_build = dev
3
3
4
4
[aliases]
5
- release = sdist bdist_wheel
5
+ release = sdist bdist_wheel bdist_egg
Original file line number Diff line number Diff line change 10
10
11
11
from setuptools import setup
12
12
13
- VERSION = '0.1.6 '
13
+ VERSION = '0.1.7 '
14
14
PACKAGE = 'mathjax'
15
15
16
16
setup (
31
31
install_requires = [],
32
32
zip_safe = False ,
33
33
entry_points = {
34
- 'trac.plugins' : '%s = %s' % (PACKAGE , PACKAGE ),
34
+ 'trac.plugins' : '%s = %s.api ' % (PACKAGE , PACKAGE ),
35
35
},
36
36
)
You can’t perform that action at this time.
0 commit comments