#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):
The latest patch at #6614 tells Sphinx to copy jsMath directly from
`javascript_local` to `doc/output/html/en/*/_static`. In particular, it
does this ''before'' it copies the files in `doc/common/static`. How
about putting a custom `easy/load.js` there?
If we're not adding new doc macros frequently, we could just paste them
from `latex_macros.py`. Or we might add an option to `sage -docbuild` to
regenerate `load.js` on demand (cf. #6187). If we overwrite the file
during ''every'' build, we may need to synchronize access from multiple
Sphinx processes (cf. #6255).
(Note: Sphinx 0.6.2 supports HTML themes, including
[http://sphinx.pocoo.org/theming.html#static-templates static templates].
It's tempting to create a template `static/easy/load.js_t`. However,
Sphinx does not process user templates in `static`'s ''subdirectories''.)
On the notebook: I believe we can move nearly all jsMath directives from
`notebook.py` to a custom `javascript_local/jsmath/easy/load.js` that's
overwritten on notebook start-up. Perhaps in `twist.py`?
I'd really like to get moving on this, provided there's agreement. Of
course, we can split this into two tickets, [at least] one each for the
docs and notebook. Thoughts?
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/4714#comment:7>
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
-~----------~----~----~----~------~----~------~--~---