Use python packages from the package manager.

time-shift
Stéphane Adjemian (Charybdis) 2019-02-19 10:15:39 +01:00
parent e7b08b7230
commit d548a6bdc6
Signed by untrusted user who does not match committer: stepan
GPG Key ID: A6D44CB9C64CE77B
3 changed files with 6 additions and 22 deletions

5
.gitignore vendored
View File

@ -1,6 +1,3 @@
*.zip
python/*
src/build/*
src/source/__pycache__/*
utils/__pycache__/*
src/source/_static/mathjax/*
utils/__pycache__/*

View File

@ -15,28 +15,18 @@
# You should have received a copy of the GNU General Public License
# along with Dynare. If not, see <http://www.gnu.org/licenses/>.
MATHJAX_VERSION = 2.7.5
SRC = $(wildcard src/source/*.rst)
.PHONY: all html pdf deps python mathjax
.PHONY: 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
. 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
. python/bin/activate ; 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
make -C src latexpdf

View File

@ -66,9 +66,6 @@ html_theme_options = {
'logo': 'dlogo.svg',
'logo_name': False,
'fixed_sidebar': True,
'sidebar_collapse': True,
'show_relbar_top': True,
'show_relbar_bottom': True,
'page_width': '100%',
}