Add example site

This commit is contained in:
Joseph Kato
2020-01-22 22:03:16 -08:00
parent e5a08ce1a8
commit 552a970ef5
17 changed files with 1178 additions and 0 deletions

36
.travis.yml Normal file
View File

@@ -0,0 +1,36 @@
dist: xenial
sudo: required
language: python
python: 3.7
install:
- pip install markdata
script:
# Python tests:
- cd code/py
- pip install -r requirements.txt
- pytest test.py
- cd -
# Node.js tests:
- cd code/js
- npm install
- ./node_modules/mocha/bin/mocha
- cd -
after_success:
# Build our content:
- markdata --root . src content/post
# Build our site:
- hugo
deploy:
provider: pages
skip_cleanup: true
github_token: $GITHUB_TOKEN
local_dir: public
on:
branch: master