1
0

first layout

This commit is contained in:
Scott Chacon 2010-06-03 13:21:39 +02:00
parent 771f93c5c8
commit fb6240f8e9
8 changed files with 446 additions and 0 deletions

35
_layouts/master.html Normal file
View File

@ -0,0 +1,35 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html>
<head>
<meta http-equiv="Content-type" content="text/html; charset=utf-8">
<title>Git Ref - {{ page.title }}</title>
<link rel="stylesheet" href="/stylesheets/master.css" type="text/css" media="screen" charset="utf-8"/>
<script src="/javascripts/jquery.js" type="text/javascript" charset="utf-8"></script>
</head>
<body>
<div id='wrapper'>
<div id='header'>
<h1>Git Reference</h1>
</div>
<div id='menu'>
<ul>
<li><a href='/'>Home</a></li>
<li><a href='/book'>Book</a></li>
<li><a href='/blog.html'>Blog</a></li>
<li><a href='/about.html'>About</a></li>
<li><a href='/support.html'>Support Us</a></li>
<li><a href='http://github.com/progit' target='_blank' rel='me'>GitHub</a></li>
<li><a href='http://twitter.com/progitbook' target='_blank' rel='me'>Twitter</a></li>
</ul>
</div>
<div id='content'>
{{ content }}
<div class='clearfix'></div>
</div>
</div>
<div id='footer'>
</div>
</body>
</html>

38
_layouts/post.html Normal file
View File

@ -0,0 +1,38 @@
---
layout: master
---
<div class='post'>
<span class='date'>{{page.date | date_to_string}}</span>
<h1>
<a href='http://feeds.feedburner.com/ProGitBook' class='float-right'><img src='/images/subscribe.png' alt='Subscribe'/></a>
<a href='{{page.url}}'>{{page.title}}</a>
</h1>
<small>by Scott Chacon</small>
<div class='body'>
{{ content }}
</div>
</div>
<div class="book-ad">
<a href="http://www.amazon.com/gp/product/1430218339?ie=UTF8&tag=prgi-20&linkCode=as2&camp=1789&creative=390957&creativeASIN=1430218339"><img border="0" height="55" src="http://ecx.images-amazon.com/images/I/5133mQJaUgL._SL500_AA300_.jpg"></a>
<img src="http://www.assoc-amazon.com/e/ir?t=prgi-20&l=as2&o=1&a=1430218339" width="1" height="1" border="0" alt="" style="border:none !important; margin:0px !important;" />
<a href="http://www.amazon.com/gp/product/1430218339?ie=UTF8&tag=prgi-20&linkCode=as2&camp=1789&creative=390957&creativeASIN=1430218339">Support this site by buying a copy of the book</a>
</div>
<div class="related">
<h3>Related Posts</h3>
<table class="post-list">
{% for post in site.related_posts limit:3 %}
<tr>
<th><a href='{{ post.url }}'>{{ post.title }}</a></th>
<td>{{ post.date | date_to_string }}</td>
<td><a href='{{post.url}}#disqus_thread'>Comments</a></td>
</tr>
{% endfor %}
</table>
</div>
<script type="text/javascript" charset="utf-8">
var disqus_url = "http://progit.org/{{page.url}}";
</script>
<div id="disqus_thread"></div><script type="text/javascript" src="http://disqus.com/forums/scottchacon/embed.js"></script><noscript><a href="http://scottchacon.disqus.com/?url=ref">View the discussion thread.</a></noscript><a href="http://disqus.com" class="dsq-brlink">blog comments powered by <span class="logo-disqus">Disqus</span></a>

33
_site/NOTES Normal file
View File

@ -0,0 +1,33 @@
Introduction
(how git is different)
Getting and Creating Projects
* init
* clone
Basic Snapshotting
* add
* status
* diff
* commit
* rm, mv
* reset
Branching and Merging Contexts
* branch
* merge
* cherry-pick
* log
Sharing and Updating Projects
* fetch, pull
* push
Inspection, Comparison and History
* log
* diff
Fixing History
* rebase
* revert

39
_site/index.html Normal file
View File

@ -0,0 +1,39 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html>
<head>
<meta http-equiv="Content-type" content="text/html; charset=utf-8">
<title>Pro Git - Git Reference</title>
<link rel="stylesheet" href="/stylesheets/master.css" type="text/css" media="screen" charset="utf-8"/>
<script src="/javascripts/jquery.js" type="text/javascript" charset="utf-8"></script>
</head>
<body>
<div id='wrapper'>
<div id='header'>
<h1>Git Reference</h1>
</div>
<div id='menu'>
<ul>
<li><a href='/'>Home</a></li>
<li><a href='/book'>Book</a></li>
<li><a href='/blog.html'>Blog</a></li>
<li><a href='/about.html'>About</a></li>
<li><a href='/support.html'>Support Us</a></li>
<li><a href='http://github.com/progit' target='_blank' rel='me'>GitHub</a></li>
<li><a href='http://twitter.com/progitbook' target='_blank' rel='me'>Twitter</a></li>
</ul>
</div>
<div id='content'>
<p>
Some content.
</p>
<div class='clearfix'></div>
</div>
</div>
<div id='footer'>
</div>
</body>
</html>

8
index.html Normal file
View File

@ -0,0 +1,8 @@
---
layout: master
title: Git Reference
---
<p>
Some content.
</p>

View File

@ -0,0 +1,3 @@
jQuery.githubUser = function(username, callback) {
jQuery.getJSON("http://github.com/api/v1/json/" + username + "?callback=?", callback);
}

19
javascripts/jquery.js vendored Normal file

File diff suppressed because one or more lines are too long

271
stylesheets/master.css Normal file
View File

@ -0,0 +1,271 @@
body {
font-family:"Helvetica Neue", Helvetica, Arial, sans-serif;
background: #dda;
color: #222;
}
.more { font-size: 0.7em;}
img.right {
float: right;
margin: 15px;
}
a {
color: #3E423A;
}
a:visited {
color: #6C6E58;
}
#wrapper {
width: 50em;
margin: 2em auto 0;
padding: 0;
background: #fff;
-moz-border-radius: 1.5em;
-webkit-border-radius: 1.5em;
border-radius: 1.5em;
}
#header {
font-family: Courier;
text-align: left;
background: #222;
-moz-border-radius-topleft: 1em;
-webkit-border-top-left-radius: 1em;
-moz-border-radius-topright: 1em;
-webkit-border-top-right-radius: 1em;
border-top-left-radius: 1em;
border-top-right-radius: 1em;
padding: 1.5em;
text-align: center;
}
#header h1 {
font-size: 4em;
display: inline;
color: #fff;
font-weight: normal;
}
#header h2 {
display: inline;
margin-left: 0.5em;
font-size: 1.4em;
font-weight: normal;
color: #dd5;
}
#menu {
background: #444;
}
#menu ul {
list-style: none;
margin: 0;
text-align: center;
}
#menu ul li {
display: inline;
}
#menu ul li a {
color: white;
font-size: 1.1em;
padding: 0 0.8em;
line-height: 2.5em;
font-weight: normal;
}
#message {
padding: 20px;
margin: 10px 30px;
border: 1px solid #383;
background: #aea;
text-align: center;
}
#content {
padding: 2em;
}
#content h2 {
margin: 0 0 0.5em 0;
color: black;
font-size: 1.5em;
}
#content p {
line-height: 140%;
}
span.date {
background: #484;
display: block;
padding: 0.4em 0.6em 0.3em;
font-weight: bold;
color: white;
border-bottom: 3px solid #262;
float: left;
}
div.post {
margin-bottom: 2em;
}
.post h1 {
margin-top: 0.2em;
}
.post { color: #333; }
.post h1 a {
text-decoration: none;
clear: left;
display: block;
color: black;
padding: 0.3em 0;
margin: 0 0 0.2em 0;
border-bottom: 1px dashed #555;
font-weight: bold;
}
.post br { margin-bottom: 10px;}
pre {
background: #f8f8f8;
border: 1px solid #E7E5DC;
border-width: 1px 0 4px 6px;
padding: 1em;
overflow: auto;
color: black;
line-height: 120%;
font-family: "Consolas","Courier New",Courier,mono;
font-size: 12px;
letter-spacing: 0;
}
table.post-list {
width: 100%;
border-collapse: collapse;
}
table.post-list a {
color: #262;
font-weight: bold;
}
table.post-list th {
text-align: left;
}
table.post-list td, table.post-list th {
padding: 0.5em 0.3em;
border-bottom: 1px solid #dba;
}
table.post-list tr:last-child td, table.post-list tr:last-child th {
border-bottom: 0;
}
div.related {
margin-bottom: 2em;
}
#footer {
margin-bottom: 2em;
color: #3E423A;
font-size: 0.9em;
padding: 0.5em;
text-align: center;
}
.home_box {
float: left;
}
#content .home_box h2 {
background: #333;
padding: 0.3em 0.5em;
border-bottom: 3px solid #666;
margin-bottom: 0em;
color: #dd5;
}
.home_box h2 a {
color: #ff3;
margin: 0 0.2em;
}
#home_left {
width: 29em;
}
#home_right {
width: 16em;
margin-left: 1em;
}
.clearfix { clear: both;}
#footer a {
color: #3E423A;
font-weight: normal;
}
.announce { padding: 5px; padding-bottom: 20px; padding-top: 0px; }
.home_box .post h1 a {
font-size: 0.7em;
}
.repo {
background: #fff5cc;
border: 2px solid #dda;
padding: 0.7em 1em;
font-size: 0.8em;
margin: 1em 1em 0 0;
-moz-border-radius: 0.5em;
-webkit-border-radius: 0.5em;
border-radius: 0.5em;
}
.repo h3 {
margin: 0 0 0.3em 0;
}
.repo h3 a {
font-weight: bold;
color: black;
font-size: 1.1em;
}
#github-projects.big .repo {
float: left;
width: 25.2em;
margin: 1.2em 1em 0 0;
display: inline-block;
float: none;
vertical-align: top;
}
.float-left { float: left; }
.float-right { float: right; }
a img { border: 0; }
ul#toc {
list-style: none;
margin: 0;
}
ul#toc ul {
list-style: none;
}
.book-ad a {
color: #262;
font-size: 1.5em;
text-decoration: none;
}