Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
1719 commits
Select commit Hold shift + click to select a range
f03e918
Update assistive MathML styles
dpvc Mar 25, 2025
b7f1942
Make sure speech-workerpool doesn't give a version error
dpvc Apr 19, 2025
1b277c8
Make sure the result is available when require() is used
dpvc Apr 19, 2025
f9b9479
Change to using @mathjax/src rather than mathjax-full
dpvc Apr 25, 2025
e62d949
Add a MathJax.whenReady() method
dpvc Apr 25, 2025
c0dc9ae
Prevent a failure when the menu component isn't loaded
dpvc Apr 19, 2025
891660a
Work around placement bug for <none> elements in WebKit
dpvc Apr 25, 2025
f4383cf
Handle processing of extensions and fonts better
dpvc Feb 28, 2025
f672ef4
Prettier fix
dpvc Apr 25, 2025
019cd87
Update refocus from menu actions, make roleDescription an explorer op…
dpvc Apr 28, 2025
f5cb20b
corrects worker issues
zorkow Apr 28, 2025
935e1d1
adds back unix formatting
zorkow May 2, 2025
3e5b69e
removes unix formatting.
zorkow May 7, 2025
a5eee41
remove unused SRE API methods
zorkow May 12, 2025
e246c00
remove unused mathmap module
zorkow May 12, 2025
8909d5e
Merge pull request #1246 from mathjax/fix/worker_issues
zorkow May 13, 2025
fce4009
Merge branch 'develop' into refactor/sre_api
zorkow May 13, 2025
986029a
Update comments as per review
dpvc May 13, 2025
5f4e58f
Merge branch 'develop' into update/explorer
dpvc May 13, 2025
4b141fd
Merge pull request #1241 from mathjax/update/explorer
dpvc May 13, 2025
3bd53f6
Merge pull request #1243 from mathjax/scoped-package
dpvc May 13, 2025
5c4f6eb
Merge pull request #1244 from mathjax/misc-fixes
dpvc May 13, 2025
5082a15
Merge pull request #1245 from mathjax/update/explorer-misc
dpvc May 13, 2025
6d8d453
upgrade SRE version in package.json
zorkow May 14, 2025
334e316
Merge branch 'develop' into refactor/sre_api
zorkow May 14, 2025
6ca6b49
Add an insertStyles() method to update styles when an extension is lo…
dpvc May 14, 2025
afa133e
Remove unneeded configuration, and simplify replacements
dpvc May 14, 2025
2e35586
Report failure of \require rather than throw an error
dpvc May 14, 2025
36671d6
Fix timing of hasTypeset and make defaultOptionError for easier confi…
dpvc May 14, 2025
ce00a08
Fix cssText creation to handle border-radius and similar values. (mat…
dpvc May 16, 2025
67b9f8f
Fix script spacing when MathML spacing is used. (mathjax/MathJax#1224)
dpvc May 22, 2025
0cbae3d
Add menu item to control what tabbing will focus on
dpvc May 22, 2025
54065b9
Format fix
dpvc May 22, 2025
1024e11
Format fix
dpvc May 22, 2025
4f7e1d7
Format fix
dpvc May 22, 2025
c3bd8cb
add update pnpm-lock.yaml file
zorkow May 23, 2025
fac6877
Merge pull request #1247 from mathjax/refactor/sre_api
zorkow May 23, 2025
2dae7d2
Merge pull request #1252 from mathjax/issue3365
dpvc May 25, 2025
8fe0f64
Merge pull request #1253 from mathjax/insert-styles
dpvc May 25, 2025
716dae2
Merge pull request #1254 from mathjax/fix/misc
dpvc May 25, 2025
06ff227
Merge pull request #1255 from mathjax/fix/require-failure
dpvc May 25, 2025
c794af6
Merge pull request #1256 from mathjax/fix/startup
dpvc May 25, 2025
7f0207d
Merge pull request #1259 from mathjax/issue1224
dpvc May 25, 2025
9716450
Merge pull request #1258 from mathjax/feature/tab-focus-option
dpvc May 29, 2025
0ceb79d
Fix a number of explorer and menu issues, and update to work with Orc…
dpvc May 29, 2025
7bdf3af
Format fixes
dpvc May 29, 2025
5471895
Remove unneeded types
dpvc May 29, 2025
6f89609
Add types needed to access webworker
dpvc May 29, 2025
4ff89fd
move highlighter from SRE
zorkow May 15, 2025
341e1a7
reduce new highlighter significantly
zorkow May 15, 2025
1431adf
minify module exports
zorkow May 15, 2025
013bb72
add all types for jsdoc
zorkow May 15, 2025
57cf2d9
remove unused field in highlight structure
zorkow May 15, 2025
68b89e0
reinstate auto voicing elements below container
zorkow May 15, 2025
3c80ba3
add ssml to container and kill speech on escape
zorkow May 15, 2025
9b19df5
add attribute for correct rule and style rotation
zorkow May 18, 2025
505238b
first menu call for worker
zorkow May 23, 2025
589b20f
refactor locale preferences and selection box computation
zorkow May 26, 2025
0ef2983
refactor relevant preferences and related menu computation
zorkow May 26, 2025
f80bac0
add comments
zorkow May 26, 2025
f779248
introduce map datastructures
zorkow May 26, 2025
8f6865e
correct faulty selection box setting
zorkow May 26, 2025
ab2b4a1
simpler async functions and smaller build
zorkow May 26, 2025
8ca0434
remove ChromVox sub menu
zorkow May 26, 2025
97e1a1a
remove temporary changes in key explorer
zorkow May 26, 2025
00513cc
commenting, formatting and linting
zorkow May 27, 2025
ed54e59
update SRE version to v5-alpha.3
zorkow May 29, 2025
2eea724
update SRE version to v5-alpha.4
zorkow May 29, 2025
c5de728
remove ChromeVox mention from help
zorkow May 30, 2025
b5c29a4
Merge pull request #1262 from mathjax/update/explorer
dpvc May 31, 2025
99c4563
Fix refocusing the selected node after a rerender.
dpvc May 31, 2025
8c81b9d
Restore idCount after a re-render
dpvc May 31, 2025
f8c373d
Merge pull request #1263 from mathjax/fix/cs-preferences
zorkow Jun 1, 2025
7674676
Simplify as requested by review
dpvc Jun 1, 2025
988e6e3
Merge pull request #1264 from mathjax/fix/explorer-refocus
dpvc Jun 1, 2025
fe88f40
Upgrade packages
zorkow Jun 3, 2025
7fe4e40
adapt types for latest tsc
zorkow Jun 3, 2025
c350a09
add ts-ignore for regexp flags u which is not in target ES5
zorkow Jun 3, 2025
226456e
fixes filenams in tests and some measures in bussproof tests
zorkow Jun 3, 2025
f7c93ec
Fix problem with CD environment cell ending with a prime. (mathjax/Ma…
dpvc Jun 3, 2025
59d9840
Fix problem with overline with subscript with space after the undersc…
dpvc Jun 3, 2025
dbf59de
Fix a problem with substyles generating undefined base styles.
dpvc Jun 3, 2025
685b5c0
update test config for latest typescript and gh actions use
zorkow Jun 4, 2025
aa7f8f2
corrects types and adds missing dom lib for tsc
zorkow Jun 5, 2025
af9691d
update package.json for latest pnpm
zorkow Jun 5, 2025
a3f1f46
adds the github test actions
zorkow Jun 5, 2025
2f98b99
ensure to allow js as import in test helpers
zorkow Jun 5, 2025
5819fdb
avoid declaration file error explicitly
zorkow Jun 5, 2025
a963ab1
update packages for tests
zorkow Jun 5, 2025
9af730b
add coverage and test report badges
zorkow Jun 5, 2025
7ac6d95
corrects badge paths
zorkow Jun 5, 2025
11bf679
Merge pull request #1268 from mathjax/issue3373
dpvc Jun 5, 2025
36dd349
Merge pull request #1269 from mathjax/fix/undefined-styles
dpvc Jun 5, 2025
21f96b8
Merge pull request #1267 from mathjax/issue3372
dpvc Jun 5, 2025
13dfafc
add upload token for code coverage report
zorkow Jun 5, 2025
f27bde3
incorporate review comments
zorkow Jun 5, 2025
6e40080
update font, remove link, ensure ts-jest gets right tsconfig
zorkow Jun 5, 2025
ac62404
undo bussproofs test changes
zorkow Jun 5, 2025
4775492
Merge pull request #1271 from mathjax/update/packages
zorkow Jun 5, 2025
9577a9d
Update README.md
zorkow Jun 5, 2025
c08a550
adds the @eslint/js package
zorkow Jun 6, 2025
c58d95f
fixes linting errors
zorkow Jun 6, 2025
0a53877
add publishing workflow and rename test workflow
zorkow Jun 6, 2025
85dc9ba
Merge pull request #1273 from mathjax/fix/eslint_package
zorkow Jun 13, 2025
45840b1
incorporate review requests
zorkow Jun 13, 2025
a890bdf
removes travis file
zorkow Jun 15, 2025
351698e
Merge pull request #1274 from mathjax/feature/publish_action
zorkow Jun 16, 2025
07eae1a
Update build and ui/menu so its builds with new highligher
dpvc Jun 17, 2025
37d7c41
Fix incorrect removal of braces in template macros
dpvc Jun 18, 2025
15aa49a
Fix problem with MathJax reference in liteDOM
dpvc Jun 19, 2025
0204242
Merge pull request #1276 from mathjax/fix/build
dpvc Jun 20, 2025
131b5cf
Merge pull request #1278 from mathjax/fix/template-macros
dpvc Jun 20, 2025
4b42301
Merge pull request #1280 from mathjax/fix/liteDOM
dpvc Jun 20, 2025
1989a83
Update copyrights and package version
dpvc Jun 19, 2025
7d518cd
Update mathjax-newcm-font to rc.1 version
dpvc Jun 19, 2025
ec53030
Move some packages to devDependencies
dpvc Jun 19, 2025
7447d84
Fix output of components/bin/version for lint approval
dpvc Jun 19, 2025
bd2935a
updates sre to latest version
zorkow Jun 20, 2025
2d1d02b
updates pnpm-lock file
zorkow Jun 20, 2025
9d9f61e
Merge pull request #1281 from mathjax/update/sre
zorkow Jun 20, 2025
1fa60c4
Update font location for node-main
dpvc Jun 20, 2025
9456d48
Merge pull request #1282 from mathjax/fix/node-main
zorkow Jun 20, 2025
02af213
Merge branch 'develop' into update/package
dpvc Jun 20, 2025
02d2cba
Update pnpm-lock.yaml
dpvc Jun 20, 2025
f65ac27
remove -s from pnpm install
dpvc Jun 20, 2025
42f59e1
Merge pull request #1283 from mathjax/update/package
zorkow Jun 20, 2025
774af66
Update publish and test workflows
dpvc Jun 20, 2025
12f2cb4
Add flag to prevent git checks (see https://github.com/pnpm/pnpm/issu…
dpvc Jun 20, 2025
b47fbc9
Change to npm for the publish step?
dpvc Jun 20, 2025
ef47836
Try creating .npmrc by hand
dpvc Jun 20, 2025
107d09d
Fix problem with sre-root in webpack
dpvc Jun 21, 2025
c34399e
Update version to 4.0.0-rc.2
dpvc Jun 21, 2025
d1e0a60
Use SRE 5.0.0-alpha.6
dpvc Jun 21, 2025
d5668bb
Update font version to rc.2
dpvc Jun 21, 2025
f7d8f6f
Update lock file
dpvc Jun 21, 2025
62226e2
Merge pull request #1284 from mathjax/fix/sre-root
dpvc Jun 21, 2025
b5fdbd5
Initial rewrite to remove workerpool
dpvc Jun 22, 2025
ba51323
Remove unneeded liteDOM code for iframes
dpvc Jun 22, 2025
97772c8
Updates to handle workers in node
dpvc Jun 22, 2025
339f442
Remove debugging code
dpvc Jun 22, 2025
d974686
Remove another debugging command
dpvc Jun 23, 2025
27f8a5e
Make prettier happy
dpvc Jun 23, 2025
81c1fa5
Remove workerpool html file
dpvc Jun 23, 2025
b36c044
install typedoc
zorkow Jun 23, 2025
f6eb62c
Add a mathmaps configuration option and pass it to the worker thread …
dpvc Jun 23, 2025
40ca34e
Update quoting function to handl non-ascii characters better
dpvc Jun 24, 2025
fd6c8f8
update SRE to latest alpha
zorkow Jun 24, 2025
c570b6b
Merge pull request #1288 from mathjax/update/sre_version
dpvc Jun 24, 2025
8448689
Merge pull request #1286 from mathjax/update/mathmap-config
dpvc Jun 24, 2025
856bbe7
Merge pull request #1285 from mathjax/update/workers
dpvc Jun 24, 2025
aafe609
Update versions to 4.0.0-rc.3
dpvc Jun 24, 2025
100a97e
Fix issue with switching renders on page reload
dpvc Jun 24, 2025
3c4b5a8
Merge branch 'develop' into feature/tsdoc
zorkow Jun 25, 2025
4d1e195
Update version to 4.0.0-rc.3 and latest SRE
dpvc Jun 25, 2025
5b7af3f
add action and configuration for typedoc
zorkow Jun 26, 2025
dd5c189
Merge branch 'develop' into feature/tsdoc
zorkow Jun 26, 2025
e9270cc
add typedoc package
zorkow Jun 26, 2025
03ea9f1
move typedoc to dev dependencies
zorkow Jun 26, 2025
2329765
use github actions for doc pages
zorkow Jun 26, 2025
63d7c8d
add missing permissions
zorkow Jun 26, 2025
b2a7265
Allow Chrome to load speech worker from CDN in a page from a file:// URL
dpvc Jul 2, 2025
9d140d3
Don't need to make the worker be a module anymore
dpvc Jul 2, 2025
33244ad
Fix font-extension URLs to include @mathjax (mathjax/MathJax#3387)
dpvc Jul 2, 2025
3d27197
Don't try to create the clearspeak menu if enrichment is disabled
dpvc Jul 2, 2025
31ffd11
Clear forced inline breaks when switching between renderers, when needed
dpvc Jul 2, 2025
20068cc
Add explorer key actions and improve auto-voice handling
dpvc Jul 5, 2025
f1dd058
cleanup action and test
zorkow Jul 7, 2025
028a0f9
change target branch to master
zorkow Jul 7, 2025
efe57da
Fix regex for quoting file names to include + (caused pnpm directorie…
dpvc Jul 8, 2025
8c3514f
Make 'Semantic Info' menu active (not sure why it was disabled)
dpvc Jul 8, 2025
a6751d5
Changes the TAG and ATTR patterns to be more in line with HTML5 (#1297)
dpvc Jul 9, 2025
d55b576
Fix formatting
dpvc Jul 9, 2025
e6b134d
Fix formatting
dpvc Jul 9, 2025
f5a9b7f
Fix formatting
dpvc Jul 9, 2025
8f732da
Make the retry error message more descriptive
dpvc Jul 9, 2025
21a253a
Improve loading of @mathjax/src by import and require
dpvc Jul 12, 2025
96ce9ae
Don't alter the typeset option lists in case they are reused
dpvc Jul 14, 2025
11c6c82
Move toEntry to be a method so that it can be override, if necessary
dpvc Jul 14, 2025
f6bac7c
Make sure AsciiMath text elements are of kind #text
dpvc Jul 14, 2025
7829440
Add configuration options for pre- and post-filters
dpvc Jul 14, 2025
b7be4a8
Only stop the worker if it has been started
dpvc Jul 14, 2025
82db2ae
Place the hidden svg/defs elements at the beginning of the document, …
dpvc Jul 14, 2025
515f1d1
Make node-main init() wait for the startup promise to resolve
dpvc Jul 16, 2025
c2cd1ad
Better support for Loader.preLoaded() when used in combined component…
dpvc Jul 16, 2025
97e879e
Fix some comment typos
dpvc Jul 16, 2025
2a0ee2e
Check that enrichment is enabled before starting webworker
dpvc Jul 16, 2025
cc849ac
Merge pull request #1299 from mathjax/feature/tsdoc
zorkow Jul 17, 2025
681b432
changed docs target branch from master to develop
zorkow Jul 17, 2025
2c15c61
Fix formatting for prettier
dpvc Jul 17, 2025
f7d51a0
Update CSS used to clip stretchy characters in CHTML. (mathjax/MathJa…
dpvc Jul 17, 2025
cde957c
Merge pull request #1291 from mathjax/issue3387
dpvc Jul 18, 2025
30bd639
Merge pull request #1290 from mathjax/fix/file-url-worker
dpvc Jul 18, 2025
76a6509
Merge pull request #1292 from mathjax/fix/clearspeak-menu
dpvc Jul 18, 2025
3fc3801
Merge pull request #1293 from mathjax/fix/inline-breaks
dpvc Jul 18, 2025
ba96ff0
Merge pull request #1300 from mathjax/fix/pack
dpvc Jul 18, 2025
5ebb07d
Merge pull request #1301 from mathjax/update/semantic-info
dpvc Jul 18, 2025
f26bbf7
Merge pull request #1302 from mathjax/issue1297
dpvc Jul 18, 2025
a6ec3c5
Merge pull request #1303 from mathjax/update/retry
dpvc Jul 18, 2025
ee34476
Merge pull request #1305 from mathjax/fix/stop-worker
dpvc Jul 18, 2025
ae6aef4
Merge pull request #1306 from mathjax/fix/asciimath-text
dpvc Jul 18, 2025
14f184f
Merge pull request #1308 from mathjax/update/defs-position
dpvc Jul 18, 2025
8769f75
Merge pull request #1309 from mathjax/update/node-init
dpvc Jul 18, 2025
bc7a4ac
Merge pull request #1311 from mathjax/update/no-enrichment
dpvc Jul 18, 2025
e7ee4e0
Merge pull request #1312 from mathjax/fix/long-stretchies
dpvc Jul 18, 2025
0f7dd5d
Move toEntity() function to util/string.ts
dpvc Jul 18, 2025
e70fadf
Fix addClass() and similar to not add extra blank in class
dpvc Jul 22, 2025
9abd74c
Fix explorer navigation to handle linebreaks, for both display and in…
dpvc Jul 22, 2025
a16ca58
Handle table navigation in more cases, as per Volker's review
dpvc Jul 22, 2025
f12dcb2
Have the explorer look harder for the associated anchor node. (mathj…
dpvc Jul 26, 2025
f887ac6
Handle mml spacing for mo with no parent (like surd for root).
dpvc Jul 26, 2025
c693d1b
Merge pull request #1295 from mathjax/update/explorer-keys
dpvc Jul 28, 2025
9ffe6d5
Merge pull request #1307 from mathjax/update/mml-visitor
dpvc Jul 28, 2025
d97ab4a
Merge pull request #1313 from mathjax/update/startup
dpvc Jul 28, 2025
cc1e8e5
Fix typos in comments
dpvc Jul 28, 2025
64a1d96
Merge pull request #1314 from mathjax/update/filter-config
dpvc Jul 28, 2025
940ad9a
Merge pull request #1316 from mathjax/issue3394
dpvc Jul 28, 2025
c7e5dbf
Merge pull request #1317 from mathjax/fix/liteDOM-classList
dpvc Jul 28, 2025
71fec6e
Merge pull request #1318 from mathjax/issue3398
dpvc Jul 28, 2025
20acddf
Merge pull request #1319 from mathjax/fix/mo-mathml-spacing
dpvc Jul 28, 2025
e68c42f
Merge pull request #1304 from mathjax/update/node-main
dpvc Jul 28, 2025
67c1a71
Make sure whenReady() ignores previous errors
dpvc Jul 28, 2025
c972372
Fix formatting
dpvc Jul 28, 2025
47c35fd
Make sure the buuild command makes the lib directory even if there ar…
dpvc Jul 30, 2025
ad0ab7e
Update replaceUnicode() to handle two \U{} calls in a row.
dpvc Jul 30, 2025
c2675cf
Fix registerTex() to handle tex.packages that is already an array
dpvc Jul 30, 2025
337df97
Don't increase the spacing size for MathML spacing if it is 0
dpvc Jul 30, 2025
3364733
Don't list pacakges twice (causes failure in require, for example)
dpvc Jul 31, 2025
3bba375
fix some navigation issues
zorkow Jul 31, 2025
0e44b99
Fix typos from review
dpvc Aug 1, 2025
dc661ff
Merge pull request #1321 from mathjax/fix/build
dpvc Aug 1, 2025
70ff585
Merge pull request #1322 from mathjax/fix/replaceUnicode
dpvc Aug 1, 2025
34b1421
Merge pull request #1323 from mathjax/fix/registerTex
dpvc Aug 1, 2025
910e2ed
Merge pull request #1324 from mathjax/fix/mo-mmlspacing
dpvc Aug 1, 2025
3526ca0
Merge pull request #1310 from mathjax/update/loader
dpvc Aug 1, 2025
3167719
Merge branch 'fix/registerTex' into develop
dpvc Aug 1, 2025
cf00c72
Include the menu loading promises in the default startup page ready p…
dpvc Aug 1, 2025
c6d089e
Fix for prettier
dpvc Aug 1, 2025
bb59da7
Allow the no-font components to still have a default font, just not a…
dpvc Aug 2, 2025
71da86f
Move the node createWorker() method to the NodeMixin.
dpvc Aug 2, 2025
ea9fd5c
Add components for jsdom and linkedom for easier use in node
dpvc Aug 3, 2025
7486f28
incorporate review suggestions
zorkow Aug 4, 2025
c8756f1
Merge pull request #1325 from mathjax/fix/navigation_issues
zorkow Aug 4, 2025
04af7e4
Merge pull request #1320 from mathjax/fix/whenReady
dpvc Aug 4, 2025
3fdbdae
Merge pull request #1326 from mathjax/fix/startup-promise
dpvc Aug 4, 2025
7dfe1cb
Merge pull request #1327 from mathjax/fix/nofont
dpvc Aug 4, 2025
aacb8ff
Merge pull request #1328 from mathjax/refactor/adaptors
dpvc Aug 4, 2025
65757e3
Merge pull request #1329 from mathjax/feature/new-adaptors
dpvc Aug 4, 2025
e364c5b
SRE version bump
zorkow Aug 4, 2025
fa267ab
Merge pull request #1330 from mathjax/update/sre
dpvc Aug 4, 2025
be4116a
Update to v4.0.0
dpvc Aug 4, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
54 changes: 54 additions & 0 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
name: Docs

on:
push:
branches:
- develop

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: read
pages: write
id-token: write

# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
concurrency:
group: "pages"
cancel-in-progress: false

jobs:
docs:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
name: Generate Code Docs
steps:
- name: Checkout
uses: actions/checkout@v4

- uses: pnpm/action-setup@v4
name: Install pnpm
with:
version: 10
run_install: false

- name: Install packages
run: pnpm i

- name: Build docs
run: pnpm typedoc

- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
# Upload docs folder
path: './docs'

- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
43 changes: 43 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: Release

on:
release:
types: [published]

jobs:
setup:
runs-on: ubuntu-latest
name: Build and publish MathJax
permissions:
contents: read
id-token: write
steps:
- name: Checkout
uses: actions/checkout@v4

- uses: pnpm/action-setup@v4
name: Install pnpm
with:
version: 10
run_install: false
registry-url: 'https://registry.npmjs.org'

- name: Install packages
run: pnpm i

- name: Build MathJax
run: |
./components/bin/version
pnpm -s link:src
pnpm -s build-all

- name: Temp fix to publish
run: |
echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > ~/.npmrc
echo "always-auth=true" >> ~/.npmrc

- name: Publish to npmjs
run: pnpm publish --access public --no-git-checks
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

49 changes: 49 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
name: Tests

on:
push:
branches:
- develop
pull_request:
branches:
- develop

jobs:
setup:
runs-on: ubuntu-latest
name: Compile and test MathJax
steps:
- name: Checkout
uses: actions/checkout@v4

- uses: pnpm/action-setup@v4
name: Install pnpm
with:
version: 10
run_install: false

- name: Install packages
run: |
pnpm -r i
pnpm -s link:src

- name: Compile MathJax
run: |
pnpm -s mjs:compile
components/bin/makeAll --mjs --terse --build components/mjs
pnpm -s cjs:compile
pnpm -s cjs:components:src:build
components/bin/makeAll --cjs --terse --build components/cjs
pnpm -s copy:pkg cjs

- name: Build tests
run: pnpm tsc -p testsuite/tsconfig.json

- name: Run tests
run: pnpm -s test:gh

- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v5
with:
token: ${{ secrets.CODECOV_TOKEN }}
slug: mathjax/MathJax-src
12 changes: 9 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
*~
node_modules
components/src/**/lib
js
es5
coverage
/components/mjs/**/lib
/components/cjs
/cjs
/mjs
/bundle
/bundle-cjs
/testsuite/js
/lab/sre.js
1 change: 1 addition & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
pnpm lint-staged
1 change: 1 addition & 0 deletions .husky/pre-push
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# pnpm test
4 changes: 4 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"singleQuote": true,
"trailingComma": "es5"
}
21 changes: 0 additions & 21 deletions .travis.yml

This file was deleted.

3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,14 @@
![GitHub release version](https://img.shields.io/github/v/release/mathjax/MathJax-src.svg?sort=semver)
![GitHub release version (v2)](https://img.shields.io/github/package-json/v/mathjax/MathJax/legacy-v2.svg?label=release-v2)
![NPM version](https://img.shields.io/npm/v/mathjax.svg?style=flat)
<a href="http://www.numfocus.org">![powered by NumFOCUS](https://img.shields.io/badge/powered%20by-NumFOCUS-orange.svg?style=flat)</a>
![jsdelivr rank](https://flat.badgen.net/jsdelivr/rank/npm/mathjax?color=green)
![jsDelivr hits (npm)](https://img.shields.io/jsdelivr/npm/hm/mathjax)
![npm monthly downloads (full)](https://img.shields.io/npm/dm/mathjax?label=npm)
![npm monthly downloads (full)](https://img.shields.io/npm/dm/mathjax-full?label=npm%20%28full%29)
![npm total downloads](https://img.shields.io/npm/dt/mathjax.svg?style=flat&label=npm%20total)
![npm total downloads](https://img.shields.io/npm/dt/mathjax-full.svg?style=flat&label=npm%20total%20%28full%29)
![test workflow](https://github.com/MathJax/MathJax-src/actions/workflows/test.js.yml/badge.svg?branch=develop)
[![codecov](https://codecov.io/gh/mathjax/mathjax-src/branch/develop/graph/badge.svg)](https://codecov.io/gh/mathjax/mathjax-src/tree/develop)

## Beautiful math in all browsers

Expand Down
Loading