Skip to content

Commit 7ec1456

Browse files
committed
action to build IEEE release
1 parent 3b4c029 commit 7ec1456

2 files changed

Lines changed: 110 additions & 0 deletions

File tree

.github/workflows/bundle.yml

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
name: Bundle
2+
3+
on:
4+
push:
5+
branches:
6+
- "*"
7+
8+
9+
jobs:
10+
bundle:
11+
environment:
12+
name: github-pages
13+
url: ${{ steps.deployment.outputs.page_url }}
14+
runs-on: ubuntu-latest
15+
name: Generate Code Docs
16+
steps:
17+
- name: Checkout
18+
uses: actions/checkout@v4
19+
20+
- uses: pnpm/action-setup@v4
21+
name: Install pnpm
22+
with:
23+
version: 10
24+
run_install: false
25+
26+
- name: Install packages
27+
run: pnpm i
28+
29+
- name: Building new release
30+
run: |
31+
mkdir -p build
32+
cp -r node_modules/@mathjax/src/* build/
33+
cp -r components/* build/components
34+
cp -r ts/* build/ts
35+
cd build
36+
ls
37+
pnpm install
38+
pushd ts/a11y/sre/
39+
ls
40+
rm sre-lab.ts
41+
ls
42+
sed -i s/sre-lab/sre/g speech-worker.ts
43+
popd
44+
chmod 755 components/bin/*
45+
pnpm build
46+
cd ..
47+
mkdir IEEE
48+
mv build IEEE/mathjax4
49+
cp samples/* IEEE/
50+
cp ieee-config.js IEEE/
51+
52+
- name: Upload artifact
53+
uses: actions/upload-artifact@v4
54+
with:
55+
name: ieee
56+
path: './IEEE'
57+

ieee-config.js

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
window.MathJax = {
2+
loader: {
3+
load: [
4+
'[tex]/ieeemacros',
5+
'[tex]/ieeelegacy',
6+
'[tex]/ieeestix',
7+
'[tex]/eulerieee',
8+
'[tex]/bbm',
9+
'[tex]/bboldx',
10+
'[tex]/boldsymbol',
11+
'[tex]/dsfont',
12+
'[tex]/upgreek',
13+
'[tex]/textmacros',
14+
'[tex]/textcomp',
15+
'[tex]/colortbl',
16+
'[tex]/mathtools',
17+
'[tex]/empheq',
18+
'[tex]/cases',
19+
'[tex]/centernot',
20+
'[tex]/gensymb',
21+
'ui/lazy',
22+
],
23+
versionWarnings: false
24+
},
25+
tex: {
26+
inlineMath: [
27+
['$','$'],
28+
['\\(','\\)']
29+
],
30+
packages: {'[+]': [
31+
'ieeemacros',
32+
'ieeelegacy',
33+
'ieeestix',
34+
'eulerieee',
35+
'bbm',
36+
'bboldx',
37+
'boldsymbol',
38+
'dsfont',
39+
'upgreek',
40+
'textmacros',
41+
'textcomp',
42+
'colortbl',
43+
'mathtools',
44+
'empheq',
45+
'cases',
46+
'centernot',
47+
'gensymb',
48+
]}
49+
},
50+
output: {
51+
font: 'mathjax-stix2',
52+
}
53+
};

0 commit comments

Comments
 (0)