From 411adba7778b5343ca642fd094a269b9107c5142 Mon Sep 17 00:00:00 2001 From: Chris Eppstein Date: Sat, 18 Dec 2010 13:12:11 -0800 Subject: [PATCH] [Docs] Add a link from the example to the reference documentation. --- doc-src/Gemfile.lock | 2 +- doc-src/content/stylesheets/partials/_example.scss | 4 ++++ doc-src/layouts/partials/example.haml | 3 +++ 3 files changed, 8 insertions(+), 1 deletion(-) diff --git a/doc-src/Gemfile.lock b/doc-src/Gemfile.lock index 5c41f8e5..ed53a286 100644 --- a/doc-src/Gemfile.lock +++ b/doc-src/Gemfile.lock @@ -14,7 +14,7 @@ GIT PATH remote: .. specs: - compass (0.11.alpha.4.30f446d) + compass (0.11.alpha.4.668a856) chunky_png (~> 0.10.3) sass (>= 3.1.0.alpha.50) diff --git a/doc-src/content/stylesheets/partials/_example.scss b/doc-src/content/stylesheets/partials/_example.scss index 57fbeee6..46c65ff0 100644 --- a/doc-src/content/stylesheets/partials/_example.scss +++ b/doc-src/content/stylesheets/partials/_example.scss @@ -22,4 +22,8 @@ html.light #demo, html.dark #demo { .example-source { clear: both; } } +#reference { + float: right; + margin-top: 1em; +} diff --git a/doc-src/layouts/partials/example.haml b/doc-src/layouts/partials/example.haml index 554bbaf4..557820c7 100644 --- a/doc-src/layouts/partials/example.haml +++ b/doc-src/layouts/partials/example.haml @@ -1,3 +1,6 @@ +- if @item[:stylesheet] && (reference = reference_item(:stylesheet => @item[:stylesheet])) + #reference= link_to "Reference Documentation", reference + %h1 Demo: #{@item[:title]} #demo= example_html