Skip to content

Commit fb88c03

Browse files
authored
Merge pull request #1855 from dscho/upstream-fixes
Some fixes for bugs noticed while migrating to Hugo
2 parents 8befbc3 + a492d05 commit fb88c03

File tree

7 files changed

+11
-58
lines changed

7 files changed

+11
-58
lines changed

app/assets/stylesheets/layout.scss

-24
Original file line numberDiff line numberDiff line change
@@ -32,30 +32,6 @@ aside {
3232
margin-bottom: 35px;
3333
}
3434

35-
.banner-message {
36-
position: relative;
37-
padding: 1em 100px;
38-
margin-bottom: 30px;
39-
font-size: 100%;
40-
color: #855;
41-
background-color: #fcbda5;
42-
43-
a {
44-
color: #c22;
45-
}
46-
47-
.dismiss {
48-
position: absolute;
49-
top: 0;
50-
right: 0;
51-
width: 2em;
52-
padding: 0;
53-
line-height: 2em;
54-
background: none;
55-
border: 0;
56-
}
57-
}
58-
5935
#content {
6036
float: right;
6137
width: 702px;

app/assets/stylesheets/man-pages.scss

+8
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,14 @@
5454
font-weight: bold;
5555
font-style: normal;
5656
}
57+
58+
code {
59+
background-color: #e8e7dd;
60+
margin-bottom: 0;
61+
border: none;
62+
padding-left: 0;
63+
padding-right: 0;
64+
}
5765
}
5866
}
5967

app/helpers/application_helper.rb

-6
Original file line numberDiff line numberDiff line change
@@ -52,10 +52,4 @@ def image_tag(image, options = {})
5252

5353
tag("img", options)
5454
end
55-
56-
def banner_duration(duration)
57-
return "" if duration.blank?
58-
59-
ISO8601::Duration.new(duration).to_seconds.round * 1000
60-
end
6155
end

app/models/book.rb

+1
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ class Book < ApplicationRecord
2222
"ja" => "progit/progit2-ja",
2323
"ko" => "progit/progit2-ko",
2424
"mk" => "progit2-mk/progit2",
25+
"ms" => "progit2-ms/progit2",
2526
"nl" => "progit/progit2-nl",
2627
"pl" => "progit2-pl/progit2-pl",
2728
"pt-br" => "progit/progit2-pt-br",

app/views/books/show.html.erb

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
</div>
4242
<% end %>
4343
<p>
44-
The entire Pro Git book, written by Scott Chacon and Ben Straub and published by Apress, is available here. All content is licensed under the <a href="https://creativecommons.org/licenses/by-nc-sa/3.0/">Creative Commons Attribution Non Commercial Share Alike 3.0 license</a>. Print versions of the book are available on <a href="https://www.amazon.com/Pro-Git-Scott-Chacon/dp/1484200772?ie=UTF8&camp=1789&creative=9325&creativeASIN=1430218339&linkCode=as2&tag=git-sfconservancy-20">Amazon.com</a>.</>
44+
The entire Pro Git book, written by Scott Chacon and Ben Straub and published by Apress, is available here. All content is licensed under the <a href="https://creativecommons.org/licenses/by-nc-sa/3.0/">Creative Commons Attribution Non Commercial Share Alike 3.0 license</a>. Print versions of the book are available on <a href="https://www.amazon.com/Pro-Git-Scott-Chacon/dp/1484200772?ie=UTF8&camp=1789&creative=9325&creativeASIN=1430218339&linkCode=as2&tag=git-sfconservancy-20">Amazon.com</a>.
4545
</p>
4646

4747
<p>The version found here has been updated with corrections and additions from <a href="https://github.com/progit/progit2/graphs/contributors">hundreds of contributors</a>. If you see an error or have a suggestion, patches and issues are welcome in its <a href="https://github.com/progit/progit2">GitHub repository</a>.

app/views/doc/ref.html.erb

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
</p>
1414
</div>
1515
<div class="callout all-commands">
16-
<a href="/docs/git#_git_commands">Complete list of all commands<a/>
16+
<a href="/docs/git#_git_commands">Complete list of all commands</a>
1717
</div>
1818
<div class='reference-menu'>
1919
<div class='two-column'>

app/views/shared/_banner.html.erb

-26
This file was deleted.

0 commit comments

Comments
 (0)