Skip to content

Commit 856afde

Browse files
committed
Add HTML::Proofer tests
1 parent 26060e3 commit 856afde

24 files changed

+111
-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/

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 :test do
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: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,16 @@
11
require 'nanoc3/tasks'
2+
require 'html/proofer'
23

34
desc "Compile the site"
45
task :compile do
56
`nanoc compile`
67
end
78

9+
desc "Test the output"
10+
task :test => [:clean, :compile] do
11+
HTML::Proofer.new("./output").run
12+
end
13+
814
# Prompt user for a commit message; default: P U B L I S H :emoji:
915
def commit_message
1016
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
<h2 id="preview-period">Preview Period</h2>
147147

148148
<p>We’re making this new API available today for developers to
149-
<a href="/v3/repos/deployments/#preview-mode">preview</a>. We think developers and existing integrations are
149+
<a href="/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 <a href="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+
<a href="/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+
<a href="/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

0 commit comments

Comments
 (0)