Giter Club home page Giter Club logo

brite's Introduction

Brite

Homepage | Documentation | Report Issue | Development | Mailing List

Brite

DESCRIPTION

Brite is an innovative static website/blog generation utility which is as easy to use as it is versatile.

FEATURES

  • Site layout is 100% user-defined.
  • Can generate files in place, so no "special directories" are required.
  • Or templated routes can customize the site organization.
  • Supports multi-format templates via Neapolitan template engine.
  • Which supports many markup and templating formats via Malt or Tilt.

SYNOPSIS

Very briefly, one creates .page, .post, .part and .layout files and then runs:

$ brite

Voila, website made!

Of course, the question really is: how does one go about creating .page, .post, .part, and .layout files and such. For information about that see the Brite website and see the Getting Started Tutorial.

For a quick start, have a look at the brite-site repository, which contains a generic Brite project anyone can use to start their own Brite Site.

To get further under the hood, see Brite source code in the GitHub hosted repository and read the API documentation.

HOW TO INSTALL

RubyGems

$ gem install brite

Setup.rb

If you are old fashioned and want to install to a site location, see Setup.rb.

COPYRIGHTS

Copyright (c) 2009 Rubyworks

Brite is distributable in accordance with the BSD-2-Clause license.

See LICENSE.md file for details.

brite's People

Contributors

trans avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

apotheon

brite's Issues

running "brite",met error,how to fix it?

hi.

as3:/brite-site# brite
/usr/local/ruby/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:45:in require': cannot load such file -- facets/hash/rekey (LoadError) from /usr/local/ruby/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:45:inrequire'
from /usr/local/ruby/lib/ruby/gems/2.0.0/gems/neapolitan-0.4.1/lib/neapolitan/core_ext.rb:1:in <top (required)>' from /usr/local/ruby/lib/ruby/gems/2.0.0/gems/neapolitan-0.4.1/lib/neapolitan.rb:5:inrequire_relative'
from /usr/local/ruby/lib/ruby/gems/2.0.0/gems/neapolitan-0.4.1/lib/neapolitan.rb:5:in <module:Neapolitan>' from /usr/local/ruby/lib/ruby/gems/2.0.0/gems/neapolitan-0.4.1/lib/neapolitan.rb:1:in<top (required)>'
from /usr/local/ruby/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:45:in require' from /usr/local/ruby/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:45:inrequire'
from /usr/local/ruby/lib/ruby/gems/2.0.0/gems/brite-0.7.0/lib/brite/controller.rb:1:in <top (required)>' from /usr/local/ruby/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:45:inrequire'
from /usr/local/ruby/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:45:in require' from /usr/local/ruby/lib/ruby/gems/2.0.0/gems/brite-0.7.0/lib/brite.rb:10:in<top (required)>'
from /usr/local/ruby/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:45:in require' from /usr/local/ruby/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:45:inrequire'
from /usr/local/ruby/lib/ruby/gems/2.0.0/gems/brite-0.7.0/bin/brite:2:in <top (required)>' from /usr/local/ruby/bin/brite:23:inload'
from /usr/local/ruby/bin/brite:23:in `

'
as3:/brite-site#

tks a lot

Rack server w/o generation

Ultimately I want to be able to serve Brite sites via the rack server without having to generate the site on disk. Currently the rack server provided simply serves up a disk location, so generating the site first is necessary.

This feature would allow brite sites to be served by rack-capable hosting services (like Heroku) very easily.

Summary Truncation

Need to improve truncation of summaries. This is tricky for brite because it allows multiple formats per-document, so word counts aren't easily calculated with accuracy.

One alternative I noticed by another blog engine was to use a marker (eg. '~~') to indicate the cut-off point. This is nice b/c it allows the writer to decide where the summary cut-off should be.

Note we can also offer a summary field in the YAML front matter that would be used instead if present.

Pagination Support

Need to add pagination support for blogging. Once could of course manually add pages that covered only a given period or number of posts, but it would be nice if this could be done automatically somehow.

Pagination can be a challenge for a static site, since each page must be a separate file. I think it would be best to keep the design highly structured around time periods. We could offer an option to paginate on a monthly or yearly basis (default to yearly), and set which page to be paginated. This would create multiple paged for the same template page, but each having the different set of posts.

Support for .style files?

Perhaps it would be best if Brite had support for an additional.style type of file, instead of overloading .page which is now used for creation of stylesheets.

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.