fdc62c - Added instructions to use nanoc container from registry.centos.org

Authored and Committed by arrfab 7 years ago
    - 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)
    
        
file modified
+9 -1
README.md CHANGED
@@ -31,13 +31,21 @@ May be in RPM:
31
31
* asciidoc
32
32
* nokogiri
33
33
34
- Installing on CentOS 7 as well as F19/20/21:
34
+ ## Installing on CentOS 7 as well as F19/20/21:
35
35
36
36
<pre>
37
37
sudo yum install ruby asciidoc rubygem-bundler make gcc ruby-devel zlib-devel zlib gcc-c++
38
38
bundle install
39
39
</pre>
40
40
41
+
42
+ ## Using a built container (all platforms):
43
+ Assuming that you have this git repository cloned under /opt/data/git/centos.org :
44
+ ```
45
+ docker pull registry.centos.org/arrfab/nanoc:latest # Download the container
46
+ docker run --rm -v /opt/data/git/centos.org/:/nanoc/:Z registry.centos.org/arrfab/nanoc:latest
47
+ ```
48
+
41
49
#Site Layout
42
50
* Template and menu files live in /layouts
43
51
* Markdown, erb and processed text files live in /content
file modified
+2 -0
nanoc.yaml CHANGED
@@ -39,6 +39,8 @@ data_sources:
39
39
# `filesystem_unified`.
40
40
type: filesystem_unified
41
41
42
+ # Forcing utf-8 : useful when used through container (https://github.com/nanoc/nanoc/issues/237)
43
+ encoding: utf-8
42
44
# The path where items should be mounted (comparable to mount points in
43
45
# Unix-like systems). This is “/” by default, meaning that items will have
44
46
# “/” prefixed to their identifiers. If the items root were “/en/”