| CARVIEW |
ddfreyne / nanoc
- Source
- Commits
- Network (6)
- Graphs
-
Branch:
master
click here to add a description
click here to add a homepage
nanoc is a web publishing system written in Ruby. This GitHub repository is a mirror of the original Mercurial repository. — Read more
nanoc 3
nanoc is a simple but very flexible static site generator written in Ruby. It operates on local files, and therefore does not run on the server. nanoc “compiles” the local source files into HTML (usually), by evaluating eRuby, Markdown, etc.
Note: This documentation looks best with Yardoc, not RDoc.
Resources
The nanoc web site contains a few useful resources to help you get started with nanoc:
- The tutorial
- The manual
- The migration guide
If you need assistance, the following places will help you out:
- The discussion group
- The IRC channel
Source Code Documentation
The source code is located in lib/nanoc3 and is structured in a few
directories:
basecontains the bare essentials necessary for nanoc to functionclicontains the commandline interfacedata_sourcescontains the standard data sources ({Nanoc3::DataSource} subclasses), such as the filesystem data sourcehelperscontains helpers, which provide functionality some sites may find useful, such as the blogging and tagging helpersextracontains stuff that is not needed by nanoc itself, but which may be used by helpers, data sources, filters or VCSes.filterscontains the standard filters ({Nanoc3::Filter} subclasses) such as ERB, Markdown, Haml, ...
The namespaces (modules) are organised like this:
- {Nanoc3} is the namespace for everything nanoc-related (obviously). The
classes in
lib/nanoc3/baseare part of this module (notNanoc3::Base) - {Nanoc3::CLI} containing everything related to the commandline tool.
- {Nanoc3::DataSources} contains the data sources
- {Nanoc3::Helpers} contains the helpers
- {Nanoc3::Extra} contains useful stuff not needed by nanoc itself
- {Nanoc3::Filters} contains the (textual) filters
The central class in nanoc is {Nanoc3::Site}, so you should start there if you want to explore nanoc from a technical perspective.
Dependencies
nanoc itself can be used without installing any dependencies. Some components, however, do have dependencies:
- The autocompiler depends on
mime-typesandrack. - For documentation generation you’ll need
yard. - For packaging you’ll need
rubygems(1.3 or newer). - For testing you’ll need
mocha.
Contributors
(In alphabetical order)
- Ben Armston
- Colin Barrett
- Dmitry Bilunov
- Brian Candler
- Chris Eppstein
- Starr Horne
- Nicky Peeters
- Christian Plessl
- Šime Ramov
- “Soryu”
- Eric Sunshine
- Dennis Sutch
Special thanks to Ale Muñoz.
Contact
You can reach me at denis.defreyne@stoneship.org.
