public
Fork of emk/mephisto
Description: User-friendly blogging with multisite support and asset managment
Homepage: http://mephistoblog.com/
Clone URL: git://github.com/tapajos/mephisto.git
name age message
file .gitignore Thu Dec 18 05:33:52 -0800 2008 Ignore .DS_Store files Everybody keeps adding ... [emk]
file CHANGELOG Sun Feb 10 15:59:44 -0800 2008 useless commit (testing post-receive hook) [technoweenie]
file INSTALL Wed Jun 14 22:28:29 -0700 2006 Added brief install instructions git-svn-id: h... [Caged]
file LICENSE Sat Feb 02 16:44:54 -0800 2008 update license [technoweenie]
file RAILS-2.2-TODO.txt Fri Jan 09 04:19:41 -0800 2009 Add TODO item for explaining how to make Unicod... [emk]
file README Loading commit data...
file Rakefile Fri Dec 05 04:46:37 -0800 2008 Run both specs and tests when 'rake' is invoked... [emk]
directory app/
directory config/ Sun Mar 15 06:28:22 -0700 2009 Mods for subdir deployment Changes required fo... [davec]
directory db/ Tue Dec 23 14:18:25 -0800 2008 Change default user article filter to Textile ... [emk]
directory lib/
directory log/ Mon Dec 01 05:41:22 -0800 2008 Warning fix: Force the log/ directory to exist ... [emk]
directory public/
directory script/ Thu Dec 04 19:41:10 -0800 2008 update rspec and rspec-rails to latest github v... [isaac]
directory spec/ Sat Dec 27 06:08:38 -0800 2008 Write login integration tests using Webrat Why... [emk]
directory test/
directory vendor/ Sun Mar 15 06:14:40 -0700 2009 Corrected comments to reflect actual behavior. [danlynn]
README
= Installation

See public/install.html for setup instructions.

= Timezones

You MUST export the environment variable TZ=UTC, or else the article dates
and times will be invalid.

This would not be needed if rails used UTC for everything, but
unfortunately it doesn't... eg: action_view/helpers/date_helper.rb uses
Time::now instead of Timer::now.utc, and Time::mktime instead of
Time::utc.

XXX oh, we can't depend on the rails helpers at all, because they don't
    translate the time from UTC (assuming the TZ env var is correctly
    set) to site time, you've to roll our own, or monkey patch rails :/

= Dependencies

Note that Mephisto depends on fewer gems when RAILS_ENV=production than it
does in a development environment.

Run 'rake gems:install' to install the development gems.  In a production
environment, run:

  RAILS_ENV=production rake gems:install

= Syntax Coloring for code listings

Syntax coloring can be performed on code listings that occur in your articles
by surrounding them with <macro:code lang="ruby">...</macro:code> tags.  
However, for this to work, your theme must provide CodeRay css styles.  If 
you use the <macro:code> tags and don't see syntax coloring then the CodeRay
styles may be added to your current theme by customizing the theme as follows:

1.  Login to Admin (http://localhost:3000/admin) 
2.  Select 'Design' tab
3.  Click 'layout.liquid' in the list of templates in the right margin
4.  In the textfield, scroll to the bottom of the {% head %}...{% endhead %}
    section and insert the following 2 stylesheet link tags:

<link rel="stylesheet" href="/plugin_assets/filtered_column_code_macro/default_codemacro.css" type="text/css" 
media="screen" charset="utf-8">
<link rel="stylesheet" href="/plugin_assets/filtered_column_code_macro/default_coderay.css" type="text/css" 
media="screen" charset="utf-8">

These stylesheets will not only add syntax coloring - but also wrap the code 
listings with a div that will automatically add a horizontal scrollbar and 
dynamically adjust the width of the code listing to fit your layout.  You may 
want to update existing themes which already support syntax coloring to use 
these new default stylesheets since existing themes usually only display code
listings using a static width.

= License

Mephisto is distributed under the same license as Ruby on Rails. See
http://www.opensource.org/licenses/mit-license.php