Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
dumux-course
Manage
Activity
Members
Labels
Plan
Issues
12
Issue boards
Milestones
Wiki
Code
Merge requests
4
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
dumux-repositories
dumux-course
Commits
37822a91
Commit
37822a91
authored
5 months ago
by
David Werner
Browse files
Options
Downloads
Patches
Plain Diff
improved offline mathjax with npm
parent
be155b3e
No related branches found
No related tags found
1 merge request
!236
Shell-script which formats all the README.md with pandoc and latex from the...
Pipeline
#47894
waiting for manual action with stage
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
bin/build-offline-doc.sh
+22
-5
22 additions, 5 deletions
bin/build-offline-doc.sh
with
22 additions
and
5 deletions
bin/build-offline-doc.sh
+
22
−
5
View file @
37822a91
...
...
@@ -655,13 +655,29 @@ function install_katex() {
function
install_mathjax
()
{
local
targetdir
=
$1
local
mode
=
2
if
test
!
-f
$targetdir
/MathJax.js
then
# wget -q -O ${targetdir}/MathJax.js "https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.1/MathJax.js"
echo
"Downloading MathJax.js."
wget
-q
-O
${
targetdir
}
/MathJax.js
"https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS_HTML-full"
ln
-sf
${
targetdir
}
/MathJax.js
.
case
$mode
in
1
)
# wget -q -O ${targetdir}/MathJax.js "https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.1/MathJax.js"
echo
"Downloading MathJax.js."
wget
-q
-O
${
targetdir
}
/MathJax.js
"https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS_HTML-full"
ln
-sf
${
targetdir
}
/MathJax.js
.
;;
2
)
pushd
${
targetdir
}
# https://docs.mathjax.org/en/latest/web/hosting.html#web-hosting
# prebuild components in node_modules/mathjax/es5
if
test
!
-f
node_modules/mathjax/es5/tex-chtml.js
;
then
npm
install
mathjax@3
fi
popd
;;
esac
fi
}
...
...
@@ -707,7 +723,8 @@ function make_html() {
mathjax_reveal
)
install_mathjax
$targetdir
pathmathjax
=
'file:./MathJax.js'
#DW pathmathjax='file:./MathJax.js'
pathmathjax
=
'file:./node_modules/mathjax/es5/tex-chtml.js'
# pathreveal=https://unpkg.com/reveal.js/
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment