Giter Club home page Giter Club logo

nanoc.app's Introduction

Nanoc site

This is the source for the Nanoc site.

The source code located in the lib/ directory is public domain. The design of this website should not be reused: it is not a template for you to take, so create your own design!

nanoc.app's People

Contributors

aaronbartell avatar balupton avatar bmintz avatar bobthecow avatar cakebaker avatar carlpaten avatar cristoper avatar da2x avatar daveeveritt avatar denisdefreyne avatar dependabot[bot] avatar deplorableword avatar dv avatar ebargtuo avatar froderik avatar gpakosz avatar jaspervdj avatar lildude avatar mpapis avatar nicholasklick avatar opatry avatar pk avatar q-uint avatar shanepelletier avatar soul-wish avatar stevenclontz avatar sunshineco avatar tammersaleh avatar th-h avatar vipulnsward avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

nanoc.app's Issues

Dual-license on code examples

Website states that its content is licensed under CC BY-SA 3.0. That applies to code examples too. That means that using examples I have to license my work under the CC BY-SA. This license is not recommended for software and is not compatible with other licenses, such as GPL.

It would be good if code examples were available under different license (e.g. MIT/X11).
The same way for code samples in documentation under GFDL it is recommended to relicense them under GPL.

Reorganise docs section

opensourcegrrrl suggested reorganisation of the docs section: "chapter/section", "Guides", "Reference", "Glossary" (typically part of another doc), and external API docs.

Traveling Ruby nanoc

continuing from #65 (comment)

I can play with setting up everything, having ready to use package would be a great improvement to new users, I heard there are issues with nokogiri but I do not think it will be a lot of time to figure it out.

an issue

hi.
i use "gem install nanoc" to install nanoc successfully.but when i use "nanoc create-site nanoc-blog" to try to create a site,i met the error below.
how to fix it?

as3:# gem install nanoc
Fetching: colored-1.2.gem (100%)
Successfully installed colored-1.2
Fetching: cri-2.4.0.gem (100%)
Successfully installed cri-2.4.0
Fetching: nanoc-3.6.5.gem (100%)
Successfully installed nanoc-3.6.5
Parsing documentation for colored-1.2
Installing ri documentation for colored-1.2
Parsing documentation for cri-2.4.0
Installing ri documentation for cri-2.4.0
Parsing documentation for nanoc-3.6.5
Installing ri documentation for nanoc-3.6.5
3 gems installed
as3:
# nanoc create-site nanoc-blog
cannot load such file -- cri
If you are using a Gemfile, make sure that the Gemfile contains nanoc ('gem "nanoc"').

Internals not documented

There is Nanoc 4 API documentation, but there is no high-level documentation of Nanoc internals.

Data sources guide mentions UTF-8 by default

It says this:

Because inferring the encoding from the environment is so unreliable, the final version of Nanoc 4 might default to UTF-8.

This is no longer accurate and should be removed.

Add example to legacy configuration setup

In the Nanoc 4 upgrade guide, the steps to set identifier_type and string_pattern_type could benefit from an example. For instance:

string_pattern_type: legacy

data_sources:
  - type: filesystem
    identifier_type: legacy

Migration guide completeness

Hi,

I've done the migration from Nanoc 3.x to Nanoc 4.0 (thanks for this whole new version!) and faced some issues not documented in the migration guide.


NameError: uninitialized constant Nanoc3

This error refers to the use of Nanoc3::Helpers::* that must be replaced by Nanoc::Helpers::*.


NoMethodError: undefined method `rep_named' for #<Nanoc::ItemView:0x007fe76147fd60>

I was using item.rep_named(:myrep) for good or bad reason but it is no more available. The alternative is to use item.reps[:myrep] or item.reps.fetch(:myrep).
I think this relates to the paragraph

If you get a NoMethodError that you did not expect, you might be using a private API that is no longer present in Nanoc 4.0

So, it should be ok as is, just to mention it if not related to this cause.


NameError: uninitialized constant Nanoc::Int::Context::HTMLEntities

I didn't understood this one, in fact this might not be related to Nanoc 4, but I was using <%= HTMLEntities.new.decode(@config[:site][:name]) %> in an item filtered by ERB without any issue on Nanoc 3, since the migration, I had to add require 'htmlentities' before using it.
This "new" behavior seems logical but is surprising according to Nanoc 3 behavior.


item.raw_filename returns an absolute path to item file in nanoc 4.x but a path relative to nanoc site root in nanoc 3.x


NoMethodError: undefined method `item' for nil:NilClass 
  0. /xxxxx/ruby/2.2.0/gems/nanoc-4.0.0/lib/nanoc/base/views/item_rep_view.rb:15:in `=='
  1. layout /article/:4:in `get_binding'

I was using is_excerpt = @item_rep == @item.rep_named(:excerpt) and it worked fine but now I have to do is_excerpt = @item_rep.name == @item.reps[:excerpt] ? @item.reps[:excerpt].name : "".to_sym (it seems to be a quick & dirty solution I think, tell me if there is a better solution).

The issue isn't related to rep_named, at first I just replaced and used reps[:excerpt] but the comparison was still causing the error.

Clarify how to use Sass/SCSS

Quoting @Pistos:

It would be good if there were just one spot in the docs that said "here's everything you need to do/put to use .sass/.scss". I had to piece that all together from like 3 things spread out across the documentation, and Stackoverflow, etc.

Also see this gist, which contains the Rules content necessary to get Sass/SCSS working.

CC @Pistos

Tutorial does not mention Bundler

Bundler is recommended for nanoc sites, yet the tutorial does not mention it at all.

Maybe it should only mention Bundler is NOTE admonitions; teaching how to use Bundler is (and should be) out of scope for the tutorial.

Rethink Community/Development pages

I believe the Community and Development pages on the nanoc web site should go, and be replaced with the following:

Support:

  • link to the discussion group
  • link to the IRC channel

I’d like to get rid of the wiki, since it’s not really used well and I’d rather have all documentation on the site.

It’ll be a small page, though. Not sure whether this page can be rolled into some other page.

Contributing:

  • report bugs
  • submit feature requests
  • contribute code
  • donate (new)
  • review pull requests (new)

It’ll be quite similar to what the Development page is now. The Upgrading to nanoc 4.0 section should probably be moved to Documentation.

Document release steps

These are the steps I use to release a new version:

  1. Publish nanoc gem
    1. Set version in gem
    2. Update release notes in gem (ensure correct release date)
    3. Build nanoc gem (rm nanoc-*.gem ; gem build nanoc.gemspec)
    4. Push nanoc gem (gem push nanoc-*.gem)
    5. Add git tag (git tag --sign --annotate 1.0.3 --message "Version 1.0.3")
    6. Push git changes (git push ; git push --tags)
  2. Publish changes
    1. Update release notes on site
    2. Update release notes on GitHub
    3. Send announcement e-mail
    4. Update #nanoc channel topic

This should be simplified, documented, and others should be given the permission to do this too.

Add Kerouac to Similar Projects

I'd like to request that Kerouac be added to the list of similar projects on the about page.

Great work on nanoc by the way! I used it extensively before transitioning most of my toolset to Node.

Checking for Ruby

It's fewer keystrokes/simpler to simply do ruby -v rather than starting up irb and closing it, with the benefit that users will immediately see if their Ruby is below the nanoc 1.8.6 minimum requirement.

Upgrade guide does not mention how to convert / rule

The upgrade guide does not specify how to upgrade the Rules file with a rule that matches '/', e.g.

compile '/' do
  # stuff here
end

A rule like this should be converted to match /index.*:

compile '/index.*' do
  # stuff here
end

Import code font

The code font (Consolas) is not imported anywhere. Additionally, the fallback does not provide a bold variant.

no sudo with rvm

In the sentence "you may have to prefix the gem command with sudo to ensure that you’re using root privileges" it's worth noting—since rvm is mentioned earlier—that rvm specifically doesn't want sudo, so maybe "unless you're using rvm, you may have to prefix the gem command with sudo to ensure that you’re using root privileges".

Tutorial is great, just one hiccup with older tag code

I loved the getting started tutorial. Everything was smooth sailing until this part:

Next, create a lib/tags.rb file and put in the following function:

def tags
  if @item[:tags].nil?
    '(none)'
  else
    @item[:tags].join(', ')
  end
end

Modify the layout and add a paragraph that outputs the tags:

<p>Tags: <%= tags %></p>

This appears on this page.

I kept getting errors. I undid these edits and moved onto the next section: "Use a predefined helper"

This new helper method worked flawlessly. Maybe there's something wrong or incompatible with the old tag section?

Mini-typo

at http://nanoc.ws/docs/basics/#layouts,

the example has <title><%=h @item[:title] %></title>

That h might throw some folks off.

(Yeah, I know this is tiny, but I'm such a newbie with Ruby that I can't help in any significant way - heh.)

Mention partials in ToC

18:54 <Pistos> http://nanoc.ws/docs/  <-- I recommend making a subsection in the table of contents for Partials
18:54 <Pistos> Partials documentation is found under Layouts, but when someone goes to the doc page like I did, and does a Ctrl-F for "partial", nothing is found,
18:55 <Pistos> leaving the impression that partials are not supported in nanoc.
18:55 <Pistos> I had to find out about partials by way of stackoverflow.

CC @Pistos

how about adding more fields?

It seems that the ssg repository doesn't have metadata about the programming language used in a project in their YAML file. Where does that data comes from?

And how about adding more columns for a better comparison? I actually opened an issue over there for that... bevry/staticsitegenerators-list#7

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.