Skip to content

Commit

Permalink
Release version 3.2.0.
Browse files Browse the repository at this point in the history
  • Loading branch information
dpvc committed Jun 17, 2021
2 parents 22a626b + 331eb8b commit 41565a9
Show file tree
Hide file tree
Showing 479 changed files with 7,925 additions and 4,213 deletions.
2 changes: 1 addition & 1 deletion components/bin/pack
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ function fileSize(file) {
/**
* Regular expressions for the components directory and the MathJax .js location
*/
const compRE = fileRegExp(path.dirname(__dirname));
const compRE = fileRegExp(path.join(path.dirname(__dirname), 'src'));
const rootRE = fileRegExp(path.join(path.dirname(path.dirname(__dirname)), 'js'));
const nodeRE = fileRegExp(path.join(path.dirname(path.dirname(__dirname)), 'node_modules'));

Expand Down
37 changes: 35 additions & 2 deletions components/src/dependencies.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,25 @@
/*************************************************************
*
* Copyright (c) 2019-2021 The MathJax Consortium
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

export const dependencies = {
'a11y/semantic-enrich': ['input/mml', '[sre]'],
'a11y/complexity': ['a11y/semantic-enrich'],
'a11y/explorer': ['a11y/semantic-enrich', 'ui/menu'],
'[mml]/mml3': ['input/mml'],
'[tex]/all-packages': ['input/tex-base'],
'[tex]/action': ['input/tex-base', '[tex]/newcommand'],
'[tex]/autoload': ['input/tex-base', '[tex]/require'],
Expand All @@ -12,26 +30,34 @@ export const dependencies = {
'[tex]/braket': ['input/tex-base'],
'[tex]/bussproofs': ['input/tex-base'],
'[tex]/cancel': ['input/tex-base', '[tex]/enclose'],
'[tex]/centernot': ['input/tex-base'],
'[tex]/color': ['input/tex-base'],
'[tex]/colorv2': ['input/tex-base'],
'[tex]/colortbl': ['input/tex-base', '[tex]/color'],
'[tex]/configmacros': ['input/tex-base', '[tex]/newcommand'],
'[tex]/enclose': ['input/tex-base'],
'[tex]/extpfeil': ['input/tex-base', '[tex]/newcommand', '[tex]/ams'],
'[tex]/html': ['input/tex-base'],
'[tex]/mathtools': ['input/tex-base', '[tex]/newcommand', '[tex]/ams'],
'[tex]/mhchem': ['input/tex-base', '[tex]/ams'],
'[tex]/newcommand': ['input/tex-base'],
'[tex]/noerrors': ['input/tex-base'],
'[tex]/noundefined': ['input/tex-base'],
'[tex]/physics': ['input/tex-base'],
'[tex]/require': ['input/tex-base'],
'[tex]/setoptions': ['input/tex-base'],
'[tex]/tagformat': ['input/tex-base'],
'[tex]/textcomp': ['input/tex-base', '[tex]/textmacros'],
'[tex]/textmacros': ['input/tex-base'],
'[tex]/unicode': ['input/tex-base'],
'[tex]/verb': ['input/tex-base']
'[tex]/verb': ['input/tex-base'],
'[tex]/cases': ['[tex]/empheq'],
'[tex]/empheq': ['input/tex-base', '[tex]/ams']
};

export const paths = {
tex: '[mathjax]/input/tex/extensions',
mml: '[mathjax]/input/mml/extensions',
sre: '[mathjax]/sre/' + (typeof window === 'undefined' ? 'sre-node' : 'sre_browser')
};

Expand All @@ -44,21 +70,28 @@ const allPackages = [
'[tex]/braket',
'[tex]/bussproofs',
'[tex]/cancel',
'[tex]/centernot',
'[tex]/color',
'[tex]/colortbl',
'[tex]/configmacros',
'[tex]/enclose',
'[tex]/extpfeil',
'[tex]/html',
'[tex]/mathtools',
'[tex]/mhchem',
'[tex]/newcommand',
'[tex]/noerrors',
'[tex]/noundefined',
'[tex]/physics',
'[tex]/require',
'[tex]/setoptions',
'[tex]/tagformat',
'[tex]/textcomp',
'[tex]/textmacros',
'[tex]/unicode',
'[tex]/verb'
'[tex]/verb',
'[tex]/cases',
'[tex]/empheq'
];

export const provides = {
Expand Down
6 changes: 5 additions & 1 deletion components/src/input/mml/build.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
{
"component": "inpu/mml",
"targets": ["input/mathml.ts", "input/mathml"]
"targets": [
"input/mathml.ts",
"input/mathml"
],
"excludeSubdirs": "true"
}
4 changes: 4 additions & 0 deletions components/src/input/mml/extensions/mml3/build.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"component": "input/mml/extensions/mml3",
"targets": ["input/mathml/mml3"]
}
7 changes: 7 additions & 0 deletions components/src/input/mml/extensions/mml3/copy.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"to": "../../../../../../es5/input/mml/extensions",
"from": "../../../../../../ts/input/mathml/mml3",
"copy": [
"mml3.sef.json"
]
}
7 changes: 7 additions & 0 deletions components/src/input/mml/extensions/mml3/mml3.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import './lib/mml3.js';

import {Mml3Handler} from '../../../../../../js/input/mathml/mml3/mml3.js';

if (MathJax.startup) {
MathJax.startup.extendHandler(handler => Mml3Handler(handler));
}
11 changes: 11 additions & 0 deletions components/src/input/mml/extensions/mml3/webpack.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
const PACKAGE = require('../../../../../webpack.common.js');

module.exports = PACKAGE(
'input/mml/extensions/mml3', // the package to build
'../../../../../../js', // location of the MathJax js library
[ // packages to link to
'components/src/input/mml/lib',
'components/src/core/lib'
],
__dirname // our directory
);
5 changes: 1 addition & 4 deletions components/src/input/tex-base/build.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,7 @@
"targets": [
"input/tex.ts",
"input/tex",
"input/tex/base",
"util/entities/n.ts",
"util/entities/p.ts",
"util/entities/r.ts"
"input/tex/base"
],
"exclude": ["input/tex/AllPackages.ts"],
"excludeSubdirs": "true"
Expand Down
8 changes: 1 addition & 7 deletions components/src/input/tex-full/build.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,7 @@
"component": "input/tex-full",
"targets": [
"input/tex.ts",
"input/tex",
"util/entities/n.ts",
"util/entities/p.ts",
"util/entities/r.ts"
],
"exclude": [
"input/tex/mhchem/mhchem_parser.d.ts"
"input/tex"
]
}

5 changes: 0 additions & 5 deletions components/src/input/tex-full/tex-full.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import './lib/tex-full.js';

import {registerTeX} from '../tex/register.js';
import {rename} from '../tex/extensions/rename.js';
import {Loader} from '../../../../js/components/loader.js';
import {AllPackages} from '../../../../js/input/tex/AllPackages.js';
import '../../../../js/input/tex/require/RequireConfiguration.js';
Expand All @@ -13,7 +12,3 @@ Loader.preLoad(
);

registerTeX(['require',...AllPackages]);
rename('amsCd', 'amscd', true);
rename('colorV2', 'colorv2', false);
rename('configMacros', 'configmacros', false);
rename('tagFormat', 'tagformat', true);
5 changes: 1 addition & 4 deletions components/src/input/tex/build.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,7 @@
"input/tex/noundefined",
"input/tex/require",
"input/tex/autoload",
"input/tex/configmacros",
"util/entities/n.ts",
"util/entities/p.ts",
"util/entities/r.ts"
"input/tex/configmacros"
],
"exclude": ["input/tex/AllPackages.ts"],
"excludeSubdirs": "true"
Expand Down
3 changes: 0 additions & 3 deletions components/src/input/tex/extensions/amscd/amscd.js
Original file line number Diff line number Diff line change
@@ -1,4 +1 @@
import './lib/amscd.js';
import {rename} from '../rename.js';

rename('amsCd', 'amscd', true);
4 changes: 4 additions & 0 deletions components/src/input/tex/extensions/cases/build.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"component": "input/tex/extensions/cases",
"targets": ["input/tex/cases"]
}
1 change: 1 addition & 0 deletions components/src/input/tex/extensions/cases/cases.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
import './lib/cases.js';
14 changes: 14 additions & 0 deletions components/src/input/tex/extensions/cases/webpack.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
const PACKAGE = require('../../../../../webpack.common.js');

module.exports = PACKAGE(
'cases', // the package to build
'../../../../../js', // location of the compiled js files
[ // packages to link to (relative to Mathjax components)
'components/src/input/tex-base/lib',
'components/src/input/tex/extensions/ams/lib',
'components/src/input/tex/extensions/empheq/lib',
'components/src/core/lib'
],
__dirname // our directory
);

4 changes: 4 additions & 0 deletions components/src/input/tex/extensions/centernot/build.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"component": "input/tex/extensions/centernot",
"targets": ["input/tex/centernot"]
}
1 change: 1 addition & 0 deletions components/src/input/tex/extensions/centernot/centernot.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
import './lib/centernot.js';
11 changes: 11 additions & 0 deletions components/src/input/tex/extensions/centernot/webpack.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
const PACKAGE = require('../../../../../webpack.common.js');

module.exports = PACKAGE(
'input/tex/extensions/centernot', // the package to build
'../../../../../../js', // location of the MathJax js library
[ // packages to link to
'components/src/input/tex-base/lib',
'components/src/core/lib'
],
__dirname // our directory
);
4 changes: 4 additions & 0 deletions components/src/input/tex/extensions/colortbl/build.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"component": "input/tex/extensions/colortbl",
"targets": ["input/tex/colortbl"]
}
1 change: 1 addition & 0 deletions components/src/input/tex/extensions/colortbl/colortbl.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
import './lib/colortbl.js';
11 changes: 11 additions & 0 deletions components/src/input/tex/extensions/colortbl/webpack.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
const PACKAGE = require('../../../../../webpack.common.js');

module.exports = PACKAGE(
'input/tex/extensions/colortbl', // the package to build
'../../../../../../js', // location of the MathJax js library
[ // packages to link to
'components/src/input/tex-base/lib',
'components/src/core/lib'
],
__dirname // our directory
);
3 changes: 0 additions & 3 deletions components/src/input/tex/extensions/colorv2/colorv2.js
Original file line number Diff line number Diff line change
@@ -1,4 +1 @@
import './lib/colorv2.js';
import {rename} from '../rename.js';

rename('colorV2', 'colorv2', false);
Original file line number Diff line number Diff line change
@@ -1,4 +1 @@
import './lib/configmacros.js';
import {rename} from '../rename.js';

rename('configMacros', 'configmacros', false);
4 changes: 4 additions & 0 deletions components/src/input/tex/extensions/empheq/build.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"component": "input/tex/extensions/empheq",
"targets": ["input/tex/empheq"]
}
1 change: 1 addition & 0 deletions components/src/input/tex/extensions/empheq/empheq.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
import './lib/empheq.js';
12 changes: 12 additions & 0 deletions components/src/input/tex/extensions/empheq/webpack.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
const PACKAGE = require('../../../../../webpack.common.js');

module.exports = PACKAGE(
'empheq', // the package to build
'../../../../../js', // location of the compiled js files
[ // packages to link to
'components/src/input/tex-base/lib',
'components/src/core/lib'
],
__dirname // our directory
);

4 changes: 4 additions & 0 deletions components/src/input/tex/extensions/gensymb/build.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"component": "input/tex/extensions/gensymb",
"targets": ["input/tex/gensymb"]
}
1 change: 1 addition & 0 deletions components/src/input/tex/extensions/gensymb/gensymb.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
import './lib/gensymb.js';
11 changes: 11 additions & 0 deletions components/src/input/tex/extensions/gensymb/webpack.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
const PACKAGE = require('../../../../../webpack.common.js');

module.exports = PACKAGE(
'input/tex/extensions/gensymb', // the package to build
'../../../../../../js', // location of the MathJax js library
[ // packages to link to
'components/src/input/tex-base/lib',
'components/src/core/lib'
],
__dirname // our directory
);
4 changes: 4 additions & 0 deletions components/src/input/tex/extensions/mathtools/build.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"component": "input/tex/extensions/mathtools",
"targets": ["input/tex/mathtools"]
}
1 change: 1 addition & 0 deletions components/src/input/tex/extensions/mathtools/mathtools.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
import './lib/mathtools.js';
13 changes: 13 additions & 0 deletions components/src/input/tex/extensions/mathtools/webpack.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
const PACKAGE = require('../../../../../webpack.common.js');

module.exports = PACKAGE(
'input/tex/extensions/mathtools', // the package to build
'../../../../../../js', // location of the MathJax js library
[ // packages to link to
'components/src/input/tex/extensions/ams/lib',
'components/src/input/tex/extensions/newcommand/lib',
'components/src/input/tex-base/lib',
'components/src/core/lib'
],
__dirname // our directory
);
18 changes: 0 additions & 18 deletions components/src/input/tex/extensions/rename.js

This file was deleted.

4 changes: 4 additions & 0 deletions components/src/input/tex/extensions/setoptions/build.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"component": "input/tex/extensions/setoptions",
"targets": ["input/tex/setoptions"]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
import './lib/setoptions.js';
11 changes: 11 additions & 0 deletions components/src/input/tex/extensions/setoptions/webpack.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
const PACKAGE = require('../../../../../webpack.common.js');

module.exports = PACKAGE(
'input/tex/extensions/setoptions', // the package to build
'../../../../../../js', // location of the MathJax js library
[ // packages to link to
'components/src/input/tex-base/lib',
'components/src/core/lib'
],
__dirname // our directory
);
3 changes: 0 additions & 3 deletions components/src/input/tex/extensions/tagformat/tagformat.js
Original file line number Diff line number Diff line change
@@ -1,4 +1 @@
import './lib/tagformat.js';
import {rename} from '../rename.js';

rename('tagFormat', 'tagformat', true);
4 changes: 4 additions & 0 deletions components/src/input/tex/extensions/textcomp/build.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"component": "input/tex/extensions/textcomp",
"targets": ["input/tex/textcomp"]
}
1 change: 1 addition & 0 deletions components/src/input/tex/extensions/textcomp/textcomp.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
import './lib/textcomp.js';
12 changes: 12 additions & 0 deletions components/src/input/tex/extensions/textcomp/webpack.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
const PACKAGE = require('../../../../../webpack.common.js');

module.exports = PACKAGE(
'input/tex/extensions/textcomp', // the package to build
'../../../../../../js', // location of the MathJax js library
[ // packages to link to
'components/src/input/tex/extensions/textmacros/lib',
'components/src/input/tex-base/lib',
'components/src/core/lib'
],
__dirname // our directory
);

0 comments on commit 41565a9

Please sign in to comment.