From e65516f99eff78cf1de135f0c792d45724bf2b98 Mon Sep 17 00:00:00 2001 From: Chris Eppstein Date: Sun, 28 Mar 2010 02:49:58 -0700 Subject: [PATCH] allow a background image in examples. --- doc-src/Rules | 20 ++++++++------------ 1 file changed, 8 insertions(+), 12 deletions(-) diff --git a/doc-src/Rules b/doc-src/Rules index 9e1e03ae..825a7061 100644 --- a/doc-src/Rules +++ b/doc-src/Rules @@ -12,12 +12,10 @@ compile '/assets/*/' do nil end -compile '/examples/*/markup/' do - nil -end - -compile '/examples/*/stylesheet/' do - nil +['/examples/*/markup/', '/examples/*/stylesheet/', '/examples/*/background/'].each do |ex_file| + compile ex_file do + nil + end end compile '/examples/*/' do @@ -63,12 +61,10 @@ route '/stylesheets/*/' do SITE_ROOT+item.identifier.chop + '.css' end -route '/examples/*/markup/' do - nil -end - -route '/examples/*/stylesheet/' do - nil +['/examples/*/markup/', '/examples/*/stylesheet/', '/examples/*/background/'].each do |ex_file| + route ex_file do + nil + end end route '*' do