Skip to content
This repository was archived by the owner on Apr 24, 2020. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
_build/
43 changes: 4 additions & 39 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,53 +3,18 @@

# You can set these variables from the command line.
SPHINXOPTS =
SPHINXBUILD = sphinx-build
SPHINXPROJ = QuantEconlectures
SOURCEDIR = .
SPHINXBUILD = python -msphinx
SPHINXPROJ = lecture-source-jl
SOURCEDIR = rst_files
BUILDDIR = _build

#Check for make.lock file. If not equal then set BUILD = True
ifeq ("$(wildcard ./make.lock)","")
BUILD=TRUE
else
BUILD=FALSE
endif

# Put it first so that "make" without argument is like "make help".
help:
@$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)

.PHONY: help Makefile

check_environment:
ifeq ($(BUILD),FALSE)
@echo "[ERROR] You cannot run make in the source directory"; exit 1
else
@true
endif

setup: check_environment install_dependancies
python build.py

install_dependancies: check_environment
pip install --upgrade sphinxcontrib-tikz
pip install --upgrade sphinxcontrib-bibtex

web: check_environment
make html

# force jupyter to build using jupyter_conversion_mode="all"
jupyter-all: check_environment
sphinx-build -D jupyter_conversion_mode="all" -b jupyter "$(SOURCEDIR)" "$(BUILDDIR)/jupyter"

xelatexpdf: latex
@echo "Running LaTeX files through xelatex to construct PDF with Unicode..."
$(MAKE) PDFLATEX=xelatex -C $(BUILDDIR)/latex all-pdf
$(MAKE) PDFLATEX=xelatex -C $(BUILDDIR)/latex all-pdf
@echo "xelatex finished; the PDF files are in $(BUILDDIR)/latex."


# Catch-all target: route all unknown targets to Sphinx using the new
# "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS).
%: Makefile check_environment
%: Makefile
@$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# lecture-source-jl
Source files for "Lectures in Quantitative Economics" -- Python version

This repo can temporarily compile notebooks in this repository using `make jupyter` after installation of sphinxcontrib-jupyter extension

https://github.com/QuantEcon/sphinxcontrib-jupyter

and best to install using ``python setup.py install``
File renamed without changes
File renamed without changes.
File renamed without changes.
Loading