Use python packages from the package manager.
parent
e7b08b7230
commit
d548a6bdc6
|
@ -1,6 +1,3 @@
|
||||||
*.zip
|
|
||||||
python/*
|
|
||||||
src/build/*
|
src/build/*
|
||||||
src/source/__pycache__/*
|
src/source/__pycache__/*
|
||||||
utils/__pycache__/*
|
utils/__pycache__/*
|
||||||
src/source/_static/mathjax/*
|
|
20
Makefile
20
Makefile
|
@ -15,28 +15,18 @@
|
||||||
# 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
|
.PHONY: all html pdf
|
||||||
|
|
||||||
all: html pdf
|
all: html pdf
|
||||||
|
|
||||||
html: deps src/build/html/index.html
|
html: 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
|
||||||
. python/bin/activate ; make -C src html
|
make -C src html
|
||||||
|
|
||||||
pdf: deps src/build/latex/dynare.pdf
|
pdf: 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
|
||||||
. python/bin/activate ; make -C src latexpdf
|
make -C src latexpdf
|
||||||
|
|
||||||
deps: python mathjax
|
|
||||||
|
|
||||||
python: python/bin/python3
|
|
||||||
|
|
||||||
python/bin/python3:
|
|
||||||
python3 -m venv python
|
|
||||||
. python/bin/activate ; pip3 install --upgrade pip ; pip3 install sphinx recommonmark sphinx_rtd_theme
|
|
||||||
|
|
|
@ -66,9 +66,6 @@ html_theme_options = {
|
||||||
'logo': 'dlogo.svg',
|
'logo': 'dlogo.svg',
|
||||||
'logo_name': False,
|
'logo_name': False,
|
||||||
'fixed_sidebar': True,
|
'fixed_sidebar': True,
|
||||||
'sidebar_collapse': True,
|
|
||||||
'show_relbar_top': True,
|
|
||||||
'show_relbar_bottom': True,
|
|
||||||
'page_width': '100%',
|
'page_width': '100%',
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue