Skip to content

Commit

Permalink
use layout, fix classes
Browse files Browse the repository at this point in the history
  • Loading branch information
defunkt committed Apr 23, 2010
1 parent d15c64d commit 34da491
Show file tree
Hide file tree
Showing 9 changed files with 73 additions and 43 deletions.
38 changes: 14 additions & 24 deletions _layouts/default.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<title>Develop.GitHub - <%= @title %></title>
<title>Develop.GitHub - {{ page.title }}</title>
<script type="text/javascript" src="../js/jquery-1.2.6.pack.js"></script>
<script type="text/javascript" src="../js/thickbox-compressed.js"></script>
<script type="text/javascript" src="../js/jquery.corner.js"></script>
Expand All @@ -14,18 +14,18 @@
<link rel="stylesheet" href="../css/ie.css" type="text/css" media="screen, projection">
<![endif]-->

<link rel="stylesheet" href="../css/style.css" type="text/css" media="screen" charset="utf-8"/>
<link rel="stylesheet" href="../css/style.css" type="text/css" media="screen"/>
<link rel="stylesheet" href="../css/thickbox.css" type="text/css" media="screen"/>
</head>

<body>
<div class="container">
<div id="header">
<div>
<div class="span-21" id="header">
<div class="span-10">
<a href="/"><img src="../images/develop-github.png" alt="github learn logo" /></a>
</div>

<div class="last">
<div class="span-11 last">
<div id="links">
<a href="http://github.com">home</a>
<a href="http://github.com/login">login</a>
Expand All @@ -34,36 +34,27 @@
</div>
</div>

<div class="last content">
{% if page.plain == true %}
{{ content }}
{% else %}
<div class="post">
<h2><a href="{{ page.url }}">&#8594; {{ page.title }}</a></h2>
<div class="date">{{ page.date | date_to_long_string }}</div>
<div>
{{ content }}
</div>
</div>
{% endif %}
<div class="span-21 last content">
{{ content }}
</div>

<div id="footer">
<div class="info">
<div id="footer" class="span-21">
<div class="info span-12">
<div class="links">
<a href="http://github.com/blog/148-github-shirts-now-available">T-Shirts</a> |
<a href="http://github.com/blog">Blog</a> |
<a href="http://support.github.com/">Support</a> |
<a href="http://github.com/training">Git Training</a> |
<a href="http://github.com/contact">Contact</a> |
<a href="http://groups.google.com/group/github/">Google Group</a> |
<a href="http://status.github.com">Status</a>
<a href="http://status.github.com">Status</a> |
<a href="http://twitter.com/github">Twitter</a> |
<a href="http://help.github.com">Help</a> |
<a href="http://github.com/security">Security</a>
</div>
<div class="company">
&copy; 2010 GitHub Inc. All rights reserved. | <a href="http://github.com/site/terms">Terms of Service</a> | <a href="http://github.com/site/privacy">Privacy Policy</a>
</div>
</div>
<div class="fork">
<div class="fork span-7">
This website is <a href="http://github.com/develop/develop.github.com">open source</a>.
Please help us by forking the project and adding to it.
</div>
Expand All @@ -81,6 +72,5 @@ <h2><a href="{{ page.url }}">&#8594; {{ page.title }}</a></h2>
document.documentElement.firstChild.appendChild(ga);
})();
</script>

</body>
</html>
39 changes: 22 additions & 17 deletions _posts/2010-04-23-commits.markdown
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
---
layout: default
title: Commits API
---

## Commits API ##

### Listing Commits on a Branch ###
Expand All @@ -7,34 +12,34 @@
An example of getting a listing of commits for a branch, we will get the latest commits on the 'master' branch of the Grit project.

$ curl http://github.com/api/v2/yaml/commits/list/mojombo/grit/master
---
commits:
---
commits:
- message: Regenerated gemspec for version 1.1.1
parents:
parents:
- id: 5071bf9fbfb81778c456d62e111440fdc776f76c
url: http://github.com/mojombo/grit/commit/4ac4acab7fd9c7fd4c0e0f4ff5794b0347baecde
author:
author:
name: Tom Preston-Werner
email: tom@mojombo.com
id: 4ac4acab7fd9c7fd4c0e0f4ff5794b0347baecde
committed_date: "2009-03-31T09:54:51-07:00"
authored_date: "2009-03-31T09:54:51-07:00"
tree: 94490563ebaf733cbb3de4ad659eb58178c2e574
committer:
committer:
name: Tom Preston-Werner
email: tom@mojombo.com
- message: Version bump to 1.1.1
parents:
parents:
- id: 05372bffe2b60b0d1802f338551856221e0a89d2
url: http://github.com/mojombo/grit/commit/5071bf9fbfb81778c456d62e111440fdc776f76c
author:
author:
name: Tom Preston-Werner
email: tom@mojombo.com
id: 5071bf9fbfb81778c456d62e111440fdc776f76c
committed_date: "2009-03-31T09:54:40-07:00"
authored_date: "2009-03-31T09:54:40-07:00"
tree: e5b860cb18c5c334e480993ca4549d13e0f8b1a8
committer:
committer:
name: Tom Preston-Werner
email: tom@mojombo.com

Expand All @@ -45,34 +50,34 @@ An example of getting a listing of commits for a branch, we will get the latest
An example of using this to get all the commits that modified the gemspec file for the Grit project would be:

$ curl http://github.com/api/v2/yaml/commits/list/mojombo/grit/master/grit.gemspec
---
commits:
---
commits:
- message: Regenerated gemspec for version 1.1.1
parents:
parents:
- id: 5071bf9fbfb81778c456d62e111440fdc776f76c
url: http://github.com/mojombo/grit/commit/4ac4acab7fd9c7fd4c0e0f4ff5794b0347baecde
author:
author:
name: Tom Preston-Werner
email: tom@mojombo.com
id: 4ac4acab7fd9c7fd4c0e0f4ff5794b0347baecde
committed_date: "2009-03-31T09:54:51-07:00"
authored_date: "2009-03-31T09:54:51-07:00"
tree: 94490563ebaf733cbb3de4ad659eb58178c2e574
committer:
committer:
name: Tom Preston-Werner
email: tom@mojombo.com
- message: Regenerated gemspec for version 1.1.0
parents:
parents:
- id: 5bace1138462c9e40807ee542016fb4213eb49f8
url: http://github.com/mojombo/grit/commit/ac8700fe97702bc13806a5bfea7a0e28f97b5f6b
author:
author:
name: Tom Preston-Werner
email: tom@mojombo.com
id: ac8700fe97702bc13806a5bfea7a0e28f97b5f6b
committed_date: "2009-03-29T21:07:22-07:00"
authored_date: "2009-03-29T21:07:22-07:00"
tree: 57504834bb2a0cfda808223b42460fb8f806515f
committer:
committer:
name: Tom Preston-Werner
email: tom@mojombo.com

Expand All @@ -82,7 +87,7 @@ An example of using this to get all the commits that modified the gemspec file f

An example of using this to get a the changes introduced on a specific commit in the Grit project would be

$ curl http://github.com/api/v2/json/commits/show/mojombo/grit/5071bf9fbfb81778c456d62e111440fdc776f76c | jsonpretty
$ curl http://github.com/api/v2/json/commits/show/mojombo/grit/5071bf9fbfb81778c456d62e111440fdc776f76c | jsonpretty
{
"commit": {
"message": "Version bump to 1.1.1",
Expand Down
5 changes: 5 additions & 0 deletions _posts/2010-04-23-general.markdown
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
---
layout: default
title: General API Information
---

## General API Information ##

### Schema ###
Expand Down
5 changes: 5 additions & 0 deletions _posts/2010-04-23-issues.markdown
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
---
layout: default
title: Issues API
---

## Issues API ##

The API for GitHub Issues.
Expand Down
5 changes: 5 additions & 0 deletions _posts/2010-04-23-libraries.markdown
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
---
layout: default
title: API Libraries
---

## API Implementations ##

Libraries for accessing the GitHub API from your favorite language
Expand Down
9 changes: 7 additions & 2 deletions _posts/2010-04-23-network.markdown
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
---
layout: default
title: Network API
---

## Secret Network API ##

This API is sort of an outlier. It is only available in JSON and does not follow the rest of the routing rules. It is the API used by our Network Graph and provides a lot of useful information that may be useful.
Expand Down Expand Up @@ -37,7 +42,7 @@ This API is sort of an outlier. It is only available in JSON and does not follo
{ "name": "tamtam", "start": 3, "count": 1 },
]
}

### Network Data ###

To get network data, you'll need to provide the 'nethash' parameter that you get from the network\_meta call so the data is always consistent. To get network data, call the network\_data\_chunk URI with the given nethash to get the first 100 commits by branch.
Expand Down Expand Up @@ -106,4 +111,4 @@ You can also give it a start and end range, based on the position of the dates i
}
]
}

5 changes: 5 additions & 0 deletions _posts/2010-04-23-object.markdown
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
---
layout: default
title: Object API
---

## Git Object API ##

### Trees ###
Expand Down
5 changes: 5 additions & 0 deletions _posts/2010-04-23-repo.markdown
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
---
layout: default
title: Repositories API
---

## Repositories API ##

### Searching Repositories ###
Expand Down
5 changes: 5 additions & 0 deletions _posts/2010-04-23-users.markdown
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
---
layout: default
title: Users API
---

## Users API ##

API for accessing and modifying user information.
Expand Down

0 comments on commit 34da491

Please sign in to comment.