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 88
99from trac .core import Component , implements
1010from trac .mimeview .api import IHTMLPreviewRenderer
11+ from trac .util .html import Markup , html as tag
1112from trac .web .chrome import ITemplateProvider , add_script
1213from 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
2018class 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
Original file line number Diff line number Diff line change 1- jQuery ( document ) . ready ( function ( $ ) {
1+ jQuery ( function ( $ ) {
22 var render = function ( ) {
33 $ ( "#content .trac-mathjax" ) . each ( function ( ) {
44 var node = $ ( this ) ;
Original file line number Diff line number Diff line change 22# tag_build = dev
33
44[aliases]
5- release = sdist bdist_wheel
5+ release = sdist bdist_wheel bdist_egg
Original file line number Diff line number Diff line change 1010
1111from setuptools import setup
1212
13- VERSION = '0.1.6 '
13+ VERSION = '0.1.7 '
1414PACKAGE = 'mathjax'
1515
1616setup (
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)
You can’t perform that action at this time.
0 commit comments