diff --git a/.CI/Jenkinsfile b/.CI/Jenkinsfile index a82e31326..148cb65b8 100644 --- a/.CI/Jenkinsfile +++ b/.CI/Jenkinsfile @@ -30,9 +30,10 @@ pipeline { sh 'mkdir -p /tmp/jenkins' sh 'latexmk -pdf MLS.tex' 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 '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 index.html' sh '.scripts/patch-viewport.sh' sh '.scripts/patch-body-ios-hover.sh' + sh 'ln -s index.html MLS.html' sh 'ln -s preface.html Chx1.html' sh 'ln -s lexical-structure.html Ch2.html' sh 'ln -s operators-and-expressions.html Ch3.html' diff --git a/Makefile b/Makefile index 2cf40c158..004c7d179 100644 --- a/Makefile +++ b/Makefile @@ -22,7 +22,7 @@ MLS.pdf: *.tex chapters/*.tex # Seems to be some issue with graphicpath, so set path here as well # Not using %.html since nmake does not support it (instead using old-style suffix rules) -MLS.html: MLS.tex chapters/*.tex +index.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