Giter Site home page Giter Site logo

ajahn-suchart's Introduction

How to Develope

image

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/pelican-template.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

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/

UNLICENSE

All works, including posts and code, of Siong-Ui Te are released in public domain. Please see UNLICENSE.

References

ajahn-suchart's People

Contributors

siongui avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.