Skip to content

Commit f34c73a

Browse files
committed
Download button.
1 parent 4b9768b commit f34c73a

File tree

9 files changed

+77
-14
lines changed

9 files changed

+77
-14
lines changed

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,6 @@
11
_site
22
.sass-cache
3+
4+
.bundle/
5+
vendor/gems
6+
bin/

Gemfile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
11
source :rubygems
2-
gem 'jekyll'
32
gem 'compass'
3+
gem 'jekyll', '0.11.0'
4+
gem 'liquid', '2.2.2'
5+
gem 'rake'
6+
gem 'RedCloth'

Gemfile.lock

Lines changed: 17 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
GEM
22
remote: http://rubygems.org/
33
specs:
4+
RedCloth (4.2.9)
45
albino (1.3.3)
56
posix-spawn (>= 0.3.6)
67
chunky_png (1.2.5)
@@ -11,26 +12,30 @@ GEM
1112
fssm (>= 0.2.7)
1213
sass (~> 3.1)
1314
directory_watcher (1.4.1)
14-
fast-stemmer (1.0.0)
15+
fast-stemmer (1.0.1)
1516
fssm (0.2.8.1)
16-
jekyll (0.11.2)
17-
albino (~> 1.3)
18-
classifier (~> 1.3)
19-
directory_watcher (~> 1.1)
20-
kramdown (~> 0.13)
21-
liquid (~> 2.3)
22-
maruku (~> 0.5)
23-
kramdown (0.13.4)
24-
liquid (2.3.0)
25-
maruku (0.6.0)
17+
jekyll (0.11.0)
18+
albino (>= 1.3.2)
19+
classifier (>= 1.3.1)
20+
directory_watcher (>= 1.1.1)
21+
kramdown (>= 0.13.2)
22+
liquid (>= 1.9.0)
23+
maruku (>= 0.5.9)
24+
kramdown (0.14.1)
25+
liquid (2.2.2)
26+
maruku (0.6.1)
2627
syntax (>= 1.0.0)
2728
posix-spawn (0.3.6)
29+
rake (10.0.3)
2830
sass (3.1.14)
2931
syntax (1.0.0)
3032

3133
PLATFORMS
3234
ruby
3335

3436
DEPENDENCIES
37+
RedCloth
3538
compass
36-
jekyll
39+
jekyll (= 0.11.0)
40+
liquid (= 2.2.2)
41+
rake

Rakefile

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
task :css do
2+
sh 'compass compile . _sass/git-tfs.scss'
3+
end
4+
5+
jekyll_command = 'jekyll --pygments --no-lsi --safe'
6+
7+
desc "Build the site"
8+
task :site => :css do
9+
sh jekyll_command
10+
end
11+
12+
desc "Build the site and start a local server."
13+
task :serve => :css do
14+
sh "#{jekyll_command} --server"
15+
end
16+
17+
task :default => :serve

_config.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,6 @@ exclude:
55
- config.rb
66
- Gemfile
77
- Gemfile.lock
8+
- Rakefile
9+
- vendor
10+
- bin

_includes/download_button.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
<a href="https://github.com/git-tfs/git-tfs/downloads/GitTfs-0.16.1.zip" class="download-button">Download v0.16.1</a>

_layouts/default.html

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,9 @@
3838
<body>
3939

4040
<div class="container">
41+
<div class="download-area">
42+
{% include download_button.html %}
43+
</div>
4144
{{ content }}
4245
<div class="sixteen columns footer">
4346
<span class="item">Copyright &copy; 2012 <a href="https://github.com/spraints">Matt Burke</a></span>

_sass/git-tfs.scss

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,3 +75,30 @@ h2 {
7575

7676
@include background(linear-gradient(bottom, #000000 3%, #666666 5%, #000000 7%, #000000 93%, #666666 95%, #000000 97%));
7777
}
78+
79+
.download-area {
80+
position: absolute;
81+
top: 20px;
82+
height: 22px;
83+
right: 50px;
84+
width: 200px;
85+
padding: 11px 0;
86+
87+
@include border-radius(5px);
88+
text-align: center;
89+
90+
.download-button {
91+
padding: 5px 10px;
92+
font-size: inherit;
93+
94+
text-decoration: none;
95+
color: white;
96+
font-weight: bold;
97+
98+
background-color: #3072B3;
99+
background-repeat: repeat-x;
100+
@include background(linear-gradient(top, #599BDC 0%, #3072B3 100%));
101+
border: 1px solid #2967A4;
102+
@include border-radius(5px);
103+
}
104+
}

stylesheets/git-tfs.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)