Use local MathJax.
parent
c08b4edb38
commit
e19b04f315
|
@ -1,4 +1,6 @@
|
||||||
|
*.zip
|
||||||
python/*
|
python/*
|
||||||
src/build/*
|
src/build/*
|
||||||
src/source/__pycache__/*
|
src/source/__pycache__/*
|
||||||
py/domain/__pycache__/*
|
py/domain/__pycache__/*
|
||||||
|
src/source/_static/mathjax/*
|
22
Makefile
22
Makefile
|
@ -15,20 +15,26 @@
|
||||||
# You should have received a copy of the GNU General Public License
|
# You should have received a copy of the GNU General Public License
|
||||||
# along with Dynare. If not, see <http://www.gnu.org/licenses/>.
|
# along with Dynare. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
|
MATHJAX_VERSION = 2.7.5
|
||||||
|
|
||||||
SRC = $(wildcard src/source/*.rst)
|
SRC = $(wildcard src/source/*.rst)
|
||||||
|
|
||||||
|
.PHONY: all html pdf deps python mathjax
|
||||||
|
|
||||||
all: html pdf
|
all: html pdf
|
||||||
|
|
||||||
html: src/build/html/index.html
|
html: deps src/build/html/index.html
|
||||||
|
|
||||||
src/build/html/index.html: $(SRC) src/source/conf.py
|
src/build/html/index.html: $(SRC) src/source/conf.py
|
||||||
source python/bin/activate ; make -C src html
|
source python/bin/activate ; make -C src html
|
||||||
|
|
||||||
pdf: src/build/latex/dynare.pdf
|
pdf: deps src/build/latex/dynare.pdf
|
||||||
|
|
||||||
src/build/latex/dynare.pdf: $(SRC) src/source/conf.py
|
src/build/latex/dynare.pdf: $(SRC) src/source/conf.py
|
||||||
source python/bin/activate ; make -C src latexpdf
|
source python/bin/activate ; make -C src latexpdf
|
||||||
|
|
||||||
|
deps: python mathjax
|
||||||
|
|
||||||
python: python/bin/python3
|
python: python/bin/python3
|
||||||
|
|
||||||
python/bin/python3:
|
python/bin/python3:
|
||||||
|
@ -37,3 +43,15 @@ python/bin/python3:
|
||||||
cp py/pygment/dynare.py python/lib/python3.*/site-packages/pygments/lexers/
|
cp py/pygment/dynare.py python/lib/python3.*/site-packages/pygments/lexers/
|
||||||
cd python/lib/python3.*/site-packages/pygments/lexers ; python3 _mapping.py
|
cd python/lib/python3.*/site-packages/pygments/lexers ; python3 _mapping.py
|
||||||
patch -i py/basic.css_t.patch python/lib/python3.*/site-packages/sphinx/themes/basic/static/basic.css_t
|
patch -i py/basic.css_t.patch python/lib/python3.*/site-packages/sphinx/themes/basic/static/basic.css_t
|
||||||
|
|
||||||
|
mathjax: src/source/_static/mathjax/MathJax.js
|
||||||
|
@touch src/source/_static/mathjax/MathJax.js
|
||||||
|
|
||||||
|
src/source/_static/mathjax/MathJax.js: mathjax-$(MATHJAX_VERSION).zip
|
||||||
|
unzip mathjax-$(MATHJAX_VERSION).zip
|
||||||
|
mv MathJax-$(MATHJAX_VERSION) src/source/_static/mathjax
|
||||||
|
|
||||||
|
mathjax-$(MATHJAX_VERSION).zip:
|
||||||
|
wget https://github.com/mathjax/MathJax/archive/$(MATHJAX_VERSION).zip
|
||||||
|
mv $(MATHJAX_VERSION).zip mathjax-$(MATHJAX_VERSION).zip
|
||||||
|
@touch mathjax-$(MATHJAX_VERSION).zip
|
||||||
|
|
|
@ -31,6 +31,8 @@ templates_path = ['_templates']
|
||||||
|
|
||||||
html_static_path = ['_static']
|
html_static_path = ['_static']
|
||||||
|
|
||||||
|
mathjax_path = 'mathjax/MathJax.js?config=TeX-AMS-MML_HTMLorMML'
|
||||||
|
|
||||||
master_doc = 'index'
|
master_doc = 'index'
|
||||||
|
|
||||||
project = u'Dynare'
|
project = u'Dynare'
|
||||||
|
|
Loading…
Reference in New Issue