Skip to content

วัดป่าโพธิญาณ Wat Pah Photiyan (Bodhiñāṇa), a.k.a., วัดเขื่อน

Notifications You must be signed in to change notification settings

siongui/wat-pah-photiyan

Repository files navigation

How to Develope

https://travis-ci.org/siongui/wat-pah-photiyan.png?branch=master

Development Tool: Pelican (static site generator written in Python)

Development Environment: Ubuntu 17.04

First-time Setup

  1. Install git and pip:

    $ sudo apt-get install git
    $ sudo apt-get install python-pip
  2. Install language packages to add locale (English, Traditional Chinese, and Thai in this example):

    $ sudo apt-get install language-pack-en
    $ sudo apt-get install language-pack-zh-hant
    $ sudo apt-get install language-pack-th
  3. git clone source code:

    $ cd
    $ mkdir dev
    $ cd ~/dev/
    $ git clone https://github.com/siongui/wat-pah-photiyan.git YOUR_REPO
  4. Install Python tools:

    $ cd ~/dev/YOUR_REPO/
    $ sudo pip install -r requirements.txt
  5. Install Pelican i18n_subsites plugin and download normalize.css:

    $ cd ~/dev/YOUR_REPO/
    $ make download
  6. Generate CSS file:

    $ cd ~/dev/YOUR_REPO/
    $ make scss

Auto-deploy by Travis CI

See [1].

Daily Development

# start edit and develope
$ cd ~/dev/YOUR_REPO/
# If something changes, re-generate the website:
$ make html
# start dev server
$ make serve
# open your browser and preview the website at http://localhost:8000/

References

[1]Deploy Website by Pelican, Travis CI, and GitHub Pages
[2]

JINJA_FILTERS in Settings — Pelican documentation

Jinja custom filters documentation

About

วัดป่าโพธิญาณ Wat Pah Photiyan (Bodhiñāṇa), a.k.a., วัดเขื่อน

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published