Skip to main content
The 2024 Developer Survey results are live! See the results

Questions tagged [nanoc]

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

0 votes
0 answers
29 views

Trying to install Nanoc (with Ruby) on Fedora Linux, but getting an error I can't decipher

I try to install Nanoc on Fedora Linux. I've successfully installed Ruby using dnf install ruby Checked it with ruby -v and made sure rubygems is installed. Also checked version to verify ...
zektiv's user avatar
  • 1
1 vote
1 answer
50 views

How can I force kramdown (or Nanoc) to generate <br> instead of <br /> for line breaks?

I’m using kramdown with static site generator Nanoc to generate HTML from Markdown. By default, kramdown is generating Markdown double-spaces as XHTML-friendly <br /> instead of HTML5's <br&...
Dave Everitt's user avatar
  • 17.7k
4 votes
2 answers
142 views

Replacing fork() with spawn() in nanoc live

I've got an issue with Ruby. Specifically, the spawn() and fork() methods. I'm developing a website using Nanoc on Windows, and upon trying to implement the nanoc-live gem, I get the message that fork(...
TechnicalTophat's user avatar
0 votes
1 answer
69 views

Config Nanoc in Docker Error facing "Nanoc::Core::ConfigLoader::NoConfigFileFoundError: No configuration file found"

I try to create nanoc Markdown Documentation page deployment using docker. Docker container was created successfully. While running the container i am getting the nanoc configuration error and ...
Athithanambi Anna Anban's user avatar
0 votes
1 answer
753 views

The While running Docker container getting error "current working directory, nor any of its parents, seems to be a Nanoc site"

My docker file FROM ruby:latest # Create app directory WORKDIR /usr/src/app COPY Gemfile . # Copy the files COPY . ./docs RUN bundler install RUN bundle exec nanoc EXPOSE 5300 ...
Athithanambi Anna Anban's user avatar
1 vote
1 answer
105 views

How to write a filter to nanoc that adds a ref to a toc after each header

I'm trying to create a filter that adds references to the TOC after each h2 heading. Here is what I've done but it doesn't work, and each time I modify the code all the relevant pages are not ...
eleandar's user avatar
1 vote
1 answer
228 views

Pass variable from content to layout in Nanoc using Slim

I basically want to know the easiest way to pass a ruby variable from a content page to its layout using Nanoc and Slim. I am thinking of something like this: content/content.slim: --- title: ...
Daniel Salazar's user avatar
1 vote
1 answer
61 views

Linking to search results with Ruby

I'm a complete novice in Ruby and Nanoc, but a project has been put in my lap. Basically, the code for the page brings back individual URLs for each item linking them to the manual. I'm trying to ...
a_citizen's user avatar
0 votes
1 answer
274 views

Nanoc rules to process markdown files

My current rules file looks as follows: #!/usr/bin/env ruby ### COMPILATION RULES # Don’t filter or layout assets compile %r{^/(favicon|robots|crypto/.*|stylesheets/.*|javascript/.*|plugins/.*|...
kingmakerking's user avatar
1 vote
1 answer
176 views

How to specify layout in nanoc?

In Jekyll, we write layout structure in a HTML file and put it in _layout folder. Say, the _layout folder has file named welcome.html, for a webpage to use it, we simply specify as follows: --- title:...
kingmakerking's user avatar
1 vote
0 answers
33 views

Nanoc setup for URLs and links on a github deployed webpage [duplicate]

I depoyed a static webpage on github with nanoc. Everything works very nice. Except that the images not their thumbnails are visible. The URL path is missing the project name. So when i click in the ...
theDrifter's user avatar
  • 1,684
0 votes
2 answers
49 views

error deploying static webpage build with nanoc on github with orphan git branch

I followed this tutorial on the nanoc webpage to deploy my webpage on github. I followed these instructions % rm -rf output % git clone . output % cd output output@master% git checkout --orphan gh-...
theDrifter's user avatar
  • 1,684
0 votes
0 answers
90 views

Nanoc 4.7.10 and Bootstrap integration

Does anyone have any instructions on how to integrate Bootstrap into Nanoc? I have googled this but have not found a tutorial that would guide me through the initial integration setup. Can anyone ...
JustAl's user avatar
  • 61
0 votes
1 answer
73 views

Next and Prev buttons for pages in the same folder in nanoc

I'm building a static generator for a getting started guide and I am grouping pages for the same guide into a folder. how would I add a footer to the bottom of the generated pages for next and ...
Joseph Le Brech's user avatar
1 vote
1 answer
65 views

How to use a static site generator for a Getting Started guide

I want to write some getting started guides for areas of my site in markdown and split them over multiple pages. My file structure is like so: /doing-x 1-blah-blah.md 2-blah-blah.md 3-blah-...
Joseph Le Brech's user avatar

15 30 50 per page
1
2 3 4 5
7