Skip to content

Commit

Permalink
update instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasvreis authored and luavreis committed Oct 5, 2023
1 parent ac9043b commit 28c8b20
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 9 deletions.
2 changes: 1 addition & 1 deletion browser/xparsejax.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion js/xparsejax.d.ts
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
export {};
import { Configuration } from 'mathjax-full/mjs/input/tex/Configuration.js';
export declare const configuration: Configuration;
2 changes: 1 addition & 1 deletion js/xparsejax.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion js/xparsejax.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"version": "1.0.0",
"description": "",
"scripts": {
"build": "cd xparsejax && node ../node_modules/mathjax-full/components/bin/pack"
"build": "npx tsc; ./node_modules/mathjax-full/components/bin/makeAll components"
},
"author": "Lucas V. Reis",
"license": "AGPL",
Expand Down
8 changes: 4 additions & 4 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,16 +19,16 @@ Note that `NewDocumentEnviroment` is not implemented but should not be hard to d

## Usage

There is a packed minified version under [`build`](build). You can serve it under your website (say, at `/path/to/xparsejax.js`) and load it in your MathJax configuration like so:
There is a packed minified version under [`browser`](browser). You can serve it under your website (say, at `/path/to/xparsejax.js`) and load it in your MathJax configuration like so:

```js
MathJax = {
loader: {
load: ['[custom]/xparsejax.js'],
paths: {custom: '/path/to'} // specify your path here
load: ['[xparsejax]/xparsejax.js'],
paths: {xparsejax: '/path/to'} // specify your path here
},
tex: {
packages: {'[+]': ['xparse']},
packages: {'[+]': ['xparsejax']},
},
[... other stuff ...]
}
Expand Down

0 comments on commit 28c8b20

Please sign in to comment.