Skip to content

Travis build changes #14

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
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
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@ figures/*
src/*
*.md.tmp

# gets copied over during deployment
docs/index.md

site/*

# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
Expand Down
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ script:
# - jupyter nbconvert --config nbconvert_config.py --execute

# Build docs using mkdocs
- mkdocs build
- make docs


# This is an example to deploy to a branch through Travis.
Expand Down
27 changes: 14 additions & 13 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,20 +1,21 @@
.PHONY: docs

execute_params = --execute --ExecutePreprocessor.timeout=600
# execute_params = --execute --ExecutePreprocessor.timeout=600

RAWNBS = $(wildcard notebooks/*.ipynb)
HTMLS = $(patsubst notebooks/%.ipynb, ../docs/%.html, $(rawnbs))
# RAWNBS = $(wildcard notebooks/*.ipynb)
# HTMLS = $(patsubst notebooks/%.ipynb, ../docs/%.html, $(rawnbs))

htmldocs:
jupyter nbconvert notebooks/bayesian-estimation-multi-sample.ipynb --output ../docs/bayesian-estimation-multi-sample.html
jupyter nbconvert notebooks/degrees-of-freedom.ipynb --output ../docs/degrees-of-freedom.html
jupyter nbconvert notebooks/dirichlet-multinomial-bayesian-proportions.ipynb --output ../docs/dirichlet-multinomial-bayesian-proportions.html
jupyter nbconvert notebooks/mixture-model.ipynb --output ../docs/mixture-model.html
jupyter nbconvert notebooks/hierarchical-modelling.ipynb --output ../docs/hierarchical-modelling.html
jupyter nbconvert notebooks/poisson-regression.ipynb --output ../docs/poisson-regression.html
# htmldocs:
# jupyter nbconvert notebooks/bayesian-estimation-multi-sample.ipynb --output ../docs/bayesian-estimation-multi-sample.html
# jupyter nbconvert notebooks/degrees-of-freedom.ipynb --output ../docs/degrees-of-freedom.html
# jupyter nbconvert notebooks/dirichlet-multinomial-bayesian-proportions.ipynb --output ../docs/dirichlet-multinomial-bayesian-proportions.html
# jupyter nbconvert notebooks/mixture-model.ipynb --output ../docs/mixture-model.html
# jupyter nbconvert notebooks/hierarchical-modelling.ipynb --output ../docs/hierarchical-modelling.html
# jupyter nbconvert notebooks/poisson-regression.ipynb --output ../docs/poisson-regression.html

html: $(HTMLS)
jupyter nbconvert $< --output $@
# html: $(HTMLS)
# jupyter nbconvert $< --output $@

docs:
mkdocs serve
cp README.md docs/index.md
mkdocs build
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ Papers:
- [Bayesian Estimation Supersedes the t-Test](https://doi.org/10.1037/a0029146)

Videos:

- [Computational Statistics I @ SciPy 2015](https://www.youtube.com/watch?v=fMycLa1bsno)
- [Computational Statistics II @ SciPy 2015](https://www.youtube.com/watch?v=heFaYLKVZY4)
- [Bayesian Statistical Analysis with Python @ PyCon 2017](https://www.youtube.com/watch?v=p1IB4zWq9C8)
Expand Down
77 changes: 0 additions & 77 deletions docs/index.md

This file was deleted.

2 changes: 1 addition & 1 deletion environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ dependencies:
- pymc3=3.8
- mkl-service
- theano
- arviz
- arviz>=0.6.0
- missingno
- pygpu
- scikit-learn
Expand Down
20 changes: 13 additions & 7 deletions mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,17 @@ theme:
palette:
primary: 'green'
accent: 'green'
logo:
icon: 'library_books'
icon:
logo: material/equalizer
features:
- instant
- tabs

plugins:
- search
- search:
separator: '[\s\-\.]+'
lang:
- en
- mknotebooks:
execute: false
write_markdown: true
Expand All @@ -31,11 +37,11 @@ repo_url: 'https://github.com/ericmjl/bayesian-analysis-recipes'

extra:
social:
- type: 'envelope'
- icon: 'material/mail'
link: 'http://www.shortwhale.com/ericmjl'
- type: 'github'
- icon: 'fontawesome/brands/github'
link: 'https://github.com/ericmjl'
- type: 'twitter'
- icon: 'fontawesome/brands/twitter'
link: 'https://twitter.com/ericmjl'
- type: 'linkedin'
- icon: 'fontawesome/brands/linkedin'
link: 'https://linkedin.com/in/ericmjl'