readme n shit
This commit is contained in:
parent
4900409117
commit
9755562463
13
Gemfile
Normal file
13
Gemfile
Normal file
|
@ -0,0 +1,13 @@
|
|||
# frozen_string_literal: true
|
||||
# A sample Gemfile
|
||||
source 'https://rubygems.org'
|
||||
|
||||
ruby '2.3.1'
|
||||
|
||||
gem 'nanoc'
|
||||
gem 'kramdown'
|
||||
|
||||
group :development do
|
||||
gem 'adsf'
|
||||
gem 'guard-nanoc'
|
||||
end
|
62
Gemfile.lock
Normal file
62
Gemfile.lock
Normal file
|
@ -0,0 +1,62 @@
|
|||
GEM
|
||||
remote: https://rubygems.org/
|
||||
specs:
|
||||
adsf (1.2.1)
|
||||
rack (>= 1.0.0)
|
||||
coderay (1.1.1)
|
||||
colored (1.2)
|
||||
cri (2.7.0)
|
||||
colored (~> 1.2)
|
||||
ffi (1.9.10)
|
||||
formatador (0.2.5)
|
||||
guard (2.14.0)
|
||||
formatador (>= 0.2.4)
|
||||
listen (>= 2.7, < 4.0)
|
||||
lumberjack (~> 1.0)
|
||||
nenv (~> 0.1)
|
||||
notiffany (~> 0.0)
|
||||
pry (>= 0.9.12)
|
||||
shellany (~> 0.0)
|
||||
thor (>= 0.18.1)
|
||||
guard-compat (1.2.1)
|
||||
guard-nanoc (2.0.0)
|
||||
guard (~> 2.8)
|
||||
guard-compat (~> 1.0)
|
||||
nanoc (~> 4.0)
|
||||
kramdown (1.10.0)
|
||||
listen (3.1.5)
|
||||
rb-fsevent (~> 0.9, >= 0.9.4)
|
||||
rb-inotify (~> 0.9, >= 0.9.7)
|
||||
ruby_dep (~> 1.2)
|
||||
lumberjack (1.0.10)
|
||||
method_source (0.8.2)
|
||||
nanoc (4.2.0)
|
||||
cri (~> 2.3)
|
||||
nenv (0.3.0)
|
||||
notiffany (0.1.0)
|
||||
nenv (~> 0.1)
|
||||
shellany (~> 0.0)
|
||||
pry (0.10.3)
|
||||
coderay (~> 1.1.0)
|
||||
method_source (~> 0.8.1)
|
||||
slop (~> 3.4)
|
||||
rack (1.6.4)
|
||||
rb-fsevent (0.9.7)
|
||||
rb-inotify (0.9.7)
|
||||
ffi (>= 0.5.0)
|
||||
ruby_dep (1.3.1)
|
||||
shellany (0.0.1)
|
||||
slop (3.6.0)
|
||||
thor (0.19.1)
|
||||
|
||||
PLATFORMS
|
||||
ruby
|
||||
|
||||
DEPENDENCIES
|
||||
adsf
|
||||
guard-nanoc
|
||||
kramdown
|
||||
nanoc
|
||||
|
||||
BUNDLED WITH
|
||||
1.12.5
|
22
Guardfile
Normal file
22
Guardfile
Normal file
|
@ -0,0 +1,22 @@
|
|||
# A sample Guardfile
|
||||
# More info at https://github.com/guard/guard#readme
|
||||
|
||||
## Uncomment and set this to only include directories you want to watch
|
||||
# directories %w(app lib config test spec features) \
|
||||
# .select{|d| Dir.exists?(d) ? d : UI.warning("Directory #{d} does not exist")}
|
||||
|
||||
## Note: if you are using the `directories` clause above and you are not
|
||||
## watching the project directory ('.'), then you will want to move
|
||||
## the Guardfile to a watched dir and symlink it back, e.g.
|
||||
#
|
||||
# $ mkdir config
|
||||
# $ mv Guardfile config/
|
||||
# $ ln -s config/Guardfile .
|
||||
#
|
||||
# and, you'll have to watch "config/Guardfile" instead of "Guardfile"
|
||||
|
||||
guard 'nanoc' do
|
||||
watch('nanoc.yaml')
|
||||
watch('Rules')
|
||||
watch(%r{^(content|layouts|lib)/.*$})
|
||||
end
|
18
README.md
Normal file
18
README.md
Normal file
|
@ -0,0 +1,18 @@
|
|||
# zeus.ugent.be
|
||||
|
||||
## Installation
|
||||
|
||||
`bundle install`
|
||||
|
||||
## Developing
|
||||
|
||||
In one session:
|
||||
```bash
|
||||
bundle exec guard
|
||||
```
|
||||
Guard will watch for file changes and automatically recompile the site
|
||||
|
||||
In another session:
|
||||
```bash
|
||||
bundle exec nanoc view
|
||||
```
|
14
Rules
14
Rules
|
@ -1,17 +1,15 @@
|
|||
#!/usr/bin/env ruby
|
||||
|
||||
# HTML
|
||||
compile '/**/*.html' do
|
||||
layout '/default.*'
|
||||
end
|
||||
|
||||
# This is an example rule that matches Markdown (.md) files, and filters them
|
||||
# using the :kramdown filter. It is commented out by default, because kramdown
|
||||
# is not bundled with Nanoc or Ruby.
|
||||
#
|
||||
#compile '/**/*.md' do
|
||||
# filter :kramdown
|
||||
# layout '/default.*'
|
||||
#end
|
||||
# Markdown
|
||||
compile '/**/*.md' do
|
||||
filter :kramdown
|
||||
layout '/default.*'
|
||||
end
|
||||
|
||||
route '/**/*.{html,md}' do
|
||||
if item.identifier =~ '/index.*'
|
||||
|
|
Loading…
Reference in a new issue