Skip to content

Commit

Permalink
Migrate to Jupyter Book
Browse files Browse the repository at this point in the history
Add deployment configuration
  • Loading branch information
delapuente committed Nov 21, 2019
1 parent 6f5e7ca commit 8897681
Show file tree
Hide file tree
Showing 204 changed files with 7,160 additions and 1,902 deletions.
163 changes: 154 additions & 9 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,10 +1,155 @@
# Created by https://www.gitignore.io/api/python
# Edit at https://www.gitignore.io/?templates=python

### Python ###
# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
*$py.class

# C extensions
*.so

# Distribution / packaging
.Python
build/
develop-eggs/
dist/
downloads/
eggs/
.eggs/
lib/
lib64/
parts/
sdist/
var/
wheels/
pip-wheel-metadata/
share/python-wheels/
*.egg-info/
.installed.cfg
*.egg
MANIFEST

# PyInstaller
# Usually these files are written by a python script from a template
# before PyInstaller builds the exe, so as to inject date/other infos into it.
*.manifest
*.spec

# Installer logs
pip-log.txt
pip-delete-this-directory.txt

# Unit test / coverage reports
htmlcov/
.tox/
.nox/
.coverage
.coverage.*
.cache
nosetests.xml
coverage.xml
*.cover
.hypothesis/
.pytest_cache/

# Translations
*.mo
*.pot

# Scrapy stuff:
.scrapy

# Sphinx documentation
docs/_build/

# PyBuilder
target/

# pyenv
.python-version

# pipenv
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
# However, in case of collaboration, if having platform-specific dependencies or dependencies
# having no cross-platform support, pipenv may install dependencies that don't work, or not
# install all needed dependencies.
#Pipfile.lock

# celery beat schedule file
celerybeat-schedule

# SageMath parsed files
*.sage.py

# Spyder project settings
.spyderproject
.spyproject

# Rope project settings
.ropeproject

# Mr Developer
.mr.developer.cfg
.project
.pydevproject

# mkdocs documentation
/site

# mypy
.mypy_cache/
.dmypy.json
dmypy.json

# Pyre type checker
.pyre/


### VirtualEnv ###
# Virtualenv
# http://iamzed.com/2009/05/07/a-primer-on-virtualenv/
[Bb]in
[Ii]nclude
[Ll]ib
[Ll]ib64
[Ll]ocal
pyvenv.cfg
.env
.venv
*.html
.DS_Store
build
_repo
_build
__pycache__
.idea/
*/.ipynb_checkpoints
cliffords2.pickle
env/
venv/
ENV/
env.bak/
venv.bak/
pip-selfcheck.json

### Jekyll ###
_site/
.sass-cache/
.jekyll-cache/
.jekyll-metadata

### Sass ###
.sass-cache/
*.css.map
*.sass.map
*.scss.map

### JupyterNotebooks ###
.ipynb_checkpoints
*/.ipynb_checkpoints/*

# IPython
profile_default/
ipython_config.py

# End of https://www.gitignore.io/api/python

## Jupyter Book
_build/

## IDEs
.vscode
.idea
11 changes: 8 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,16 @@ language: python
python: "3.7"
install:
- pip install -r requirements.txt
- pip install -r requirements-dev.txt
- gem install bundler
- make install
script:
- bash gen-html.sh
- make runall
before_deploy:
- make book
- make build
deploy:
provider: script
skip_cleanup: true
script: bash deploy.sh
on:
branch: master
branch: master
21 changes: 21 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
source 'https://rubygems.org'

group :jekyll_plugins do
gem 'github-pages'
gem 'jekyll-feed', '~> 0.6'

# Textbook plugins
gem 'jekyll-redirect-from'
gem 'jekyll-scholar'
end

# Windows does not include zoneinfo files, so bundle the tzinfo-data gem
gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw, :jruby]

# Performance-booster for watching directories on Windows
gem 'wdm', '~> 0.1.0' if Gem.win_platform?

# Development tools
gem 'guard', '~> 2.14.2'
gem 'guard-jekyll-plus', '~> 2.0.2'
gem 'guard-livereload', '~> 2.5.2'
Loading

0 comments on commit 8897681

Please sign in to comment.