Skip to content

Commit cb2c67a

Browse files
committed
Merge branch 'develop' into update/tools
2 parents ac3ff0e + 685a53b commit cb2c67a

545 files changed

Lines changed: 74252 additions & 38768 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/docs.yml

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
name: Docs
2+
3+
on:
4+
push:
5+
branches:
6+
- develop
7+
8+
# Allows you to run this workflow manually from the Actions tab
9+
workflow_dispatch:
10+
11+
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
12+
permissions:
13+
contents: read
14+
pages: write
15+
id-token: write
16+
17+
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
18+
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
19+
concurrency:
20+
group: "pages"
21+
cancel-in-progress: false
22+
23+
jobs:
24+
docs:
25+
environment:
26+
name: github-pages
27+
url: ${{ steps.deployment.outputs.page_url }}
28+
runs-on: ubuntu-latest
29+
name: Generate Code Docs
30+
steps:
31+
- name: Checkout
32+
uses: actions/checkout@v4
33+
34+
- uses: pnpm/action-setup@v4
35+
name: Install pnpm
36+
with:
37+
version: 10
38+
run_install: false
39+
40+
- name: Install packages
41+
run: pnpm i
42+
43+
- name: Build docs
44+
run: pnpm typedoc
45+
46+
- name: Upload artifact
47+
uses: actions/upload-pages-artifact@v3
48+
with:
49+
# Upload docs folder
50+
path: './docs'
51+
52+
- name: Deploy to GitHub Pages
53+
id: deployment
54+
uses: actions/deploy-pages@v4

.github/workflows/publish.yml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
name: Release
2+
3+
on:
4+
release:
5+
types: [published]
6+
7+
jobs:
8+
publish:
9+
runs-on: ubuntu-latest
10+
name: Build and publish MathJax
11+
permissions:
12+
contents: read
13+
id-token: write
14+
steps:
15+
- name: Checkout
16+
uses: actions/checkout@v4
17+
18+
- uses: pnpm/action-setup@v4
19+
name: Install pnpm
20+
with:
21+
version: 10
22+
run_install: false
23+
registry-url: 'https://registry.npmjs.org'
24+
25+
- name: Install packages
26+
run: pnpm i
27+
28+
- name: Build MathJax
29+
run: |
30+
./components/bin/version
31+
pnpm -s link:src
32+
pnpm -s build-all
33+
34+
- name: Temp fix to publish
35+
run: |
36+
echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > ~/.npmrc
37+
echo "always-auth=true" >> ~/.npmrc
38+
39+
- name: Publish to npmjs
40+
run: pnpm publish --access public --no-git-checks
41+
env:
42+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
43+

.github/workflows/test.yml

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
name: Tests
2+
3+
on:
4+
push:
5+
branches:
6+
- develop
7+
pull_request:
8+
branches:
9+
- develop
10+
11+
jobs:
12+
testing:
13+
runs-on: ubuntu-latest
14+
name: Compile and test MathJax
15+
steps:
16+
- name: Checkout
17+
uses: actions/checkout@v4
18+
19+
- uses: pnpm/action-setup@v4
20+
name: Install pnpm
21+
with:
22+
version: 10
23+
run_install: false
24+
25+
- name: Install Node.js
26+
uses: actions/setup-node@v4
27+
with:
28+
node-version: 24
29+
cache: 'pnpm'
30+
31+
- name: Install packages
32+
run: |
33+
pnpm -r i
34+
pnpm -s link:src
35+
36+
- name: Compile MathJax
37+
run: |
38+
pnpm -s mjs:compile
39+
components/bin/makeAll --mjs --terse --build components/mjs
40+
pnpm -s cjs:compile
41+
pnpm -s cjs:components:src:build
42+
components/bin/makeAll --cjs --terse --build components/cjs
43+
pnpm -s copy:pkg cjs
44+
45+
- name: Build tests
46+
run: pnpm tsc -p testsuite/tsconfig.json
47+
48+
- name: Run tests
49+
run: pnpm -s test:gh
50+
51+
- name: Upload coverage reports to Codecov
52+
uses: codecov/codecov-action@v5
53+
with:
54+
token: ${{ secrets.CODECOV_TOKEN }}
55+
slug: mathjax/MathJax-src

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,5 @@ coverage
88
/bundle
99
/bundle-cjs
1010
/testsuite/js
11+
/testsuite/lib/localstorage
12+
/lab/sre.js

.travis.yml

Lines changed: 0 additions & 38 deletions
This file was deleted.

0 commit comments

Comments
 (0)