Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/siongui/wat-pah-photiyan

วัดป่าโพธิญาณ Wat Pah Photiyan (Bodhiñāṇa), a.k.a., วัดเขื่อน
https://github.com/siongui/wat-pah-photiyan

buddhism go golang static-site-generator

Last synced: about 2 months ago
JSON representation

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

Awesome Lists containing this project

README

        

===============
How to Develope
===============

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

.. See how to add travis ci image from https://raw.githubusercontent.com/demizer/go-rst/master/README.rst
https://github.com/demizer/go-rst/commit/9651ab7b5acc997ea2751845af9f2d6efee825df

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

Development Environment: `Ubuntu 17.04`_

First-time Setup
----------------

1. Install git_ and pip_:

.. code-block:: bash

$ 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):

.. code-block:: bash

$ 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:

.. code-block:: bash

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

4. Install Python tools:

.. code-block:: bash

$ cd ~/dev/YOUR_REPO/
$ sudo pip install -r requirements.txt

5. Install Pelican `i18n_subsites`_ plugin and download `normalize.css`_:

.. code-block:: bash

$ cd ~/dev/YOUR_REPO/
$ make download

6. Generate CSS file:

.. code-block:: bash

$ cd ~/dev/YOUR_REPO/
$ make scss

Auto-deploy by `Travis CI`_
---------------------------

See [1]_.

Daily Development
-----------------

.. code-block:: bash

# 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 `_

.. _Pelican: http://blog.getpelican.com/
.. _Ubuntu 17.04: http://releases.ubuntu.com/17.04/
.. _UNLICENSE: http://unlicense.org/
.. _git: https://git-scm.com/
.. _pip: https://pypi.python.org/pypi/pip
.. _i18n_subsites: https://github.com/getpelican/pelican-plugins/tree/master/i18n_subsites
.. _normalize.css: https://necolas.github.io/normalize.css/
.. _Travis CI: https://travis-ci.org/
.. _Getting started - Travis CI: https://docs.travis-ci.com/user/getting-started/
.. _global: https://docs.travis-ci.com/user/environment-variables/#Global-Variables
.. _secure: https://docs.travis-ci.com/user/environment-variables/#Encrypted-Variables
.. _environment variable: https://docs.travis-ci.com/user/environment-variables/
.. _personal access token: https://help.github.com/articles/creating-an-access-token-for-command-line-use/
.. _Travis CI command line client: https://github.com/travis-ci/travis.rb