From 458a19361dad40198fadcf3d6121e22b3a493af9 Mon Sep 17 00:00:00 2001 From: Chris Eppstein Date: Sun, 25 Apr 2010 11:28:56 -0700 Subject: [PATCH] Display the current version on the docs. --- VERSION.yml | 2 +- doc-src/content/stylesheets/screen.sass | 30 ++++++++++++++++--------- doc-src/layouts/main.haml | 3 +++ doc-src/lib/default.rb | 5 +++++ 4 files changed, 29 insertions(+), 11 deletions(-) diff --git a/VERSION.yml b/VERSION.yml index 368ed950..b13b9eed 100644 --- a/VERSION.yml +++ b/VERSION.yml @@ -2,4 +2,4 @@ :patch: 0 :major: 0 :minor: 10 -:build: rc3 +:build: rc4 diff --git a/doc-src/content/stylesheets/screen.sass b/doc-src/content/stylesheets/screen.sass index ed38c1cb..d5d40caa 100644 --- a/doc-src/content/stylesheets/screen.sass +++ b/doc-src/content/stylesheets/screen.sass @@ -66,16 +66,16 @@ header[role="banner"] top: -$base-rhythm-unit * 0.5 margin-bottom: -$base-rhythm-unit * 0.5 position: relative - a - &:link, &:visited - display: block - padding: 0 $side-gutter-width - border: 1px solid #eeeeee - +leading-border(1px, 0.5) - +trailing-border(1px, 0.25) - border-bottom: 0 - +border-top-radius(0.5em) - background: #dddddd + a + &:link, &:visited + display: block + padding: 0 $side-gutter-width + border: 1px solid #eeeeee + +leading-border(1px, 0.5) + +trailing-border(1px, 0.25) + border-bottom: 0 + +border-top-radius(0.5em) + background: #dddddd &:hover, &:focus, &:active background-color: #eeeeee border-color: #dddddd @@ -93,6 +93,16 @@ header[role="banner"] +active-docs(".core", "/docs/reference/compass/") +active-docs(".blueprint", "/docs/reference/blueprint/") +#version + // XXX This is placeholder styling. Susify me. + color: #999 + +adjust-font-size-to(14px) + z-index: 3 + .number + color: #666 + float: right + margin-right: 400px + #search-docs position: absolute z-index: 1 diff --git a/doc-src/layouts/main.haml b/doc-src/layouts/main.haml index 1366b530..63ef2114 100644 --- a/doc-src/layouts/main.haml +++ b/doc-src/layouts/main.haml @@ -41,6 +41,9 @@ / %li %a{:href => "/docs/plugins/"} plugins + #version + Current Version: + %a.number(href="/CHANGELOG/")= compass_version #search-docs %form %p diff --git a/doc-src/lib/default.rb b/doc-src/lib/default.rb index 2aa4bac4..79f5fc8a 100644 --- a/doc-src/lib/default.rb +++ b/doc-src/lib/default.rb @@ -106,3 +106,8 @@ def tutorial_item(path) end end +def compass_version + v = Compass.version + "#{v[:major]}.#{v[:minor]}.#{v[:teeny]}.#{v[:build]}" +end +