/me: Pablo Iranzo Gómez ( https://iranzo.io )
Code usually also requires a webpage
Web costs money
Empty your mind, be shapeless, formless, like water. Now you put water in a cup, it becomes the cup, you put water into a bottle, it becomes the bottle You put water in a teacup, it becomes the teapot Now water can flow or it can crash. Be water my friend
Note: Automation: Be lazy, have someone else doing it for you.
Both provide a ‘static’ Webserver to be used for your projects for free.
G(H/L) serve from a branch in your repo (usually yourusername.github.io
repo)
You can buy a domain and point it to your website.
There are many ‘static’ content generators that provide rich features:
Importance of language is for developing ‘plugins’, not content.
They ‘render’ markdown into html
Think about endless possibilities!!!
Note: We’ve all the pieces to push a new markdown file and have it triggering a website update and publish
** DEMO on Pelican + Theme **
Automation for projects:
.travis.yml
Example (setup environment)
language: python
dist: trusty
sudo: required
python:
- "3.5"
before_install:
- pip install -U pip
- pip install -U setuptools
- pip install -r tests/requirements.txt
- pip install -r tests/test-requirements.txt
- pip install peru
- mkdir -p tests/themes/elegant
- mv templates tests/themes/elegant/
- mv static tests/themes/elegant/
- cd tests && peru sync
before_script:
- npm install travis-ci
script:
- pelican content/ -o output/
after_success:
- node trigger-build.js
after_success:
- rm -rf .git/
- git init
- git config user.name "Travis CI"
- git config user.email "[email protected]"
- git config --global push.default simple
- git remote add origin https://${GITHUB_TOKEN}@github.com/Pelican-Elegant/pelican-elegant.github.io.git
- make github
pypi
packageOk, automation is ready, our project validates commits, PR’s, website generation…
What else?
DockerHub and Quay allow to automate build on branch commit
On each commit, a new container will be built
Yes!
Try https://github.com/iranzo/blog-o-matic/
Fork to your repo and get:
travis-ci
activation)travis-ci
job that builds on each commit.sitemap
, and web claiming