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.

Commit843b4fb

Browse files
committed
Merge pull request#435 from github/add-html-proofer-tests
Add HTML::Proofer tests
2 parents8a49d9e +c18c6a6 commit843b4fb

25 files changed

+116
-54
lines changed

‎.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,6 @@ tmp
44
.bundle
55
bin
66
crash.log
7+
/vendor/gems/
8+
/bin/
9+
/.bundle/

‎.travis.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
language:ruby
2+
rvm:
3+
-1.9.3

‎Gemfile

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ gem 'coderay'
77
gem'kramdown','~> 0.13.2'
88
gem'mime-types','~> 1.16'
99
gem'nanoc','~> 3.4.3'
10-
gem'nokogiri','~> 1.4.4'
10+
gem'nokogiri','~> 1.6.0'
1111
gem'pygments.rb'
1212
gem'rake','~> 0.9.2'
1313
gem'thin'
@@ -17,3 +17,7 @@ group :development do
1717
gem'adsf'
1818
gem'fssm'
1919
end
20+
21+
group:testdo
22+
gem'html-proofer','~> 0.6.0'
23+
end

‎Gemfile.lock

Lines changed: 27 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,47 @@
11
GEM
22
remote:http://rubygems.org/
33
specs:
4-
adsf (1.1.1)
4+
adsf (1.2.0)
55
rack (>=1.0.0)
66
blankslate (3.1.2)
77
builder (3.2.2)
8-
coderay (1.0.9)
8+
coderay (1.1.0)
99
colored (1.2)
10-
cri (2.3.0)
10+
cri (2.4.1)
1111
colored (>=1.2)
1212
daemons (1.1.9)
13+
ethon (0.6.2)
14+
ffi (>=1.3.0)
15+
mime-types (~>1.18)
1316
eventmachine (1.0.3)
14-
ffi (1.0.11)
17+
ffi (1.9.3)
1518
fssm (0.2.10)
19+
html-proofer (0.6.0)
20+
colored (~>1.2)
21+
mercenary (~>0.2.0)
22+
nokogiri (~>1.6.0)
23+
typhoeus (~>0.6.7)
1624
kramdown (0.13.8)
17-
mime-types (1.23)
25+
mercenary (0.2.1)
26+
mime-types (1.25.1)
27+
mini_portile (0.5.2)
1828
nanoc (3.4.3)
1929
cri (~>2.2)
20-
nokogiri (1.4.7)
21-
pygments.rb (0.2.13)
22-
rubypython (~>0.5.3)
30+
nokogiri (1.6.1)
31+
mini_portile (~>0.5.0)
32+
pygments.rb (0.2.3)
33+
rubypython (>=0.5.1)
2334
rack (1.5.2)
2435
rake (0.9.6)
25-
rubypython (0.5.3)
36+
rubypython (0.6.3)
2637
blankslate (>=2.1.2.3)
27-
ffi (~>1.0.7)
28-
thin (1.5.1)
38+
ffi (>=1.0.7)
39+
thin (1.6.1)
2940
daemons (>=1.0.9)
30-
eventmachine (>=0.12.6)
41+
eventmachine (>=1.0.0)
3142
rack (>=1.0.0)
43+
typhoeus (0.6.7)
44+
ethon (~>0.6.2)
3245
yajl-ruby (0.8.3)
3346

3447
PLATFORMS
@@ -39,10 +52,11 @@ DEPENDENCIES
3952
builder
4053
coderay
4154
fssm
55+
html-proofer (~>0.6.0)
4256
kramdown (~>0.13.2)
4357
mime-types (~>1.16)
4458
nanoc (~>3.4.3)
45-
nokogiri (~>1.4.4)
59+
nokogiri (~>1.6.0)
4660
pygments.rb
4761
rake (~>0.9.2)
4862
thin

‎Rakefile

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,18 @@
11
require'nanoc3/tasks'
2+
require'html/proofer'
3+
4+
task:default=>[:test]
25

36
desc"Compile the site"
47
task:compiledo
58
`nanoc compile`
69
end
710

11+
desc"Test the output"
12+
task:test=>[:clean,:compile]do
13+
HTML::Proofer.new("./output").run
14+
end
15+
816
# Prompt user for a commit message; default: P U B L I S H :emoji:
917
defcommit_message
1018
publish_emojis=[':boom:',':rocket:',':metal:',':bulb:',':zap:',

‎changes/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ <h3 id="events">Events</h3>
146146
<h2id="preview-period">Preview Period</h2>
147147

148148
<p>We’re making this new API available today for developers to
149-
<ahref="/v3/repos/deployments/#preview-mode">preview</a>. We think developers and existing integrations are
149+
<ahref="/v3/repos/deployments/#preview-mode"data-proofer-ignore>preview</a>. We think developers and existing integrations are
150150
going to love it, but we want to<ahref="https://github.com/contact?form%5Bsubject%5D=Deployments+API">get your feedback</a> before we declare
151151
the Deployments API “final” and “unchangeable.” We expect the preview period to
152152
last for roughly 60-90 days.</p>

‎content/changes/2012-10-17-org-members-redirection.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ author_name: pezra
77

88
Requesting the[member list](/v3/orgs/members/index.html#members-list) of an
99
organization of which you are not a member now redirects to the[public members
10-
list](v3/orgs/members/index.html#public-members-list). Similarly, requests to
10+
list](/v3/orgs/members/index.html#public-members-list). Similarly, requests to
1111
[membership check](/v3/orgs/members/index.html#check-membership) resources of
1212
an organization of which you are not a member are redirected to the equivalent
1313
[public membership check](/v3/orgs/members/index.html#check-public-membership).

‎content/changes/2012-12-09-organization-repositories-results-now-paginate.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
author_name: rick
66
---
77

8-
![](https://github-images.s3.amazonaws.com/skitch/seger-turn-the-page-20121209-154956.png)
8+
![seger-is-so-dreamy](https://github-images.s3.amazonaws.com/skitch/seger-turn-the-page-20121209-154956.png)
99

1010
Improvements continue to the Organizations Repository listing endpoint.
1111
Today we're improving pagination so that it works as documented. Now

‎content/changes/2013-05-06-repository-stats.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@ but we can't wait to see what others can do with this information.
1111

1212
Starting today, these resources are available to you:
1313

14-
***[Contributors](/v3/repos/statistics/#get-contributors-list-with-additions-deletions-and-commit-counts)**
15-
***[Commit Activity](/v3/repos/statistics/#get-the-last-year-of-commit-activity-data)**
16-
***[Code Frequency](/v3/repos/statistics/#get-the-number-of-additions-and-deletions-per-week)**
17-
***[Participation](/v3/repos/statistics/#get-the-weekly-commit-count-for-the-repo-owner-and-everyone-else)**
18-
***[Punch Card](/v3/repos/statistics/#get-the-number-of-commits-per-hour-in-each-day)**
14+
***[Contributors](/v3/repos/statistics/#contributors)**
15+
***[Commit Activity](/v3/repos/statistics/#commit-activity)**
16+
***[Code Frequency](/v3/repos/statistics/#code-frequency)**
17+
***[Participation](/v3/repos/statistics/#participation)**
18+
***[Punch Card](/v3/repos/statistics/#punch-card)**
1919

2020
Enjoy!

‎content/changes/2013-07-19-preview-the-new-search-api.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ numeric offsets identifying the exact location of each matching search term.
3131
##Preview period
3232

3333
We're making this new API available today for developers to
34-
[preview][preview-mode]. We think developers are going to love it, but we want
34+
<ahref="/v3/search/#preview-mode"data-proofer-ignore>preview</a>. We think developers are going to love it, but we want
3535
to get your feedback before we declare the Search API "final" and
3636
"unchangeable." We expect the preview period to last for roughly 60 days.
3737

@@ -63,7 +63,6 @@ We hope you'll kick the tires and [send us your feedback][contact]. Happy
6363
[issue-docs]:/v3/search/#search-issues
6464
[legacy-search]:/v3/search/legacy/
6565
[octokit-gemspecs]:/v3/search/#code-search-example
66-
[preview-mode]:/v3/search/#preview-mode
6766
[repo-docs]:/v3/search/#search-repositories
6867
[tetris-repos]:/v3/search/#repository-search-example
6968
[text-matches]:/v3/search#text-match-metadata

‎content/changes/2014-01-09-preview-the-new-deployments-api.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ whether or not to actually deploy the repository that the event was created for.
5959
##Preview Period
6060

6161
We're making this new API available today for developers to
62-
[preview][preview-mode]. We think developers and existing integrations are
62+
<ahref="/v3/repos/deployments/#preview-mode"data-proofer-ignore>preview</a>. We think developers and existing integrations are
6363
going to love it, but we want to[get your feedback][contact] before we declare
6464
the Deployments API "final" and "unchangeable." We expect the preview period to
6565
last for roughly 60-90 days.
@@ -75,10 +75,9 @@ stable and suitable for production use.
7575

7676
We hope you’ll take it for a spin and[send us your feedback][contact].
7777

78-
![](http://shipitsquirrel.github.io/images/ship%20it%20squirrel.png)
78+
![Shipit Squirrel](http://shipitsquirrel.github.io/images/ship%20it%20squirrel.png)
7979

8080
[docs]:/v3/repos/deployments/
8181
[hooks]:/v3/repos/hooks/
82-
[preview-mode]:/v3/repos/deployments/#preview-mode
8382
[chatops]:https://speakerdeck.com/jnewland/chatops
8483
[contact]:https://github.com/contact?form[subject]=Deployments+API

‎content/guides/basics-of-authentication.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ requesting `user:email` scope for reading private email addresses.
7878

7979
Navigate your browser to`http://localhost:4567`. After clicking on the link, you
8080
should be taken to GitHub, and presented with a dialog that looks something like this:
81-
![](/images/oauth_prompt.png)
81+
![GitHub's OAuth Prompt](/images/oauth_prompt.png)
8282

8383
If you trust yourself, click**Authorize App**. Wuh-oh! Sinatra spits out a
8484
`404` error. What gives?!

‎content/guides/getting-started.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -184,13 +184,13 @@ indicating the name of the app, as well as the level of access the app
184184
has once it's authorized by the user. After a user authorizes access, GitHub
185185
redirects the user back to the application:
186186

187-
![](/images/oauth_prompt.png)
187+
![GitHub's OAuth Prompt](/images/oauth_prompt.png)
188188

189189
However, you don't need to set up the entire web flow to begin working with OAuth tokens.
190190
An easier way to get a token is to[create a**Personal token**][personal token] via your
191191
[Application settings page][application settings]:
192192

193-
![](/images/personal_token.png)
193+
![Personal Token selection](/images/personal_token.png)
194194

195195
Also, the[**Authorizations API**][authorizations api] makes it simple to use Basic Authentication
196196
to create an OAuth token. Try pasting and running the following command:
@@ -541,7 +541,7 @@ Keep learning with the next API guide [Basics of Authentication][auth guide]!
541541
[pagination]:/v3/#pagination
542542
[get repo]:/v3/repos/#get
543543
[create repo]:/v3/repos/#create
544-
[create issue]:/v3/issues/#create
544+
[create issue]:/v3/issues/#create-an-issue
545545
[auth guide]:/guides/basics-of-authentication
546546
[user repos api]:/v3/repos/#list-your-repositories
547547
[other user repos api]:/v3/repos/#list-user-repositories

‎content/guides/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,4 @@ stored and documented in our public
1515

1616
Feel free to fork, clone, and improve these guides.
1717

18-
![](/images/professorcat.png)
18+
![The Professorcat](/images/professorcat.png)

‎content/index.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ layout: overview
88
GitHub in your app</h1>
99
<pclass="intro">Get started with one of our guides, or jump straight into the API documentation.</p>
1010
<ahref="/v3/"class="button">Browse the documentation</a>
11-
<imgsrc="/shared/images/labtocat.png"class="labtocat" />
11+
<imgsrc="/shared/images/labtocat.png"class="labtocat"alt="The Labtocat"/>
1212
</div>
1313

1414
<divclass="full-width-divider">
@@ -28,6 +28,6 @@ GitHub in your app</h1>
2828
<h2><a href="http://github.com/contact">Support</a></h2>
2929
<p>Are you stuck? Already tried our <a href="/v3/troubleshooting/">troubleshooting guide</a>? Talk to a supportocat.</p>
3030
</li>
31-
31+
3232
</ul>
3333
</div>

‎content/libraries.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ many flavors</h1>
1212
<li><span>Obj-C</span><ahref="https://github.com/octokit/octokit.objc">octokit.objc</a></li>
1313
<li><span>.NET</span><ahref="https://github.com/octokit/octokit.net">octokit.net</a></li>
1414
</ul>
15-
<imgsrc="/shared/images/gundamcat.png"class="gundamcat" />
15+
<imgsrc="/shared/images/gundamcat.png"class="gundamcat"alt="The Gundamcat"/>
1616
</div>
1717

1818
#Third-party libraries

‎content/v3/rate_limit.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ The Search API has a [custom rate limit](/v3/search/#rate-limit), separate from
3737
the rate limit governing the rest of the API. For that reason, the response
3838
(shown above) categorizes your rate limit by resource. Within the`"resources"`
3939
hash, the`"search"` hash provides your rate limit status for the
40-
[Search API](v3/search). The`"core"` hash provides your rate limit status for
40+
[Search API](/v3/search). The`"core"` hash provides your rate limit status for
4141
all the_rest_ of the API.
4242

4343
####Deprecation Notice

‎content/v3/repos/statistics.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ which is usually master; pushing to the default branch resets the statistics cac
4141
*`c` - Number of commits
4242

4343

44-
##Get the last year of commit activity data
44+
##Get the last year of commit activity data {#commit-activity}
4545

4646
Returns the last year of commit activity grouped by week. The`days` array
4747
is a group of commits per day, starting on`Sunday`.

‎index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ <h1>Leverage the power of<br>
4242
GitHub in your app</h1>
4343
<pclass="intro">Get started with one of our guides, or jump straight into the API documentation.</p>
4444
<ahref="/v3/"class="button">Browse the documentation</a>
45-
<imgsrc="/shared/images/labtocat.png"class="labtocat">
45+
<imgsrc="/shared/images/labtocat.png"x x-first x-last">" alt="The Labtocat">
4646
</div>
4747

4848
<divclass="full-width-divider">

‎layouts/header.html

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
<div>
44
<aclass="logo"href="/">GitHub:Developer</a>
55
<ulclass="nav">
6-
<li><ahref="/"class="nav-overview">Overview</a></li>
76
<li><ahref="/v3/"class="nav-api">API</a></li>
87
<li><ahref="/changes/"class="nav-blog">Blog</a></li>
98
<li><ahref="https://github.com/contact">Support</a></li>

‎layouts/sidebar.html

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<divclass="js-toggle-list sidebar-module expandable">
33
<ul>
44
<liclass="js-topic">
5-
<h3><ahref="#"class="js-expand-btn collapsed arrow-btn"></a><ahref="/v3/">Overview</a></h3>
5+
<h3><ahref="#"class="js-expand-btn collapsed arrow-btn"data-proofer-ignore></a><ahref="/v3/">Overview</a></h3>
66
<ulclass="js-guides">
77
<li><ahref="/v3/media/">Media Types</a></li>
88
<li><ahref="/v3/oauth/">OAuth</a></li>
@@ -12,7 +12,7 @@ <h3><a href="#" class="js-expand-btn collapsed arrow-btn"></a><a href="/v3/">Ove
1212
</ul>
1313
</li>
1414
<liclass="js-topic">
15-
<h3><ahref="#"class="js-expand-btn collapsed arrow-btn"></a><ahref="/v3/activity/">Activity</a></h3>
15+
<h3><ahref="#"class="js-expand-btn collapsed arrow-btn"data-proofer-ignore></a><ahref="/v3/activity/">Activity</a></h3>
1616
<ulclass="js-guides">
1717
<li><ahref="/v3/activity/events/">Events</a></li>
1818
<li><ahref="/v3/activity/events/types/">Event Types</a></li>
@@ -23,13 +23,13 @@ <h3><a href="#" class="js-expand-btn collapsed arrow-btn"></a><a href="/v3/activ
2323
</ul>
2424
</li>
2525
<liclass="js-topic">
26-
<h3><ahref="#"class="js-expand-btn collapsed arrow-btn"></a><ahref="/v3/gists/">Gists</a></h3>
26+
<h3><ahref="#"class="js-expand-btn collapsed arrow-btn"data-proofer-ignore></a><ahref="/v3/gists/">Gists</a></h3>
2727
<ulclass="js-guides">
2828
<li><ahref="/v3/gists/comments/">Comments</a></li>
2929
</ul>
3030
</li>
3131
<liclass="js-topic">
32-
<h3><ahref="#"class="js-expand-btn collapsed arrow-btn"></a><ahref="/v3/git/">Git Data</a></h3>
32+
<h3><ahref="#"class="js-expand-btn collapsed arrow-btn"data-proofer-ignore></a><ahref="/v3/git/">Git Data</a></h3>
3333
<ulclass="js-guides">
3434
<li><ahref="/v3/git/blobs/">Blobs</a></li>
3535
<li><ahref="/v3/git/commits/">Commits</a></li>
@@ -39,7 +39,7 @@ <h3><a href="#" class="js-expand-btn collapsed arrow-btn"></a><a href="/v3/git/"
3939
</ul>
4040
</li>
4141
<liclass="js-topic">
42-
<h3><ahref="#"class="js-expand-btn collapsed arrow-btn"></a><ahref="/v3/issues/">Issues</a></h3>
42+
<h3><ahref="#"class="js-expand-btn collapsed arrow-btn"data-proofer-ignore></a><ahref="/v3/issues/">Issues</a></h3>
4343
<ulclass="js-guides">
4444
<li><ahref="/v3/issues/assignees/">Assignees</a></li>
4545
<li><ahref="/v3/issues/comments/">Comments</a></li>
@@ -49,7 +49,7 @@ <h3><a href="#" class="js-expand-btn collapsed arrow-btn"></a><a href="/v3/issue
4949
</ul>
5050
</li>
5151
<liclass="js-topic">
52-
<h3><ahref="#"class="js-expand-btn collapsed arrow-btn"></a><ahref="/v3/misc/">Miscellaneous</a></h3>
52+
<h3><ahref="#"class="js-expand-btn collapsed arrow-btn"data-proofer-ignore></a><ahref="/v3/misc/">Miscellaneous</a></h3>
5353
<ulclass="js-guides">
5454
<li><ahref="/v3/emojis/">Emojis</a></li>
5555
<li><ahref="/v3/gitignore/">Gitignore</a></li>
@@ -59,20 +59,20 @@ <h3><a href="#" class="js-expand-btn collapsed arrow-btn"></a><a href="/v3/misc/
5959
</ul>
6060
</li>
6161
<liclass="js-topic">
62-
<h3><ahref="#"class="js-expand-btn collapsed arrow-btn"></a><ahref="/v3/orgs/">Organizations</a></h3>
62+
<h3><ahref="#"class="js-expand-btn collapsed arrow-btn"data-proofer-ignore></a><ahref="/v3/orgs/">Organizations</a></h3>
6363
<ulclass="js-guides">
6464
<li><ahref="/v3/orgs/members/">Members</a></li>
6565
<li><ahref="/v3/orgs/teams/">Teams</a></li>
6666
</ul>
6767
</li>
6868
<liclass="js-topic">
69-
<h3><ahref="#"class="js-expand-btn collapsed arrow-btn"></a><ahref="/v3/pulls/">Pull Requests</a></h3>
69+
<h3><ahref="#"class="js-expand-btn collapsed arrow-btn"data-proofer-ignore></a><ahref="/v3/pulls/">Pull Requests</a></h3>
7070
<ulclass="js-guides">
7171
<li><ahref="/v3/pulls/comments/">Review Comments</a></li>
7272
</ul>
7373
</li>
7474
<liclass="js-topic">
75-
<h3><ahref="#"class="js-expand-btn collapsed arrow-btn"></a><ahref="/v3/repos/">Repositories</a></h3>
75+
<h3><ahref="#"class="js-expand-btn collapsed arrow-btn"data-proofer-ignore></a><ahref="/v3/repos/">Repositories</a></h3>
7676
<ulclass="js-guides">
7777
<li><ahref="/v3/repos/collaborators/">Collaborators</a></li>
7878
<li><ahref="/v3/repos/comments/">Comments</a></li>
@@ -90,7 +90,7 @@ <h3><a href="#" class="js-expand-btn collapsed arrow-btn"></a><a href="/v3/repos
9090
</ul>
9191
</li>
9292
<liclass="js-topic">
93-
<h3><ahref="#"class="js-expand-btn collapsed arrow-btn"></a><ahref="/v3/search/">Search</a></h3>
93+
<h3><ahref="#"class="js-expand-btn collapsed arrow-btn"data-proofer-ignore></a><ahref="/v3/search/">Search</a></h3>
9494
<ulclass="js-guides">
9595
<li><ahref="/v3/search/#search-repositories">Repositories</a></li>
9696
<li><ahref="/v3/search/#search-code">Code</a></li>
@@ -100,7 +100,7 @@ <h3><a href="#" class="js-expand-btn collapsed arrow-btn"></a><a href="/v3/searc
100100
</ul>
101101
</li>
102102
<liclass="js-topic">
103-
<h3><ahref="#"class="js-expand-btn collapsed arrow-btn"></a><ahref="/v3/users/">Users</a></h3>
103+
<h3><ahref="#"class="js-expand-btn collapsed arrow-btn"data-proofer-ignore></a><ahref="/v3/users/">Users</a></h3>
104104
<ulclass="js-guides">
105105
<li><ahref="/v3/users/emails/">Emails</a></li>
106106
<li><ahref="/v3/users/followers/">Followers</a></li>

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp