-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[wip] migrate site from jekyll to nanoc
still miss: * pagination * deploy via FTP * travis CI * checks
- Loading branch information
1 parent
4ff24d5
commit a78c5de
Showing
72 changed files
with
340 additions
and
172 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,5 @@ | ||
/_site | ||
# nanoc life | ||
/tmp/* | ||
/crash.log | ||
/output/* | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,10 @@ | ||
before_script: | ||
- gem install jekyll | ||
- gem install rdiscount | ||
# TODO nanoc build + deploy FTP | ||
# before_script: | ||
# - gem install jekyll | ||
# - gem install rdiscount | ||
|
||
script: | ||
- jekyll --safe | ||
# script: | ||
# - jekyll --safe | ||
|
||
notifications: | ||
- email: false | ||
# notifications: | ||
# - email: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
source 'https://rubygems.org' | ||
|
||
# nanoc itself | ||
gem 'nanoc', '~>3.6', '>=3.6.6' | ||
|
||
# nanoc view | ||
gem 'adsf' | ||
gem 'rack' | ||
|
||
# nanoc validate:css and validate:html Rake tasks | ||
gem 'w3c_validators' | ||
|
||
# nanoc filters | ||
gem 'kramdown' # markdown | ||
|
||
# css | ||
gem 'rainpress' | ||
|
||
# relativize paths | ||
gem 'nokogiri' | ||
|
||
# javascript | ||
gem 'uglifier' | ||
|
||
# html | ||
gem 'html_compressor' | ||
|
||
# syntax highlighting | ||
gem 'htmlentities' | ||
gem 'systemu' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
GEM | ||
remote: https://rubygems.org/ | ||
specs: | ||
POpen4 (0.1.4) | ||
Platform (>= 0.4.0) | ||
open4 | ||
Platform (0.4.0) | ||
adsf (1.2.0) | ||
rack (>= 1.0.0) | ||
colored (1.2) | ||
cri (2.5.0) | ||
colored (~> 1.2) | ||
execjs (2.0.2) | ||
html_compressor (0.0.3) | ||
POpen4 (>= 0.1.4) | ||
htmlentities (4.3.1) | ||
json (1.8.1) | ||
kramdown (1.3.3) | ||
mini_portile (0.5.3) | ||
nanoc (3.6.8) | ||
cri (~> 2.3) | ||
nokogiri (1.6.1) | ||
mini_portile (~> 0.5.0) | ||
open4 (1.3.3) | ||
rack (1.5.2) | ||
rainpress (1.0) | ||
systemu (2.6.4) | ||
uglifier (2.5.0) | ||
execjs (>= 0.3.0) | ||
json (>= 1.8.0) | ||
w3c_validators (1.2) | ||
json | ||
nokogiri | ||
|
||
PLATFORMS | ||
ruby | ||
|
||
DEPENDENCIES | ||
adsf | ||
html_compressor | ||
htmlentities | ||
kramdown | ||
nanoc (~> 3.6, >= 3.6.6) | ||
nokogiri | ||
rack | ||
rainpress | ||
systemu | ||
uglifier | ||
w3c_validators |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,5 @@ | ||
# Olivier Patry | ||
|
||
Personal home page source control based on [GitHub Pages](http://pages.github.com/) based on [Jekyll](https://github.com/mojombo/jekyll). | ||
The content is, most of the time, written using [Markdown](http://daringfireball.net/projects/markdown/). | ||
The content is, most of the time, written using [Markdown](http://daringfireball.net/projects/markdown/) and served by `[nanoc](http://nanoc.ws/)`. | ||
|
||
The opatry's user GitHub Page is redirected to http://opatry.net. | ||
The opatry's user GitHub Page is deployed on http://opatry.net. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
#!/usr/bin/env ruby | ||
|
||
compile '/assets/*' do | ||
# don’t filter or layout | ||
end | ||
|
||
compile '*' do | ||
if item.binary? | ||
# don’t filter binary items | ||
else | ||
filter :fenced_code_block | ||
filter :erb | ||
filter :kramdown | ||
filter :colorize_syntax, :default_colorizer => :pygmentize # syntax highlighting | ||
unless item[:layout] == 'none' | ||
layout item[:layout] || 'default' | ||
end | ||
#filter :html_compressor, :type => item[:extension] | ||
end | ||
end | ||
|
||
route '/posts/*' do | ||
y,m,d,slug = /([0-9]+)\-([0-9]+)\-([0-9]+)\-([^\/]+)/.match(item.identifier).captures | ||
|
||
"/#{y}/#{m}/#{d}/#{slug}/index.html" | ||
end | ||
|
||
route '/assets/*' do | ||
# /assets/foo.html/ -> /foo.html | ||
item.identifier[7..-2] | ||
end | ||
|
||
route '/rss/' do | ||
'/rss.xml' | ||
end | ||
|
||
route '/sitemap/' do | ||
'/sitemap.xml' | ||
end | ||
|
||
route '*' do | ||
if item.binary? | ||
# Write item with identifier /foo/ to /foo.ext | ||
item.identifier.chop + '.' + item[:extension] | ||
else | ||
# Write item with identifier /foo/ to /foo/index.html | ||
item.identifier + 'index.html' | ||
end | ||
end | ||
|
||
layout '*', :erb |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.