3
Deploy Website by Pelican, Travis CI, and GitHub Pages
source link: http://siongui.github.io/2016/01/05/deploy-website-by-pelican-travis-ci-github-pages/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
Build Website
First add .travis.yml [11] in the root of your source repo. My configuration is as follows:
language: python python: - '2.7' branches: only: - master addons: apt: packages: - language-pack-en - language-pack-zh-hant - language-pack-th install: - pip install -r requirements.txt - make download script: - make publish
My website support threes languages (English, Traditional Chinese, Thai), and I need three locales (en_US.UTF8, zh_TW.UTF-8, th_TH.UTF-8) to build each subsites. That's why three language-packs are installed.
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK