Questions tagged [nanoc]

nanoc is a static site generator, fit for building anything from a small personal blog to a large corporate web site.

nanoc is a static site generator written in Ruby, fit for building anything from a small personal blog to a large corporate web site.

Notable sites using it

96 questions
0
votes
1 answer

nw command linked with nanoc

I'm using OSX and installed NWjs, when I try to run a site using nw ./, it gives such an error: WARNING: The watch command is deprecated. Please consider using guard-nanoc instead (see https://github.com/nanoc/guard-nanoc). Error: The current…
Jim
  • 1,123
  • 13
  • 29
0
votes
1 answer

use nanoc for github pages

I tried using nanoc for generating a static blog on github pages. I found several tutorial and blogposts about it but they all seem out-dated and not working. This is what I did: Install nanoc into diretory /MYNAME.github.io compile the default…
spore234
  • 3,550
  • 6
  • 50
  • 76
0
votes
1 answer

One master template or more templates?

I have group of pages on site that is statically generated using nanoc; each group represents one document kind and has it's own template. Each group template is a little different. For example, main template: <--header--> …
igr
  • 10,199
  • 13
  • 65
  • 111
0
votes
1 answer

Change default content type for previewing site with "nanoc view"

I generate HTML files without any filetype extension with the following route in nanoc’s Rules file: route '/blog/*/' do item.identifier.chop end So the file /content/blog/hello-world.html gets generated as /output/blog/hello-world, leading to…
unor
  • 92,415
  • 26
  • 211
  • 360
0
votes
1 answer

Nanoc rules file not handling my JavaScript directory

My nanoc content directory structure: assets -> (css, images, files) js partials [*.textile source files] Extract from my rules file: compile '/js/*/' do # don’t filter or layout end . . . route '/js/*/' do item.identifier.chop + '.' +…
Tom Cloyd
  • 1
  • 2
0
votes
1 answer

Compiling and Routing files under bower_component folder in Nanoc

I want to take and put some of the files under bower_components folder. In my web site, bower_components folder tree is as follows: ├── bower_components │   └── angular │   ├── README.md │   ├── angular-csp.css │   ├── angular.js │   …
ankakusu
  • 1,738
  • 8
  • 26
  • 37
0
votes
1 answer

nanoc installation setup in Linux

I'm a newbie to Ruby. Trying to setup nanoc in my machine. I'm running Ubuntu 14.04. After the nanoc installation, when I type $nanoc --version I get the following…
Ananth
  • 837
  • 1
  • 10
  • 20
0
votes
2 answers

Nanoc & ss social circle

I have a problem using ss social circle web fonts. In my rules I have: compile '/assets/webfonts/*/' do end route '/assets/webfonts/*' do end in the web fonts folder I have: ss-social-circle.css ss-social-circle.svg …
gtheys
  • 501
  • 3
  • 19
0
votes
1 answer

Nanoc Deployment rsync error (code 2)

I'm not sure how to fix the error I am getting when I try to deploy nanoc. See errors below. aliaas@Alis-MacBook-Air ~/projects/portfolio/2014_portfolio ❯ nanoc deploy --target public Loading site data… done aliflyn1@aliflynnaas.com's password:…
Ali Aas
  • 25
  • 2
0
votes
0 answers

Ruby script Nanoc items

I'm working a site to generate reports on a lot of data in unpredictable formats. My (current) plan is to organize the content like so: /content/raw/ # holds raw .csv, .json, .etc, isn't routed /content/data/ # holds ruby scripts to…
Steven Clontz
  • 945
  • 1
  • 11
  • 20
0
votes
1 answer

Nanoc compile rule with regex

I have files with filenames begining with controls-, like controls-dark.png for example, but this rule does not catch them: compile '/gallery/*/', :rep => :thumbnail do filter :thumbnailize, :width => 200 unless…
branquito
  • 3,864
  • 5
  • 35
  • 60
0
votes
1 answer

Include Susy with Nanoc

I'm trying to include Susy in my Nanoc project. I followed the GitHub of ddfreyne. I installed Compass first and Susy next. Then, in my Gemfile I added the line: gem "susy". In my stylesheet, I added @import "susy" Unfortunately, I have an error…
oxiqxor
  • 11
  • 1
0
votes
0 answers

Unexpected $undefined with Nanoc and jQuery

I tried to reproduce this simple tutorial about the script localScroll (jQuery). I used it and used the HTML code with Nanoc and it worked. Then, I tried to transform the HTML code in a HAML code. Here is the HAML code. Now, when I'm trying to…
0
votes
0 answers

Static Site Generator for prototype

I have been reading a lot of information about using Static Site Generators (SSG) for prototyping. The problem is that there seems to be an ton of options and I do not have time to test that many of them. I'm familiar with HTML, CSS, LESS and some…
0
votes
1 answer

Difficult code packaging design

I've built a tool to write college curricula using the static site generator nanoc. Nanoc is a nice Ruby-based package and it is distributed as a gem. I installed the gem, and used the "nanoc new" command to create the basic directory structure.…
pitosalas
  • 10,286
  • 12
  • 72
  • 120