#6673: [with patch, needs review] Set up jsMath extensions, macros, etc., for 
the
documentation
---------------------------+------------------------------------------------
 Reporter:  mpatel         |       Owner:  tba         
     Type:  defect         |      Status:  new         
 Priority:  minor          |   Milestone:  sage-4.1.2  
Component:  documentation  |    Keywords:              
 Reviewer:  John Palmieri  |      Author:  Mitesh Patel
   Merged:                 |  
---------------------------+------------------------------------------------

Comment(by mpatel):

 Rather inconveniently, I described the patch, briefly, in a
 [comment:ticket:4714:8 comment] at #4714.  I apologize for not adding some
 information here.

 With Sphinx 0.6.2 (cf. #6586), we might use
 [http://sphinx.pocoo.org/theming.html#static-templates static templates]
 to insert the macros on-the-fly.  A test:

  * Move `jsmath_sage.js` to `jsmath_sage.js_t`
  * Temporarily sandwich the `macros: { }` block between `{% raw %}` and
 `{% endraw %}` to placate Jinja.
  * Add the comment `// {{ foo }}` somewhere.
  * Run `sage -docbuild testreference html -jv3 -S -Afoo=bar`.

 I find `// bar` in place of the "`foo`" statement in
 `_static/jsmath_sage.js`.  In the next few days, I'll try to create a new
 ticket with a proper patch.

 Since we're not there yet, I give the "referee" patch a positive review.

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/6673#comment:3>
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to