Skip to content

Latest commit

 

History

History
47 lines (36 loc) · 1.48 KB

File metadata and controls

47 lines (36 loc) · 1.48 KB

This Repo is development version of coding guidelines for each Xcidic members to follows. Build version published in Branch:gh-pages

Needs

  1. Hugo version 0.25.1. See Installation for specific version.
  2. Quickstart
  3. docdock theme v1.0

Setup

  1. Clone this project. git clone --recursive git@github.com:xcidic/coding-guidelines.git

  2. Enter Project folder cd coding-guidelines

  3. This project included docdock theme already. If you delete it accidentally. You can simply clone the docdock theme

git clone https://github.com/vjeantet/hugo-theme-docdock.git --branch v1.0.0 themes/docdock

Run

 # Run dev
 hugo server

 # Run build
 hugo 

Build destination folder

  • public/

Release to github pages

  1. run hugo to build pages in master branch
  2. checkout to gh-pages branch
     # first clone
     git fetch && git checkout gh-pages
     
     # or
     # you have gh-pages branch in local
     git checkout gh-pages
  3. copy everything inside public to root folder
     cp -a public/ ./
  4. commit and push to gh-pages branch