Skip to content

Commit

Permalink
0.1.7: Update CDN version
Browse files Browse the repository at this point in the history
Prepare for Trac 1.4 by dropping Genshi imports
  • Loading branch information
rjollos committed Dec 9, 2020
1 parent f25dfd8 commit 833ef8f
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 10 deletions.
4 changes: 3 additions & 1 deletion mathjax/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
from api import *
import pkg_resources

pkg_resources.require('Trac >= 1.0')
8 changes: 3 additions & 5 deletions mathjax/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,11 @@

from trac.core import Component, implements
from trac.mimeview.api import IHTMLPreviewRenderer
from trac.util.html import Markup, html as tag
from trac.web.chrome import ITemplateProvider, add_script
from trac.wiki.api import IWikiMacroProvider

from genshi.builder import tag
from genshi.core import Markup

MATHJAX_URL = 'https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.0/MathJax.js'
MATHJAX_URL = 'https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.9/MathJax.js'


class MathJaxPlugin(Component):
Expand All @@ -31,7 +29,7 @@ class MathJaxPlugin(Component):
}}}
"""

implements(IHTMLPreviewRenderer, IWikiMacroProvider, ITemplateProvider)
implements(IHTMLPreviewRenderer, ITemplateProvider, IWikiMacroProvider)

# IWikiMacroProvider methods

Expand Down
2 changes: 1 addition & 1 deletion mathjax/htdocs/update.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
jQuery(document).ready(function ($) {
jQuery(function ($) {
var render = function () {
$("#content .trac-mathjax").each(function() {
var node = $(this);
Expand Down
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
#tag_build = dev

[aliases]
release = sdist bdist_wheel
release = sdist bdist_wheel bdist_egg
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

from setuptools import setup

VERSION = '0.1.6'
VERSION = '0.1.7'
PACKAGE = 'mathjax'

setup(
Expand All @@ -31,6 +31,6 @@
install_requires=[],
zip_safe=False,
entry_points={
'trac.plugins': '%s = %s' % (PACKAGE, PACKAGE),
'trac.plugins': '%s = %s.api' % (PACKAGE, PACKAGE),
},
)

0 comments on commit 833ef8f

Please sign in to comment.