Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Nov 1, 2017. It is now read-only.

Add documentation for the Pages API#436

Merged
gjtorikian merged 1 commit intomasterfromadd-pages-api
Feb 12, 2014
Merged
Show file tree
Hide file tree
Changes fromall commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 35 additions & 0 deletionscontent/v3/repos/pages.md
View file
Open in desktop
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
---
title: Pages | GitHub API
---

# Pages

The Pages API retrieves information about your GitHub Pages configuration, and
the statuses of your builds. Information about the site and the builds can only be
accessed by authenticated owners, even thought the websites are public.

* TOC
{:toc}

## Get information about a Pages site

GET /repos/:owner/:repo/pages

### Response

<%= headers 200 %>
<%= json(:pages) %>

## List Pages builds

GET /repos/:owner/:repo/pages/builds

<%= headers 200 %>
<%= json(:pages_build) { |h| [h] } %>

## List latest Pages build

GET /repos/:owner/:repo/pages/builds/latest

<%= headers 200 %>
<%= json(:pages_build) %>
1 change: 1 addition & 0 deletionslayouts/sidebar.html
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -84,6 +84,7 @@ <h3><a href="#" class="js-expand-btn collapsed arrow-btn" data-proofer-ignore></
<li><a href="/v3/repos/forks/">Forks</a></li>
<li><a href="/v3/repos/hooks/">Hooks</a></li>
<li><a href="/v3/repos/merging/">Merging</a></li>
<li><a href="/v3/repos/pages/">Pages</a></li>
<li><a href="/v3/repos/releases/">Releases</a></li>
<li><a href="/v3/repos/statistics/">Statistics</a></li>
<li><a href="/v3/repos/statuses/">Statuses</a></li>
Expand Down
20 changes: 20 additions & 0 deletionslib/resources.rb
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -631,6 +631,26 @@ def text_html(response, status, head = {})
"s3_url" => "https://github.s3.amazonaws.com/"
})

PAGES = {
"url" => "https://api.github.com/repos/github/developer.github.com/pages",
"status" => "built",
"cname" => "developer.github.com",
"custom_404" => false
}

PAGES_BUILD = {
"url" => "https://api.github.com/repos/github/developer.github.com/pages/builds/5472601",
"status" => "built",
"error" => {
"message" => nil
},
"pusher" => USER,
"commit" => "351391cdcb88ffae71ec3028c91f375a8036a26b",
"duration" => 2104,
"created_at" => "2014-02-10T19:00:49Z",
"updated_at" => "2014-02-10T19:00:51Z"
}

ORG = {
"login" => "github",
"id" => 1,
Expand Down
5 changes: 5 additions & 0 deletionsstatic/search-index.json
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -240,6 +240,11 @@
"title": "Merging",
"section": "API/Repositories"
},
{
"url": "/v3/repos/pages/",
"title": "Pages",
"section": "API/Repositories"
},
{
"url": "/v3/repos/releases/",
"title": "Releases",
Expand Down

[8]ページ先頭

©2009-2025 Movatter.jp