Commit 1c2fb00d authored by Jason Rhinelander's avatar Jason Rhinelander

Deleted MathJax; use system one or global CDN one

parent 6ff0c1ee

Too many changes to show.

To preserve performance only 1000 of ${real_size} files are displayed.

# Tries to find MathJax.js. Once done this will define:
# MATHJAX_FOUND - System has MathJax
# MATHJAX_PATH - the directory containing MathJax.js
# MATHJAX_VERSION - the version of MathJax.js
#
# The following will be searched, in order of precedence:
# - MATHJAX_ROOT cmake variable
# - MATHJAX_ROOT environment variable
# - ${CMAKE_PREFIX_PATH}/share/javascript/mathjax
# - /usr/share/javascript/mathjax
#
include(FindPackageHandleStandardArgs)
find_path(MATHJAX_PATH MathJax.js
PATHS ${MATHJAX_ROOT}
$ENV{MATHJAX_ROOT}
"${CMAKE_PREFIX_PATH}/share/javascript/mathjax"
"${CMAKE_INSTALL_DATADIR}/javascript/mathjax"
"/usr/share/javascript/mathjax"
DOC "Root path of MathJax.js")
# Extract the version number from MathJax.js, which may or may not be minified.
if (NOT MATHJAX_PATH STREQUAL MATHJAX_PATH-NOTFOUND)
file(READ "${MATHJAX_PATH}/MathJax.js" _mathjax_js_source)
string(REGEX MATCH "MathJax\\.version *= *\"[0-9]+\\.[0-9]+\";" _mathjax_js_vers "${_mathjax_js_source}")
unset(_mathjax_js_source)
string(REGEX REPLACE ".*([0-9]+\\.[0-9]+).*" "\\1" MATHJAX_VERSION "${_mathjax_js_vers}")
unset(_mathjax_js_vers)
endif()
find_package_handle_standard_args(MathJax
REQUIRED_VARS MATHJAX_PATH
VERSION_VAR MATHJAX_VERSION
)
mark_as_advanced(MATHJAX_PATH)
......@@ -8,28 +8,32 @@ if(NOT DOXYGEN_DOT_FOUND)
message(FATAL_ERROR "Could NOT find dot (required by doxygen)")
endif()
# Can set NO_MATHJAX to true to skip looking for the system MathJax, in which
# case the default (MathJax via public CDN) will be used by doxygen.
set(mathjax_usable_path "")
if (NOT NO_MATHJAX)
find_package(MathJax 2.3)
if(MATHJAX_FOUND)
set(mathjax_usable_path "${MATHJAX_PATH}")
else()
message(STATUS "System MathJax not found: using public MathJax CDN instead. If MathJax is installed, try setting MATHJAX_ROOT")
endif()
endif()
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/Doxyfile.in ${CMAKE_CURRENT_BINARY_DIR}/Doxyfile @ONLY)
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/DoxygenLayout.xml.in ${CMAKE_CURRENT_BINARY_DIR}/DoxygenLayout.xml @ONLY)
file(COPY ${CMAKE_CURRENT_SOURCE_DIR}/MathJax DESTINATION ${CMAKE_CURRENT_BINARY_DIR}
PATTERN ".git*" EXCLUDE
PATTERN "docs" EXCLUDE
PATTERN "README*" EXCLUDE
PATTERN "test" EXCLUDE
PATTERN "unpacked" EXCLUDE
)
# Use a custom command to output doxygen's generated index file. Doing it this way ensures
# that 'make doc' only runs doxygen when something in src or include has changed.
add_custom_command(OUTPUT "api/index.xhtml"
add_custom_command(OUTPUT "api/index.html"
COMMAND ${DOXYGEN_EXECUTABLE} ${CMAKE_CURRENT_BINARY_DIR}/Doxyfile
DEPENDS "Doxyfile.in" "DoxygenLayout.xml.in" ${voting_src} ${voting_include}
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
COMMENT "Generating API documentation (using doxygen)"
)
add_custom_target(api_doc DEPENDS "api/index.xhtml")
add_custom_target(api_doc DEPENDS "api/index.html")
set_property(DIRECTORY APPEND PROPERTY
ADDITIONAL_MAKE_CLEAN_FILES "${CMAKE_CURRENT_BINARY_DIR}/api")
......
......@@ -20,7 +20,7 @@ STRIP_FROM_INC_PATH = @CMAKE_CURRENT_SOURCE_DIR@/../include
JAVADOC_AUTOBRIEF = YES
GENERATE_HTML = YES
HTML_FILE_EXTENSION = .xhtml
HTML_FILE_EXTENSION = .html
HTML_OUTPUT = api
LAYOUT_FILE = DoxygenLayout.xml
......@@ -34,7 +34,7 @@ HAVE_DOT = YES
DOT_IMAGE_FORMAT = svg
USE_MATHJAX = YES
MATHJAX_RELPATH = ../MathJax
MATHJAX_RELPATH = @mathjax_usable_path@
CLASS_GRAPH = YES
COLLABORATION_GRAPH = YES
......
.DS_Store
docs/build/html-mathjax-site
config/local/*.js
!config/local/local.js
unpacked/config/local/*.js
!unpacked/config/local/local.js
This diff is collapsed.
This diff is collapsed.
This is release branch v2.2 of MathJax.
# MathJax
## Beautiful math in all browsers
MathJax is an open-source JavaScript display engine for LaTeX, MathML, and
AsciiMath notation that works in all modern browsers. It was designed with
the goal of consolidating the recent advances in web technologies into a
single, definitive, math-on-the-web platform supporting the major browsers
and operating systems. It requires no setup on the part of the user (no
plugins to download or software to install), so the page author can write
web documents that include mathematics and be confident that users will be
able to view it naturally and easily. Simply include MathJax and some
mathematics in a web page, and MathJax does the rest.
Some of the main features of MathJax include:
- High-quality display of LaTeX, MathML, and AsciiMath notation in HTML pages
- Supported in most browsers with no plug-ins, extra fonts, or special
setup for the reader
- Easy for authors, flexible for publishers, extensible for developers
- Supports math accessibility, cut-and-paste interoperability, and other
advanced functionality
- Powerful API for integration with other web applications
See <http://www.mathjax.org/> for additional details.
## Installation and Usage
The MathJax installation and usage documentation is available in the
`docs/html` directory of the MathJax distribution (see
`docs/html/index.html` for the starting point). The documents are also
available on the MathJax web site on line at <http://www.mathjax.org/resources/docs/>.
## Community
The main MathJax website is <http://www.mathjax.org>, and it includes
announcements and other important information. MathJax is maintained and
distributed on GitHub at <http://github.com/mathjax/MathJax>. A user forum
for asking questions and getting assistance is hosted at Google, and the
bug tracker is hosted at GitHub:
Bug tracker: <https://github.com/mathjax/MathJax/issues>
MathJax-Users Group: <http://groups.google.com/group/mathjax-users>
Before reporting a bug, please check that it has not already been reported.
Also, please use the bug tracker for reporting bugs rather than the help forum.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
/*
* /MathJax/config/MMLorHTML.js
*
* Copyright (c) 2009-2013 The MathJax Consortium
*
* Part of the MathJax library.
* See http://www.mathjax.org for details.
*
* Licensed under the Apache License, Version 2.0;
* you may not use this file except in compliance with the License.
*
* http://www.apache.org/licenses/LICENSE-2.0
*/
(function(c,g){var f="2.2";var a=MathJax.Hub.CombineConfig("MMLorHTML",{prefer:{MSIE:"MML",Firefox:"HTML",Opera:"HTML",Chrome:"HTML",Safari:"HTML",other:"HTML"}});var e={Firefox:3,Opera:9.52,MSIE:6,Chrome:0.3,Safari:2,Konqueror:4};var b=(g.version==="0.0"||g.versionAtLeast(e[g]||0));var d=(g.isFirefox&&g.versionAtLeast("1.5"))||(g.isMSIE&&g.hasMathPlayer)||(g.isSafari&&g.versionAtLeast("5.0"))||(g.isOpera&&g.versionAtLeast("9.52"));c.Register.StartupHook("End Config",function(){var h=(a.prefer&&typeof(a.prefer)==="object"?a.prefer[MathJax.Hub.Browser]||a.prefer.other||"HTML":a.prefer);if(b||d){if(d&&(h==="MML"||!b)){if(MathJax.OutputJax.NativeMML){MathJax.OutputJax.NativeMML.Register("jax/mml")}else{c.config.jax.unshift("output/NativeMML")}c.Startup.signal.Post("NativeMML output selected")}else{if(MathJax.OutputJax["HTML-CSS"]){MathJax.OutputJax["HTML-CSS"].Register("jax/mml")}else{c.config.jax.unshift("output/HTML-CSS")}c.Startup.signal.Post("HTML-CSS output selected")}}else{c.PreProcess.disabled=true;c.prepareScripts.disabled=true;MathJax.Message.Set(["MathJaxNotSupported","Your browser does not support MathJax"],null,4000);c.Startup.signal.Post("MathJax not supported")}})})(MathJax.Hub,MathJax.Hub.Browser);MathJax.Ajax.loadComplete("[MathJax]/config/MMLorHTML.js");
/*
* /MathJax/config/Safe.js
*
* Copyright (c) 2009-2013 The MathJax Consortium
*
* Part of the MathJax library.
* See http://www.mathjax.org for details.
*
* Licensed under the Apache License, Version 2.0;
* you may not use this file except in compliance with the License.
*
* http://www.apache.org/licenses/LICENSE-2.0
*/
MathJax.Hub.Register.StartupHook("End Config",function(){if(!MathJax.Hub.config.extensions){MathJax.Hub.config.extensions=[]}MathJax.Hub.config.extensions.push("Safe.js")});MathJax.Ajax.loadComplete("[MathJax]/config/Safe.js");
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This diff is collapsed.
/* -*- Mode: Javascript; indent-tabs-mode:nil; js-indent-level: 2 -*- */
/* vim: set ts=2 et sw=2 tw=80: */
/*************************************************************
*
* MathJax/config/local/local.js
*
* Include changes and configuration local to your installation
* in this file. For example, common macros can be defined here
* (see below). To use this file, add "local/local.js" to the
* config array in MathJax.js or your MathJax.Hub.Config() call.