Compare commits
52 Commits
2.6.1
...
v2.6-racke
Author | SHA1 | Date | |
---|---|---|---|
![]() |
1419620d68 | ||
![]() |
8bdc1999fa | ||
![]() |
2287de322d | ||
![]() |
0585c0b74a | ||
![]() |
0d6a3a49dd | ||
![]() |
9fb852d1ef | ||
![]() |
6f8805033c | ||
![]() |
9bb1d81212 | ||
![]() |
a555db20c9 | ||
![]() |
73a45ea0ec | ||
![]() |
0b9355a7d1 | ||
![]() |
ec4623a80f | ||
![]() |
062820300a | ||
![]() |
7e0a9e441e | ||
![]() |
f0b14cecf3 | ||
![]() |
655648db7f | ||
![]() |
ebf429472f | ||
![]() |
8f56ffa76c | ||
![]() |
745f99f219 | ||
![]() |
c822826836 | ||
![]() |
e011a62960 | ||
![]() |
fe7bce53af | ||
![]() |
91c1cf63b8 | ||
![]() |
7ae9962028 | ||
![]() |
621bfa5c68 | ||
![]() |
4cc4d13be8 | ||
![]() |
3fa882906f | ||
![]() |
2be5e99d92 | ||
![]() |
673d907988 | ||
![]() |
68b5d75dc5 | ||
![]() |
6b0ce952f9 | ||
![]() |
6e42bb8f2d | ||
![]() |
f7d426c155 | ||
![]() |
8b7f3d5959 | ||
![]() |
1f34ae1858 | ||
![]() |
96955f5ce2 | ||
![]() |
91cf225965 | ||
![]() |
5fbf0b2531 | ||
![]() |
98ea9c5c26 | ||
![]() |
85cdc0c13e | ||
![]() |
48322fc7e5 | ||
![]() |
eec24e97fe | ||
![]() |
a02ed2e604 | ||
![]() |
08932e468f | ||
![]() |
1350d174f6 | ||
![]() |
5173fc16bb | ||
![]() |
31da784b6f | ||
![]() |
17c275cc15 | ||
![]() |
8291a7cfe4 | ||
![]() |
d41e74cfcd | ||
![]() |
f805e67beb | ||
![]() |
07cd282feb |
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -4,3 +4,4 @@ config/local/*.js
|
|||
!config/local/local.js
|
||||
unpacked/config/local/*.js
|
||||
!unpacked/config/local/local.js
|
||||
node_modules
|
20
.travis.yml
20
.travis.yml
|
@ -1,18 +1,14 @@
|
|||
language: node_js
|
||||
node_js:
|
||||
- '5'
|
||||
- '5'
|
||||
sudo: false
|
||||
env:
|
||||
global:
|
||||
- secure: kPOwvkCDLpwJneCPeKUxbEZSsPWPpOpIK2wKf5Fm2BqJlUm+Wm8g5GZy1WHjo/IdNyb5mDIJzxWcr/uYDykehkNR1tRVrzUfRCVWqOFXGeI5P9e0zBaXp/GW3kfKivWNhpec8WSu9ZPjQhsRfDCjKRCHAB3JzwDWF8Kfl9UeBicFXQVRo+9zo3okRLsuJsEP/0MEtN0GxdsfKDleSW28AZLxu7raoJHHFY1t3QxMoYDd5312Pz7smv1/l4RG/P6XZZrtWEeVwctrNbU0CBO8tX8nqUCHA0bWyOW+crf4/NZZGg9e1RUq8eDbVUd7iGq81nr0+F7IvvwbvSLmpU2/b9hbcF4i4MpIE1Yy/0+zUhuTj1Yy8tw/irc8Y6Nc/g25BJBSCrfdPQnnbAESUv2ywbHC8vBztLca1xBQbQ+q0N0YYUK/mgxUiOznwTQ3PRIs/SENSdhFufT9pCRBp+lvkY+DVHSt6ogPYdRmyF/KPdcDWu5GqKrUs4KyroAzMLX/brw9+TjASnjTipnUWSlTQpoXjf1aQQuescqZMAbxEZH5ed6YvyPehdDqB8bpkeZ9OUkP8pV1kndSnnUsDH7Kn7ZyYUI20FNsU8Yqp1v94jOfrz2np2N9mJUT3teDy8k4yIxTERYSfbBcn4X30YX8fwRk/8skHRtgU4VOpUnIjkw=
|
||||
script:
|
||||
- npm install
|
||||
- npm test
|
||||
- cp travis-auto-deploy.sh ~/travis-auto-deploy.sh
|
||||
- sh ~/travis-auto-deploy.sh
|
||||
branches:
|
||||
only:
|
||||
- master
|
||||
- /^\d+\.\d+/
|
||||
deploy:
|
||||
provider: npm
|
||||
email: manager@mathjax.org
|
||||
api_key:
|
||||
secure: q7e4haV9hAHng28w6EBnOc6ptorxjxeATW6ZocYiPk68To3IUHMt615rzyotfA5TBCcPJyeUJiqNcuUXbh+r8HmER4bJsjaGMpETPSkdvzQ1bYg2EJEvT6V/xc+sRGoj5ri/F2uH99AYnF99IugjeWvjpp5F5z370fJIMiUmXX8=
|
||||
on:
|
||||
tags: true
|
||||
- v2.6-racket-mini-source
|
||||
- v2.7.1-racket-mini-source
|
||||
|
|
445
Gruntfile.js
Normal file
445
Gruntfile.js
Normal file
|
@ -0,0 +1,445 @@
|
|||
/*
|
||||
MathJax-grunt-cleaner
|
||||
=====================
|
||||
A grunt file to reduce the footprint of a MathJax installation
|
||||
|
||||
Latest version at https://github.com/pkra/MathJax-grunt-cleaner
|
||||
|
||||
Copyright (c) 2014 Mathjax Consortium
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
The above copyright notice and this permission notice shall be included in
|
||||
all copies or substantial portions of the Software.
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||
THE SOFTWARE.
|
||||
*/
|
||||
|
||||
module.exports = function(grunt) {
|
||||
"use strict";
|
||||
// # Notes #
|
||||
// NEVER remove:
|
||||
//
|
||||
// * LICENSE -- the Apache license.
|
||||
// * jax/element/mml -- this implements MathJax"s internal format. Keep either the packed or unpacked copy.
|
||||
//
|
||||
|
||||
grunt.initConfig({
|
||||
pkg: grunt.file.readJSON("package.json"),
|
||||
clean: {
|
||||
//
|
||||
// ## Early choices
|
||||
// `unpacked` for development
|
||||
// ``packed` for production
|
||||
unpacked: [
|
||||
"unpacked"
|
||||
],
|
||||
packed: [
|
||||
"config",
|
||||
"docs",
|
||||
"extensions",
|
||||
"jax",
|
||||
"localization",
|
||||
"MathJax.js"
|
||||
],
|
||||
// If you don"t need combined configuration files or want to build your own:
|
||||
allConfigs: [
|
||||
"config",
|
||||
"unpacked/config"
|
||||
],
|
||||
//
|
||||
// ## Choosing a font
|
||||
// See http://docs.mathjax.org/en/latest/font-support.html#font-configuration for background information
|
||||
//
|
||||
// 1. Remove font files and font data for fonts you won"t use.
|
||||
// **IMPORTANT.** Make sure to prevent fallbacks and local fonts in your configuration!
|
||||
//
|
||||
//
|
||||
fontAsana: [
|
||||
"fonts/HTML-CSS/Asana-Math",
|
||||
"jax/output/HTML-CSS/fonts/Asana-Math",
|
||||
"unpacked/jax/output/HTML-CSS/fonts/Asana-Math",
|
||||
"jax/output/SVG/fonts/Asana-Math",
|
||||
"unpacked/jax/output/SVG/fonts/Asana-Math"
|
||||
],
|
||||
fontGyrePagella: [
|
||||
"fonts/HTML-CSS/Gyre-Pagella",
|
||||
"jax/output/HTML-CSS/fonts/Gyre-Pagella",
|
||||
"unpacked/jax/output/HTML-CSS/fonts/Gyre-Pagella",
|
||||
"jax/output/SVG/fonts/Gyre-Pagella",
|
||||
"unpacked/jax/output/SVG/fonts/Gyre-Pagella"
|
||||
],
|
||||
fontGyreTermes: [
|
||||
"fonts/HTML-CSS/Gyre-Termes",
|
||||
"jax/output/HTML-CSS/fonts/Gyre-Termes",
|
||||
"unpacked/jax/output/HTML-CSS/fonts/Gyre-Termes",
|
||||
"jax/output/SVG/fonts/Gyre-Termes",
|
||||
"unpacked/jax/output/SVG/fonts/Gyre-Termes"
|
||||
],
|
||||
fontLatinModern: [
|
||||
"fonts/HTML-CSS/Latin-Modern",
|
||||
"jax/output/HTML-CSS/fonts/Latin-Modern",
|
||||
"unpacked/jax/output/HTML-CSS/fonts/Latin-Modern",
|
||||
"jax/output/SVG/fonts/Latin-Modern",
|
||||
"unpacked/jax/output/SVG/fonts/Latin-Modern"
|
||||
],
|
||||
fontNeoEuler: [
|
||||
"fonts/HTML-CSS/Neo-Euler",
|
||||
"jax/output/HTML-CSS/fonts/Neo-Euler",
|
||||
"unpacked/jax/output/HTML-CSS/fonts/Neo-Euler",
|
||||
"jax/output/SVG/fonts/Neo-Euler",
|
||||
"unpacked/jax/output/SVG/fonts/Neo-Euler"
|
||||
],
|
||||
fontStix: [
|
||||
"fonts/HTML-CSS/STIX",
|
||||
"jax/output/HTML-CSS/fonts/STIX",
|
||||
"unpacked/jax/output/HTML-CSS/fonts/STIX",
|
||||
"jax/output/SVG/fonts/STIX",
|
||||
"unpacked/jax/output/SVG/fonts/STIX"
|
||||
],
|
||||
fontStixWeb: [
|
||||
"fonts/HTML-CSS/STIX-Web",
|
||||
"jax/output/HTML-CSS/fonts/STIX-Web",
|
||||
"unpacked/jax/output/HTML-CSS/fonts/STIX-Web",
|
||||
"jax/output/SVG/fonts/STIX-Web",
|
||||
"unpacked/jax/output/SVG/fonts/STIX-Web"
|
||||
],
|
||||
fontTeX: [
|
||||
"fonts/HTML-CSS/TeX",
|
||||
"jax/output/HTML-CSS/fonts/TeX",
|
||||
"unpacked/jax/output/HTML-CSS/fonts/TeX",
|
||||
"jax/output/SVG/fonts/TeX",
|
||||
"unpacked/jax/output/SVG/fonts/TeX"
|
||||
],
|
||||
//
|
||||
// Remove font formats
|
||||
// If you know you only need a specific format of your remaining fonts (e.g., woff), then you can delete the others.
|
||||
dropFonts: [ // if you use SVG output, you can drop all font formats (SVG output uses the data in `jax/output/SVG/fonts/...`)
|
||||
"fonts"
|
||||
],
|
||||
eot: [
|
||||
"fonts/**/eot"
|
||||
],
|
||||
otf: [
|
||||
"fonts/**/otf"
|
||||
],
|
||||
png: [
|
||||
"fonts/**/png"
|
||||
],
|
||||
svg: [ // **NOT** related to the SVG output!
|
||||
"fonts/**/svg"
|
||||
],
|
||||
woff: [
|
||||
"fonts/**/woff"
|
||||
],
|
||||
// ## Choose the input
|
||||
// Remove input that you don"t need.
|
||||
// **Note.** This includes combined configuration files.
|
||||
asciimathInput: [
|
||||
"config/AM*",
|
||||
"config/TeX-MML-AM*",
|
||||
"jax/input/AsciiMath",
|
||||
"unpacked/config/AM*",
|
||||
"unpacked/config/TeX-MML-AM*",
|
||||
"unpacked/jax/input/AsciiMath"
|
||||
],
|
||||
mathmlInput: [
|
||||
"config/MML*",
|
||||
"config/TeX-MML*",
|
||||
"config/TeX-AMS-MML*",
|
||||
"jax/input/MathML",
|
||||
"unpacked/config/MathML*",
|
||||
"unpacked/jax/input/MathML"
|
||||
],
|
||||
texInput: [
|
||||
"config/TeX*",
|
||||
"jax/input/TeX",
|
||||
"unpacked/config/TeX*",
|
||||
"unpacked/jax/input/TeX"
|
||||
],
|
||||
// ## Extensions
|
||||
extensionsAsciimath: [
|
||||
"extensions/asciimath2jax.js",
|
||||
"unpacked/extensions/asciimath2jax.js"
|
||||
],
|
||||
extensionsMathml: [
|
||||
"extensions/MathML",
|
||||
"extensions/mml2jax.js",
|
||||
"unpacked/extensions/MathML",
|
||||
"unpacked/extensions/mml2jax.js"
|
||||
],
|
||||
extensionsTeX: [
|
||||
"extensions/TeX",
|
||||
"extensions/jsMath2jax.js",
|
||||
"extensions/tex2jax.js",
|
||||
"unpacked/extensions/TeX",
|
||||
"unpacked/extensions/jsMath2jax.js",
|
||||
"unpacked/extensions/tex2jax.js"
|
||||
],
|
||||
extensionHtmlCss: [
|
||||
"extensions/HTML-CSS",
|
||||
"unpacked/extensions/HTML-CSS"
|
||||
],
|
||||
// ## Choose Output
|
||||
htmlCssOutput: [
|
||||
"config/*HTMLorMML.js",
|
||||
"config/*HTMLorMML-full.js",
|
||||
"unpacked/config/*HTMLorMML.js",
|
||||
"unpacked/config/*HTMLorMML-full.js",
|
||||
"jax/output/HTML-CSS",
|
||||
"unpacked/jax/output/HTML-CSS"
|
||||
],
|
||||
mathmlOutput: [
|
||||
"config/*HTMLorMML.js",
|
||||
"config/*HTMLorMML-full.js",
|
||||
"unpacked/config/*HTMLorMML.js",
|
||||
"unpacked/config/*HTMLorMML-full.js",
|
||||
"jax/output/NativeMML",
|
||||
"unpacked/jax/output/NativeMML"
|
||||
],
|
||||
svgOutput: [
|
||||
"config/*SVG.js",
|
||||
"config/*SVG-full.js",
|
||||
"unpacked/config/*SVG.js",
|
||||
"unpacked/config/*SVG-full.js",
|
||||
"jax/output/SVG",
|
||||
"unpacked/jax/output/SVG"
|
||||
],
|
||||
commonHtmlOutput: [
|
||||
"configs/*CHTML.js",
|
||||
"configs/*CHTML-full.js",
|
||||
"unpacked/config/*CHTML.js",
|
||||
"unpacked/configs/*CHTML-full.js",
|
||||
"jax/output/CommonHTML",
|
||||
"unpacked/jax/output/CommonHTML",
|
||||
"extensions/CHTML-preview.js",
|
||||
"unpacked/extensions/CHTML-preview.js"
|
||||
],
|
||||
previewHtmlOutput: [
|
||||
"jax/output/PreviewHTML",
|
||||
"unpacked/jax/output/PreviewHTML",
|
||||
"extensions/fast-preview.js",
|
||||
"unpacked/extensions/fast-preview.js",
|
||||
"extensions/CHTML-preview.js",
|
||||
"unpacked/extensions/CHTML-preview.js"
|
||||
],
|
||||
plainSourceOutput: [
|
||||
"jax/output/PlainSource",
|
||||
"unpacked/jax/output/PlainSource"
|
||||
],
|
||||
// ## Locales
|
||||
// Removes all locale files. Change this as needed to keep your preferred language.
|
||||
// **NOTE.** English strings are hardcoded.
|
||||
// **NOTE.** If you fix the locale, drop the menu entry: http://docs.mathjax.org/en/latest/options/MathMenu.html#configure-mathmenu
|
||||
locales: [
|
||||
"localization",
|
||||
"unpacked/localization"
|
||||
],
|
||||
// ## Misc.
|
||||
miscConfig: [
|
||||
"config/local",
|
||||
"unpacked/config/local",
|
||||
"config/Accessible-full.js",
|
||||
"unpacked/config/Accessible-full.js",
|
||||
"config/Accessible.js",
|
||||
"unpacked/config/Accessible.js",
|
||||
//"config/default.js",
|
||||
//"unpacked/config/default.js",
|
||||
"config/Safe.js",
|
||||
"unpacked/config/Safe.js"
|
||||
],
|
||||
fullConfig: [
|
||||
"config/*-full.js"
|
||||
],
|
||||
restConfig: [
|
||||
"config/AM_CHTML.js",
|
||||
"config/AM_HTMLorMML.js",
|
||||
"config/AM_SVG.js",
|
||||
//"config/default.js",
|
||||
"config/MML_CHTML.js",
|
||||
"config/MML_HTMLorMML.js",
|
||||
"config/MMLorHTML.js",
|
||||
"config/MML_SVG.js",
|
||||
"config/TeX-AMS_CHTML.js",
|
||||
"config/TeX-AMS_HTML.js",
|
||||
"config/TeX-AMS-MML_HTMLorMML.js",
|
||||
"config/TeX-AMS-MML_SVG.js",
|
||||
"config/TeX-AMS_SVG.js",
|
||||
"config/TeX-MML-AM_CHTML.js",
|
||||
"config/TeX-MML-AM_HTMLorMML.js",
|
||||
"config/TeX-MML-AM_SVG.js"
|
||||
],
|
||||
a11yExtensions: [
|
||||
"extensions/AssistiveMML.js",
|
||||
"unpacked/extensions/AssistiveMML.js"
|
||||
],
|
||||
miscExtensions: [
|
||||
"extensions/FontWarnings.js",
|
||||
"extensions/HelpDialog.js",
|
||||
"extensions/MatchWebFonts.js",
|
||||
"extensions/MathEvents.js",
|
||||
"extensions/MathMenu.js",
|
||||
"extensions/MathZoom.js",
|
||||
"extensions/Safe.js",
|
||||
"extensions/CHTML-preview.js",
|
||||
// "extensions/toMathML.js", // only remove `toMathML.js` if you know exactly what you are doing.
|
||||
"unpacked/extensions/FontWarnings.js",
|
||||
"unpacked/extensions/HelpDialog.js",
|
||||
"unpacked/extensions/MatchWebFonts.js",
|
||||
"unpacked/extensions/MathEvents.js",
|
||||
"unpacked/extensions/MathMenu.js",
|
||||
"unpacked/extensions/MathZoom.js",
|
||||
"unpacked/extensions/Safe.js",
|
||||
"unpacked/extensions/CHTML-preview.js"
|
||||
// "unpacked/extensions/toMathML.js", // only remove `toMathML.js` if you know exactly what you are doing.
|
||||
],
|
||||
images: [
|
||||
"images" // these are used in the menu. Removing them will give you 404 errors but nothing will break.
|
||||
],
|
||||
notcode: [
|
||||
//".gitignore",
|
||||
"docs",
|
||||
"test",
|
||||
"CONTRIBUTING.md",
|
||||
"README-branch.txt",
|
||||
"README.md",
|
||||
"bower.json",
|
||||
"composer.json",
|
||||
".npmignore",
|
||||
"package.json",
|
||||
".travis.yml"
|
||||
]
|
||||
},
|
||||
"regex-replace": {
|
||||
// disable image fonts in default HTML-CSS config
|
||||
noImageFont: {
|
||||
src: ['unpacked/jax/output/HTML-CSS/config.js',
|
||||
'config/default.js'],
|
||||
actions: [
|
||||
{
|
||||
name: 'nullImageFont',
|
||||
search: /imageFont:[^,]+,/,
|
||||
replace: 'imageFont: null,',
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
grunt.loadNpmTasks("grunt-contrib-clean");
|
||||
grunt.loadNpmTasks('grunt-regex-replace');
|
||||
|
||||
grunt.registerTask("component", [
|
||||
// components-mathjax excludes only PNG fonts
|
||||
"regex-replace:noImageFont",
|
||||
"clean:png",
|
||||
]);
|
||||
|
||||
grunt.registerTask("template", [
|
||||
// **Notes** on the template. When instructions say "Pick one", this means commenting out one item (so that it"s not cleaned).
|
||||
//
|
||||
// Early choices.
|
||||
"clean:unpacked",
|
||||
"clean:packed", // pick one -- packed for production, unpacked for development.
|
||||
"clean:allConfigs", // if you do not need any combined configuration files.
|
||||
// Fonts. Pick at least one! Check notes above on configurations.
|
||||
"clean:fontAsana",
|
||||
"clean:fontGyrePagella",
|
||||
"clean:fontGyreTermes",
|
||||
"clean:fontLatinModern",
|
||||
"clean:fontNeoEuler",
|
||||
"clean:fontStix",
|
||||
"clean:fontStixWeb",
|
||||
"clean:fontTeX",
|
||||
// Font formats. Pick at least one (unless you use SVG output; then clean all).
|
||||
"clean:dropFonts", // when using SVG output
|
||||
"clean:eot",
|
||||
"clean:otf",
|
||||
"clean:png",
|
||||
"regex-replace:noImageFont",
|
||||
"clean:svg",
|
||||
"clean:woff",
|
||||
// Input. Pick at least one.
|
||||
"clean:asciimathInput",
|
||||
"clean:mathmlInput",
|
||||
"clean:texInput",
|
||||
// Output
|
||||
"clean:htmlCssOutput",
|
||||
"clean:mathmlOutput",
|
||||
"clean:svgOutput",
|
||||
// Extensions. You probably want to leave the set matching your choices.
|
||||
"clean:extensionsAsciimath",
|
||||
"clean:extensionsMathml",
|
||||
"clean:extensionsTeX",
|
||||
"clean:extensionHtmlCss",
|
||||
// Other items
|
||||
"clean:locales",
|
||||
"clean:miscConfig",
|
||||
// "clean:miscExtensions", // you probably want that
|
||||
"clean:images",
|
||||
"clean:notcode"
|
||||
]);
|
||||
grunt.registerTask("racket-mini", [
|
||||
// Early choices.
|
||||
"clean:unpacked",
|
||||
// "clean:packed", // pick one -- packed for production, unpacked for development.
|
||||
//"clean:allConfigs", // if you do not need any combined configuration files.
|
||||
// Fonts. Pick at least one! Check notes above on configurations.
|
||||
"clean:fontAsana",
|
||||
"clean:fontGyrePagella",
|
||||
"clean:fontGyreTermes",
|
||||
"clean:fontLatinModern",
|
||||
"clean:fontNeoEuler",
|
||||
"clean:fontStix",
|
||||
//"clean:fontStixWeb",
|
||||
// "clean:fontTeX",
|
||||
// Font formats. Pick at least one (unless you use SVG output; then clean all).
|
||||
//"clean:dropFonts", // when using SVG output
|
||||
"clean:eot",
|
||||
"clean:otf",
|
||||
"clean:png",
|
||||
//"clean:svg",
|
||||
//"clean:woff",
|
||||
// Input. Pick at least one.
|
||||
//"clean:asciimathInput",
|
||||
//"clean:mathmlInput",
|
||||
//"clean:texInput",
|
||||
// Output
|
||||
//"clean:htmlCssOutput",
|
||||
//"clean:mathmlOutput",
|
||||
// "clean:svgOutput",
|
||||
// Extensions. You probably want to leave the set matching your choices.
|
||||
//"clean:extensionsAsciimath",
|
||||
//"clean:extensionsMathml",
|
||||
//"clean:extensionsTeX",
|
||||
//"clean:extensionHtmlCss",
|
||||
// Other items
|
||||
// "clean:locales",
|
||||
"clean:miscConfig",
|
||||
"clean:fullConfig",
|
||||
"clean:restConfig",
|
||||
// "clean:miscExtensions", // you probably want that
|
||||
//"clean:images",
|
||||
"clean:notcode"
|
||||
]);
|
||||
grunt.registerTask("mjNode", [
|
||||
"clean:packed",
|
||||
"clean:allConfigs",
|
||||
"clean:dropFonts",
|
||||
"clean:htmlCssOutput",
|
||||
"clean:locales",
|
||||
"clean:miscConfig",
|
||||
"clean:images",
|
||||
"clean:notcode",
|
||||
"clean:miscExtensions"
|
||||
]);
|
||||
};
|
|
@ -101,7 +101,7 @@ MathJax.Hub.Config({
|
|||
// jax array above, and "asciimath2jax.js" if you using "input/AsciiMath".
|
||||
// Include "jsmath2jax.js" if you are converting from using jsMath to MathJax.
|
||||
//
|
||||
extensions: ["tex2jax.js"],
|
||||
extensions: ["tex2jax.js","TeX/AMSmath.js","TeX/AMSsymbols.js"],
|
||||
|
||||
//
|
||||
// Patterns to remove from before and after math script tags. If you are not
|
||||
|
|
49
travis-auto-deploy.sh
Normal file
49
travis-auto-deploy.sh
Normal file
|
@ -0,0 +1,49 @@
|
|||
#!/bin/sh
|
||||
set -e
|
||||
set +x
|
||||
if test "$(git config remote.origin.url)" != "https://github.com/jsmaniac/scribble-mathjax.git"; then
|
||||
echo "Not on official repo, will not deploy gh-pages."
|
||||
elif test "$TRAVIS_PULL_REQUEST" != "false"; then
|
||||
echo "This is a Pull Request, will not deploy gh-pages."
|
||||
elif test "$TRAVIS_BRANCH" != "v2.6-racket-mini-source"; then
|
||||
echo "Not on v2.6-racket-mini-source branch (TRAVIS_BRANCH = $TRAVIS_BRANCH), will not deploy gh-pages."
|
||||
elif test -z "${encrypted_675a73236f08_key:-}" -o -z "${encrypted_675a73236f08_iv:-}"; then
|
||||
echo "Travis CI secure environment variables are unavailable, will not deploy gh-pages."
|
||||
else
|
||||
set -x
|
||||
echo "Automatic push to gh-pages"
|
||||
ls -l /home/travis/build/jsmaniac/scribble-mathjax/.git/index.lock || true
|
||||
|
||||
# Git configuration:
|
||||
git config --global user.name "$(git log --format="%aN" HEAD -1) (Travis CI automatic commit)"
|
||||
git config --global user.email "$(git log --format="%aE" HEAD -1)"
|
||||
|
||||
# SSH configuration
|
||||
mkdir -p ~/.ssh
|
||||
chmod 700 ~/.ssh
|
||||
set +x
|
||||
if openssl aes-256-cbc -K $encrypted_675a73236f08_key -iv $encrypted_675a73236f08_iv -in travis-deploy-key-id_rsa.enc -out travis-deploy-key-id_rsa -d >/dev/null 2>&1; then
|
||||
echo "Dectypred key successfully."
|
||||
else
|
||||
echo "Error while decrypting key."
|
||||
fi
|
||||
mv travis-deploy-key-id_rsa ~/.ssh/travis-deploy-key-id_rsa
|
||||
set -x
|
||||
chmod 600 ~/.ssh/travis-deploy-key-id_rsa
|
||||
set +x
|
||||
eval `ssh-agent -s`
|
||||
set -x
|
||||
ssh-add ~/.ssh/travis-deploy-key-id_rsa
|
||||
|
||||
|
||||
npm install grunt grunt-cli grunt-contrib-clean grunt-regex-replace
|
||||
PATH="$PWD/node_modules/grunt-cli/bin:$PATH" grunt racket-mini
|
||||
git add -A . >/dev/null 2>&1
|
||||
git rm -f .gitignore || true
|
||||
git rm -f Gruntfile.js || true
|
||||
git rm -f travis-deploy-key-id_rsa.enc || true
|
||||
git rm -f travis-auto-deploy.sh || true
|
||||
git commit -m "auto-commit" >/dev/null 2>&1
|
||||
git log --oneline --decorate --graph -10
|
||||
git push --force --quiet "git@github.com:jsmaniac/scribble-mathjax.git" HEAD:refs/heads/v2.6-racket-mini > /dev/null 2>&1
|
||||
fi
|
BIN
travis-deploy-key-id_rsa.enc
Normal file
BIN
travis-deploy-key-id_rsa.enc
Normal file
Binary file not shown.
Loading…
Reference in New Issue
Block a user