Skip to content

Commit 6c502dc

Browse files
authored
PyMC4 conversion and site rebuild (#8)
Now using mkdocs instead of jupyter and custom HTML.
1 parent 082ac3b commit 6c502dc

File tree

65 files changed

+3406
-190210
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

65 files changed

+3406
-190210
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
figures/*
44
.vscode/*
55
src/*
6+
*.md.tmp
67

78
# Byte-compiled / optimized / DLL files
89
__pycache__/

.pre-commit-config.yaml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ repos:
77
- id: trailing-whitespace
88
- id: end-of-file-fixer
99
- id: check-yaml
10-
- id: check-added-large-files
11-
- repo: https://github.com/kynan/nbstripout
12-
rev: master
13-
hooks:
14-
- id: nbstripout
15-
files: ".ipynb"
10+
# - id: check-added-large-files
11+
# - repo: https://github.com/kynan/nbstripout
12+
# rev: master
13+
# hooks:
14+
# - id: nbstripout
15+
# files: ".ipynb"

.travis.yml

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,19 +17,22 @@ install:
1717

1818
# Install Python and required packages.
1919
- conda env create -f environment.yml
20-
- source activate bayesian
20+
- source activate bayesian-analysis-recipes
2121

2222
# Ensure that the kernel is installed into the compute environment.
23-
- python -m ipykernel install --user --name bayesian
23+
- python -m ipykernel install --user --name bayesian-analysis-recipes
2424

2525
script:
2626
# Create the docs directory. This is where we will be publishing from
2727
# (see the "deploy" section below).
28-
- mkdir -p docs
28+
# - mkdir -p docs
2929
# All notebooks that need to be converted are inside nbconvert_config.py
3030
# We have to call on --execute - without doing so, the execution config
3131
# inside nbconvert_config.py won't run.
32-
- jupyter nbconvert --config nbconvert_config.py --execute
32+
# - jupyter nbconvert --config nbconvert_config.py --execute
33+
34+
# Build docs using mkdocs
35+
- mkdocs build
3336

3437

3538
# This is an example to deploy to a branch through Travis.
@@ -42,7 +45,7 @@ deploy:
4245
on:
4346
branch: master
4447
# Take the docs/ directory
45-
local-dir: docs
48+
local-dir: site
4649
# Publish to the gh-pages branch
4750
target-branch: gh-pages
4851
verbose: true

Makefile

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
1+
.PHONY: docs
2+
13
execute_params = --execute --ExecutePreprocessor.timeout=600
24

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

6-
docs:
8+
htmldocs:
79
jupyter nbconvert notebooks/bayesian-estimation-multi-sample.ipynb --output ../docs/bayesian-estimation-multi-sample.html
810
jupyter nbconvert notebooks/degrees-of-freedom.ipynb --output ../docs/degrees-of-freedom.html
911
jupyter nbconvert notebooks/dirichlet-multinomial-bayesian-proportions.ipynb --output ../docs/dirichlet-multinomial-bayesian-proportions.html
@@ -13,3 +15,6 @@ docs:
1315

1416
html: $(HTMLS)
1517
jupyter nbconvert $< --output $@
18+
19+
docs:
20+
mkdocs serve

0 commit comments

Comments
 (0)