Skip to content

Commit

Permalink
Make the menu hover work on iOS Safari (modelica#2934)
Browse files Browse the repository at this point in the history
Fixes an issue described in:
modelica#2825 (comment)
  • Loading branch information
sjoelund committed May 5, 2021
1 parent 88246be commit 5707a7e
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
1 change: 1 addition & 0 deletions .CI/Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ pipeline {
sh 'latexml MLS.tex --includestyles --path=media --dest MLS.xml'
sh 'latexmlpost MLS.xml -format html -pmml --splitat=chapter --splitnaming=labelrelative --javascript=LaTeXML-maybeMathjax.js --navigationtoc=context --css=css/MLS.css --css=css/MLS-navbar-left.css --dest MLS.html'
sh '.scripts/patch-viewport.sh'
sh '.scripts/patch-body-ios-hover.sh'
sh 'ln -s preface.html Chx1.html'
sh 'ln -s lexical-structure.html Ch2.html'
sh 'ln -s operators-and-expressions.html Ch3.html'
Expand Down
4 changes: 4 additions & 0 deletions .scripts/patch-body-ios-hover.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/sh -xe

sed -i.bak 's/<body>/<body tabindex=0>/' *.html
rm *.html.bak # MacOS sed does not support -i without extension
3 changes: 2 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,5 @@ MLS.pdf: *.tex chapters/*.tex
MLS.html: MLS.tex chapters/*.tex
$(LATEXMLPREFIX)latexml MLS.tex --includestyles --path=media --dest MLS.xml
$(LATEXMLPREFIX)latexmlpost MLS.xml -format html -pmml --splitat=chapter --splitnaming=labelrelative --javascript=LaTeXML-maybeMathjax.js --navigationtoc=context --css=css/MLS.css --css=css/MLS-navbar-left.css --dest $@
./scripts/patch-viewport.sh
.scripts/patch-viewport.sh
.scripts/patch-body-ios-hover.sh

0 comments on commit 5707a7e

Please sign in to comment.