TECH-NI source code
Switch branches/tags
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
_caches
_data/locale
_includes
_lang
_layouts
_plugins
_posts
_scripts
apollo/tutorial
as
bakumatsu
css/csstips
en
hatebu_nenkan
hokkaido
illusion1
images
img
ipy
irb
ja
javascript
javascripts
marubiru
meltdown
misc
stylesheets
.gitignore
.htaccess
Gemfile
Gemfile.lock
Gruntfile.js
README.markdown
_config.en.yml
_config.ja.yml
_config.yml
apple-touch-icon-114x114.png
apple-touch-icon-72x72.png
apple-touch-icon.png
blog.cgi
entry.cgi
favicon.ico
index.cgi
package.json

README.markdown

tech-ni source code

"tech-ni" is a web site published under:

Initialize

$ git clone https://github.com/nitoyon/tech.nitoyon.com.git
$ cd tech.nitoyon.com
$ git new-workdir . _site html
$ git checkout .; git clean -d -f
$ npm install
$ npm install -g grunt-cli
$ gem install bundler
$ bundle install --path=vendor/bundle

(ref) git-new-workdir, git-new-workdir-win

How to Build

When file is modified, generate only modified pages and notify to browser (http://localhost:35729/).

$ bundle exec grunt

Generate only modified pages when file is modified.

$ bundle exec grunt watch

Generate only modified pages.

$ bundle exec grunt build

Generate all pages.

$ bundle exec grunt rebuild
  • Post and Page are generated when source file is modified.
  • Archive and Lang are generated when page's yaml front matter or post's yaml front matter is modified.

Build Requirements

  • Node.js 0.10.18
    • grunt-cli
  • Ruby 2.0.0
  • Python 2.7
    • Pygmentize 1.6