#4714: use easy/load.js when loading jsmath
---------------------------+------------------------------------------------
Reporter: jason | Owner: tba
Type: defect | Status: new
Priority: major | Milestone: sage-4.1.1
Component: documentation | Keywords:
Reviewer: | Author:
Merged: |
---------------------------+------------------------------------------------
Comment(by mpatel):
This [attachment:trac_4714-minimal_doc.patch p(r)oof of concept], which
depends on a [attachment:ticket:6614:trac_6614-jsmath_repo_v2.patch patch]
at #6614,
* Adds `doc/common/static/jsmath_sage.js`.
* Sets `jsmath_path=jsmath_sage.js` in `doc/common/conf.py`.
The new static file is jsMath's "stock" `easy/load.js` plus all Sage-
related customizations I could find, including extensions, macros, and a
few other bits from `notebook.py`. I've also made changes below `DO NOT
MAKE CHANGES BELOW THIS` (gasp!) to help the loader find jsMath from its
new [relative] location.
I think this means we don't need to patch the spkg. Later, we may be able
to use Sphinx 0.6.2's static templates to insert an updated macro list at
build time (cf. #6586).
Perhaps we can do something similar for the notebook, e.g., in
`sage/server/notebook/templates`.
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/4714#comment:8>
Sage <http://sagemath.org/>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica,
and MATLAB
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"sage-trac" group.
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/sage-trac?hl=en
-~----------~----~----~----~------~----~------~--~---