From fdc62c95c9f63f471981dcce11ad826dcb354ac7 Mon Sep 17 00:00:00 2001 From: Fabian Arrotin Date: Oct 17 2017 08:47:24 +0000 Subject: - Added instructions to use nanoc container from registry.centos.org - Forcing utf-8 from inside a container (fixes https://github.com/nanoc/nanoc/issues/237) --- diff --git a/README.md b/README.md index b949f70..078f184 100644 --- a/README.md +++ b/README.md @@ -31,13 +31,21 @@ May be in RPM: * asciidoc * nokogiri -Installing on CentOS 7 as well as F19/20/21: +## Installing on CentOS 7 as well as F19/20/21:
 sudo yum install ruby asciidoc rubygem-bundler make gcc ruby-devel zlib-devel zlib gcc-c++
 bundle install
 
+ +## Using a built container (all platforms): +Assuming that you have this git repository cloned under /opt/data/git/centos.org : +``` +docker pull registry.centos.org/arrfab/nanoc:latest # Download the container +docker run --rm -v /opt/data/git/centos.org/:/nanoc/:Z registry.centos.org/arrfab/nanoc:latest +``` + #Site Layout * Template and menu files live in /layouts * Markdown, erb and processed text files live in /content diff --git a/nanoc.yaml b/nanoc.yaml index 7596df3..3710ba1 100644 --- a/nanoc.yaml +++ b/nanoc.yaml @@ -39,6 +39,8 @@ data_sources: # `filesystem_unified`. type: filesystem_unified + # Forcing utf-8 : useful when used through container (https://github.com/nanoc/nanoc/issues/237) + encoding: utf-8 # The path where items should be mounted (comparable to mount points in # Unix-like systems). This is “/” by default, meaning that items will have # “/” prefixed to their identifiers. If the items root were “/en/”