Ticket #9774: trac_9774-scripts-mathjax.patch

File trac_9774-scripts-mathjax.patch, 2.0 KB (added by jason, 8 years ago)

apply to scripts repository

  • sage-apply-ticket

    # HG changeset patch
    # User Jason Grout <jason.grout@drake.edu>
    # Date 1326491924 21600
    # Node ID 32b211e977bcd92d7cfb740672b30ce450225634
    # Parent  717b528429803b82053ee773096494e925784933
    Update several jsmath references in the scripts repository
    
    diff --git a/sage-apply-ticket b/sage-apply-ticket
    a b  
    574574        # currently, we only check to see if the doc build script actually
    575575        # raised an exception.  i don't know if it's possible that it
    576576        # could do something else to signal bad behavior.
    577         verbosity_command("%s -docbuild all --jsmath html"%SAGE_COMMAND, tmp_file, verbose)
     577        verbosity_command("%s -docbuild all --mathjax html"%SAGE_COMMAND, tmp_file, verbose)
    578578
    579579        f = open(tmp_file)
    580580        for line in f.readlines():
  • sage-clone

    diff --git a/sage-clone b/sage-clone
    a b  
    124124
    125125try:
    126126    index = open(os.path.join(SAGE_ROOT, "devel/sage/doc/output/html/en/reference/index.html"))
    127     if index.read().find("jsmath") != -1:
    128         jsmath = " --jsmath"
     127    if index.read().find("mathjax") != -1:
     128        mathjax = " --mathjax"
    129129    else:
    130         jsmath = ""
     130        mathjax = ""
    131131    print ""
    132132    print "After cloning, if you change any Sage library files and want to rebuild"
    133133    print "the html version of the reference manual, use the command"
    134     print "    sage -docbuild%s reference html" % jsmath
     134    print "    sage -docbuild%s reference html" % mathjax
    135135    print "(after running 'sage -b')."
    136136    print ""
    137137    print "Note: if *before* cloning, you have changed any Sage library files"
     
    140140    print "to be incorporated into the reference manual."
    141141    print ""
    142142    print "Updating modification times for the documentation..."
    143     cmd = 'sage -docbuild%s --update-mtimes reference html' % jsmath
     143    cmd = 'sage -docbuild%s --update-mtimes reference html' % mathjax
    144144    print cmd
    145145    proc = subprocess.Popen([cmd], shell=True)
    146146    if proc.wait():