Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
3266 commits
Select commit Hold shift + click to select a range
22129d8
Sync changes from upstream repository
Aug 29, 2014
fba041a
Sync changes from upstream repository
Aug 29, 2014
5bfa18f
Commit search file
gjtorikian Aug 29, 2014
7d47cd8
Sync changes from upstream repository
Aug 29, 2014
2410a93
Tuck search-index.json within .gitignore
gjtorikian Aug 29, 2014
48d8934
Add final newline when generating search-json
gjtorikian Aug 29, 2014
04ef4c2
add /repositories/:id route to repos documentation
brancz Aug 30, 2014
95018e3
Sync changes from upstream repository
Sep 2, 2014
0d747c9
Sync changes from upstream repository
Sep 5, 2014
65f887c
Fix state value shown for pending team membership
jasonrudolph Sep 9, 2014
94106df
Sync changes from upstream repository
Sep 9, 2014
8a39e80
Sync changes from upstream repository
Sep 10, 2014
7275006
Kramdown requires `pre`, not ```
gjtorikian Sep 10, 2014
8e7e4fa
Sync changes from upstream repository
Sep 10, 2014
1f7adab
Sync changes from upstream repository
Sep 12, 2014
599cc01
Sync changes from upstream repository
Sep 14, 2014
1f23bc1
Sync changes from upstream repository
Sep 16, 2014
1af08e8
Sync changes from upstream repository
Sep 18, 2014
f3c66c5
Sync changes from upstream repository
Sep 18, 2014
f814622
Increase the heading levels
gjtorikian Sep 18, 2014
be9826d
Update link to Joomla! repository
mbabker Sep 19, 2014
9bb2f2e
Fixed API limit message
lucasconstantino Sep 22, 2014
6e0e937
Merge upstream
gjtorikian Sep 22, 2014
ec3edcc
Conflicts:
Sep 24, 2014
1347e78
Sync changes from upstream repository
Sep 24, 2014
3a4d127
fixed broken link of kramdown's syntax
carlesjove Sep 29, 2014
0cb0099
Sync changes from upstream repository
Sep 30, 2014
36ecaa6
Sync changes from upstream repository
Oct 4, 2014
15e4c86
Sync changes from upstream repository
Oct 6, 2014
79e5f6b
Sync changes from upstream repository
Oct 6, 2014
5785111
Update libraries.md
alexsoft Oct 8, 2014
fcd208c
Fix invalid changelog link.
zorbash Oct 8, 2014
f0b1dc9
Sync changes from upstream repository
Oct 9, 2014
0919220
Sync changes from upstream repository
Oct 9, 2014
0c8dec7
The endpoint is `users` (plural) not `user`
lildude Oct 9, 2014
ae7ad9c
Sync changes from upstream repository
Oct 10, 2014
cb7e6c5
Sync changes from upstream repository
Oct 16, 2014
83483da
Sync changes from upstream repository
Oct 20, 2014
da2f148
Sync changes from upstream repository
Oct 20, 2014
c515857
Sync changes from upstream repository
Oct 21, 2014
5abda16
Sync changes from upstream repository
Oct 22, 2014
95cb996
Sync changes from upstream repository
Oct 23, 2014
d00a5db
Sync changes from upstream repository
Oct 24, 2014
b302544
Sync changes from upstream repository
Oct 24, 2014
8fd773e
Fix spelling mistake: s/annouce/announce.
nickrobson Oct 27, 2014
0819b5c
Sync changes from upstream repository
Oct 29, 2014
6913d3c
Sync changes from upstream repository
Nov 5, 2014
292adc8
Sync changes from upstream repository
Nov 5, 2014
b3f11ed
merge aviflax-objects-not-hashes
gjtorikian Nov 7, 2014
33a5672
Sync changes from upstream repository
Nov 11, 2014
8c74366
Merge pull request #635 from github/update-1415666052
Nov 11, 2014
0e57a9b
Sync changes from upstream repository
Nov 11, 2014
2e67716
Merge pull request #636 from github/update-1415716906
Nov 11, 2014
54c9357
Sync changes from upstream repository
Nov 11, 2014
4bd260f
Merge pull request #637 from github/update-1415717108
Nov 11, 2014
422ba9d
Sync changes from upstream repository
Nov 11, 2014
a9a6bf3
Merge pull request #638 from github/update-1415717285
Nov 11, 2014
d17b878
Usability updates to enterprise-cutter script
gjtorikian Nov 11, 2014
c6b991f
fuck typos
gjtorikian Nov 11, 2014
bda43ec
Add helpful goodbye
gjtorikian Nov 11, 2014
0dbe27e
Don't use .css here
gjtorikian Nov 11, 2014
9d4469d
Fix nanoc URL
jasonrudolph Nov 20, 2014
4f2ecef
Fix link to GitHub Enterprise help doc
jasonrudolph Nov 20, 2014
9ab24e0
Fix link to GitHub Enterprise help doc
jasonrudolph Nov 20, 2014
8b8c33d
Merge pull request #642 from github/fix-broken-links
jasonrudolph Nov 20, 2014
1780db0
Sync changes from upstream repository
Nov 21, 2014
9f03254
Merge pull request #643 from github/update-1416608966
Nov 21, 2014
7931709
Sync changes from upstream repository
Nov 25, 2014
c449b95
Merge pull request #644 from github/update-1416906866
Nov 25, 2014
59d441c
Sync changes from upstream repository
Nov 25, 2014
f16b0ac
Merge pull request #645 from github/update-1416907936
Nov 25, 2014
7ab5142
Sync changes from upstream repository
Nov 25, 2014
0c1d9f1
Merge pull request #646 from github/update-1416942459
Nov 25, 2014
dd8102f
Sync changes from upstream repository
Nov 25, 2014
32cc002
Merge pull request #647 from github/update-1416946853
Nov 25, 2014
3eb28d2
Sync changes from upstream repository
Dec 1, 2014
04d5c58
Merge pull request #648 from github/update-1417426904
Dec 1, 2014
121fa7b
Sync changes from upstream repository
Dec 1, 2014
62abd91
Merge pull request #649 from github/update-1417427139
Dec 1, 2014
9c67472
Sync changes from upstream repository
Dec 1, 2014
57013a7
Merge pull request #650 from github/update-1417434711
Dec 1, 2014
ad9f95c
Sync changes from upstream repository
Dec 1, 2014
f612952
Merge pull request #651 from github/update-1417443248
Dec 1, 2014
2ecf316
Fix punctuation
jasonrudolph Dec 1, 2014
6fe5e9b
Clarify timeline
jasonrudolph Dec 1, 2014
bdb36dc
Sync changes from upstream repository
Dec 2, 2014
69aff6f
Merge pull request #652 from github/update-1417482739
Dec 2, 2014
ced9d48
Sync changes from upstream repository
Dec 2, 2014
2006b5f
Merge pull request #653 from github/update-1417558358
Dec 2, 2014
b142a03
Use sentence case for section headings
jasonrudolph Dec 2, 2014
23a6042
Sync changes from upstream repository
Dec 3, 2014
6a247f5
Merge pull request #654 from github/update-1417606170
Dec 3, 2014
c9280d6
Sync changes from upstream repository
Dec 3, 2014
219d7ba
Merge pull request #655 from github/update-1417626311
Dec 3, 2014
7675814
Sync changes from upstream repository
Dec 3, 2014
f09f9e0
Merge pull request #657 from github/update-1417636826
Dec 3, 2014
955faf3
Sync changes from upstream repository
Dec 5, 2014
07b3b90
Merge pull request #659 from github/update-1417823510
Dec 5, 2014
f88d84f
Broken links on webhooks index
redbmk Dec 6, 2014
da23ccc
Merge pull request #661 from redbmk/patch-1
izuzak Dec 7, 2014
6499e17
Mention that SSH agent forwarding only affects SSH URLs!
mikemaccana Dec 8, 2014
b9c2c67
Sync changes from upstream repository
jasonrudolph Dec 8, 2014
0297603
Sync changes from upstream repository
Dec 8, 2014
3141b6e
Merge pull request #663 from github/update-1418071670
Dec 8, 2014
9821655
Resolve merge conflict
gjtorikian Dec 9, 2014
5db667a
Merge pull request #664 from github/update-with-latest-upstream
gjtorikian Dec 9, 2014
cd56a53
Fix combined status API response
jeremyruppel Dec 10, 2014
12e96ce
Merge pull request #665 from jeremyruppel/patch-1
izuzak Dec 10, 2014
52c4764
Sync changes from upstream repository
jasonrudolph Dec 8, 2014
b54a2af
Sync changes from upstream repository
Dec 8, 2014
dd81d8d
Resolve merge conflict
gjtorikian Dec 9, 2014
569ccbb
Fix combined status API response
jeremyruppel Dec 10, 2014
8ec9d5c
Somne slight formatting changes to match the rest of our style
gjtorikian Dec 10, 2014
8a5b6c3
Merge branch 'mikemaccana-patch-1'
gjtorikian Dec 10, 2014
abe7d2a
Sync changes from upstream repository
Dec 10, 2014
7983c67
Merge pull request #666 from github/update-1418242505
Dec 10, 2014
3266512
Sync changes from upstream repository
Dec 10, 2014
a0d63d3
Merge pull request #667 from github/update-1418249860
Dec 10, 2014
d9bdb95
Merge from upstream
gjtorikian Dec 10, 2014
44f8ab1
Merge pull request #668 from github/merge-bhuga-upstream
gjtorikian Dec 10, 2014
810ae92
Sync changes from upstream repository
Dec 12, 2014
738daf2
Merge pull request #669 from github/update-1418415016
Dec 12, 2014
c4f190f
Sync changes from upstream repository
Dec 12, 2014
15430d0
Merge pull request #670 from github/update-1418416001
Dec 12, 2014
5b6bfa5
Fixed typo applicaion->application
DDropinski Dec 17, 2014
d1073c0
Merge pull request #672 from DDropinski/oauth-typo
jasonrudolph Dec 17, 2014
70adbb3
Sync changes from upstream repository
Dec 23, 2014
af62b2b
Merge pull request #674 from github/update-1419353070
Dec 23, 2014
e723ae1
Sync changes from upstream repository
Dec 23, 2014
4c619d6
Merge pull request #675 from github/update-1419354829
Dec 23, 2014
e551f63
Fix invalid membership payload JSON
Dec 24, 2014
331ad80
Merge pull request #676 from Synchunk/master
izuzak Dec 24, 2014
ccdbf74
Sync changes from upstream repository
Jan 5, 2015
432c348
Merge pull request #677 from github/update-1420494857
Jan 5, 2015
4e0a182
Sync changes from upstream repository
Jan 7, 2015
1959d63
Merge pull request #678 from github/update-1420669763
hubot Jan 7, 2015
405e0e8
Sync changes from upstream repository
Jan 8, 2015
5127c72
Merge pull request #679 from github/update-1420743032
hubot Jan 8, 2015
99c1a9c
replace .rbenv-version and .rvmrc with .ruby-version
Jan 8, 2015
8a5035e
Merge pull request #680 from mnquintana/master
gjtorikian Jan 8, 2015
cb5c0ef
Sync changes from upstream repository
Jan 8, 2015
8592f93
Merge pull request #681 from github/update-1420750449
hubot Jan 8, 2015
5c72df6
Sync changes from upstream repository
Jan 9, 2015
1aaa1d1
Merge pull request #682 from github/update-1420801899
hubot Jan 9, 2015
c9339d1
Update building-a-ci-server.md
willsmythe Jan 9, 2015
e19e63c
Merge pull request #683 from willsmythe/patch-1
izuzak Jan 9, 2015
977e55c
Only request scopes which are used
izuzak Jan 10, 2015
498e94b
Merge remote-tracking branch 'origin/master' into fix-possible-confus…
izuzak Jan 10, 2015
4b857d5
Add reference to octo.erl
sdepold Jan 11, 2015
ca10d1f
Merge pull request #686 from sdepold/patch-1
izuzak Jan 12, 2015
469593f
Sync changes from upstream repository
Jan 12, 2015
00bdada
Merge pull request #687 from github/update-1421056574
hubot Jan 12, 2015
eae5da8
Fix verbs description concerning custom actions
fixe Jan 12, 2015
84e6615
Merge pull request #685 from seegno/support/fix-verbs-description
pengwynn Jan 12, 2015
d4d9c20
Sync changes from upstream repository
Jan 13, 2015
9f14894
Merge pull request #688 from github/update-1421146234
hubot Jan 13, 2015
63f963f
Merge pull request #684 from github/izuzak-request-scopes-which-are-n…
izuzak Jan 13, 2015
06335fd
Sync changes from upstream repository
Jan 13, 2015
719a6b1
Merge pull request #689 from github/update-1421163709
hubot Jan 13, 2015
c5b6a52
Tweak header, links for new app access review section
pengwynn Jan 14, 2015
42c3457
Merge upstream
gjtorikian Jan 17, 2015
0eef535
Merge pull request #691 from github/address-merge-conflict
gjtorikian Jan 17, 2015
cbe493c
Sync changes from upstream repository
Jan 19, 2015
2243199
Merge pull request #693 from github/update-1421696858
hubot Jan 19, 2015
db338d7
More copy tweaks for clarity, update blog post URL
pengwynn Jan 19, 2015
459cd10
Simplify heading
jasonrudolph Jan 19, 2015
2db83f7
Sync changes from upstream repository
Jan 19, 2015
37c56fe
Merge pull request #694 from github/update-1421701869
hubot Jan 19, 2015
1fd0e52
Sync changes from upstream repository
Jan 20, 2015
4ed806e
Merge pull request #697 from github/update-1421773737
hubot Jan 20, 2015
d0961b6
Add LDAP to search index
gjtorikian Jan 20, 2015
3784d6d
lol method name changed
gjtorikian Jan 20, 2015
19106c8
Include files after var declaration
gjtorikian Jan 20, 2015
8932a0c
These are immutable constants
gjtorikian Jan 20, 2015
37d818f
Protect against nil body
gjtorikian Jan 20, 2015
807d3de
Make executable
gjtorikian Jan 20, 2015
c98ded3
These are immutable constants
gjtorikian Jan 20, 2015
bb55b28
We don't need to check out gh-pages here
gjtorikian Jan 20, 2015
fe822f5
Move nokogiri requirement to where it's needed
gjtorikian Jan 20, 2015
0735cc3
Commit to the right subdirectory
gjtorikian Jan 20, 2015
907ec2a
Drop the last dir
gjtorikian Jan 20, 2015
65ef555
Only rewrite the versioned Enterprise stuff
gjtorikian Jan 20, 2015
37a0f79
Sync changes from upstream repository
Jan 20, 2015
ea58516
Merge pull request #700 from github/update-1421779390
hubot Jan 20, 2015
d4ee0e3
Delete nested enterprise directory
gjtorikian Jan 20, 2015
6ba5cdf
Sync changes from upstream repository
Jan 21, 2015
6336353
Merge pull request #702 from github/update-1421854578
hubot Jan 21, 2015
b727cd8
Sync changes from upstream repository
Jan 23, 2015
cd7a8c3
Merge pull request #703 from github/update-1422050973
hubot Jan 23, 2015
c237c01
Clarify deploy keys and collaborators are always granted read/write a…
tamsky Jan 27, 2015
b84cec9
style and naming corrections
tamsky Jan 28, 2015
97af233
Merge pull request #704 from tamsky/clarify-machine-users-vs-deploy-keys
gjtorikian Jan 28, 2015
529b608
Fixed order
sm11963 Feb 1, 2015
21d5502
Merge pull request #705 from sm11963/fix-activity-api-order
gjtorikian Feb 3, 2015
e33f812
Sync changes from upstream repository
Feb 3, 2015
ad30a58
Merge pull request #706 from github/update-1422981043
hubot Feb 3, 2015
ae1d3cd
s/know/known
troyswanson Feb 4, 2015
f3c423f
Merge pull request #707 from troyswanson/patch-1
gjtorikian Feb 4, 2015
a481232
Fix typo in webhooks docs
glasser Feb 16, 2015
9d00512
Merge pull request #709 from glasser/patch-1
gjtorikian Feb 16, 2015
5ef32ff
Sync changes from upstream repository
Feb 16, 2015
3189caf
Merge pull request #710 from github/update-1424126704
hubot Feb 16, 2015
96c473d
Sync changes from upstream repository
Feb 17, 2015
13d73c6
Merge pull request #711 from github/update-1424201754
hubot Feb 17, 2015
aed8704
Sync changes from upstream repository
Feb 17, 2015
9e9a13a
Merge pull request #712 from github/update-1424204854
hubot Feb 17, 2015
82458c1
Sync changes from upstream repository
Feb 18, 2015
f2d4dd0
Merge pull request #714 from github/update-1424260572
hubot Feb 18, 2015
eda792e
Sync changes from upstream repository
Feb 18, 2015
4316ce8
Merge pull request #715 from github/update-1424274739
hubot Feb 18, 2015
b2784bd
removed redirects
vasujain Feb 19, 2015
ee96eed
Merge pull request #716 from vasujain/master
gjtorikian Feb 19, 2015
5066101
Sync changes from upstream repository
Feb 20, 2015
322dab5
Merge pull request #717 from github/update-1424447082
hubot Feb 20, 2015
48afef7
Sync changes from upstream repository
Feb 24, 2015
6e92e49
Merge pull request #718 from github/update-1424798353
hubot Feb 24, 2015
adbc935
Sync changes from upstream repository
Feb 24, 2015
9c97519
Merge pull request #719 from github/update-1424809789
hubot Feb 24, 2015
e642769
Sync changes from upstream repository
Mar 2, 2015
41c45b3
Merge pull request #722 from github/update-1425330941
hubot Mar 2, 2015
7fc1bce
Fixed typo
kelunik Mar 3, 2015
45fe746
Merge pull request #723 from kelunik/patch-1
gjtorikian Mar 3, 2015
26ef63c
Sync changes from upstream repository
Mar 3, 2015
f6ab2b5
Merge pull request #724 from github/update-1425419918
hubot Mar 3, 2015
641e4af
Sync changes from upstream repository
Mar 3, 2015
7a53bca
Merge pull request #725 from github/update-1425420264
hubot Mar 3, 2015
fec5b01
Sync changes from upstream repository
Mar 3, 2015
6f1eae8
Merge pull request #726 from github/update-1425420569
hubot Mar 3, 2015
9bf8a18
Add period for symmetry with other list items
jasonrudolph Mar 3, 2015
9d8bd89
Issue comments are issue comments, not pull request comments
izuzak Mar 5, 2015
c464520
Merge pull request #727 from github/iz-fix-repo-issue-comments-example
izuzak Mar 5, 2015
506312d
licenses api documentation
benbalter Mar 9, 2015
e52945b
Merge pull request #728 from github/licenses-api
benbalter Mar 9, 2015
fa31ade
update search index
benbalter Mar 9, 2015
7176fb9
fix markdown typo in license API docs
imjasonh Mar 9, 2015
52a6e8c
Merge pull request #729 from ImJasonH/patch-1
gjtorikian Mar 9, 2015
a6ee5ec
Make this executable
gjtorikian Mar 9, 2015
e94e8e7
Check the arg first
gjtorikian Mar 9, 2015
710c9ba
let me know you finished
gjtorikian Mar 9, 2015
99fb24e
Remove output artifact
gjtorikian Mar 9, 2015
d5280a1
Sync changes from upstream repository
Mar 9, 2015
d9439ca
Merge pull request #731 from github/update-1425939027
hubot Mar 9, 2015
a104328
Add Licenses to sidebar
gjtorikian Mar 10, 2015
3634473
Genericize repo call
gjtorikian Mar 10, 2015
3a5c427
Merge pull request #733 from github/licensee-cleanup
gjtorikian Mar 10, 2015
8e7ff6a
Update search-index.json
gjtorikian Mar 10, 2015
2084eba
Update oauth.md
daveaglick Mar 11, 2015
cef9fb7
Merge pull request #734 from somedave/master
gjtorikian Mar 11, 2015
c91b834
Sorava
sorava Mar 13, 2015
6ea3211
Revert "Sorava"
sorava Mar 13, 2015
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
*.svg eol=lf
10 changes: 10 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
output
tmp
.DS_Store
.bundle
bin
crash.log
/vendor/gems/
/bin/
/.bundle/
static/search-index.json
1 change: 1 addition & 0 deletions .ruby-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
1.9.3
3 changes: 3 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
language: ruby
rvm:
- 1.9.3
7 changes: 7 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
Found a typo? Have an idea for improving the docs? Feel free to open a pull request and we'll get it merged as soon as we can!

If you have a specific question or issues with the API, please [let us know](https://github.com/contact).

## Do you work at GitHub?

If you're a GitHub employee, please take a look at [our GitHubber article](https://githubber.com/article/crafts/writing/everything-you-need-to-know-about-the-Developer-blog) for more specific information on contributing.
24 changes: 24 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
source "http://rubygems.org"

ruby '1.9.3'

gem 'builder'
gem 'coderay'
gem 'kramdown', '~> 0.13.2'
gem 'mime-types', '~> 1.16'
gem 'nanoc', '~> 3.7'
gem 'nokogiri', '~> 1.6.0'
gem 'rouge', '~> 1.4'
gem 'rake', '~> 0.9.2'
gem 'thin'
gem 'yajl-ruby', '~> 0.8.2'

group :development do
gem 'adsf'
gem 'fssm'
gem 'guard-nanoc'
end

group :test do
gem 'html-proofer'
end
88 changes: 88 additions & 0 deletions Gemfile.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1,88 @@
GEM
remote: http://rubygems.org/
specs:
adsf (1.2.0)
rack (>= 1.0.0)
builder (3.2.2)
celluloid (0.15.2)
timers (~> 1.1.0)
coderay (1.1.0)
colored (1.2)
cri (2.6.1)
colored (~> 1.2)
daemons (1.1.9)
ethon (0.7.0)
ffi (>= 1.3.0)
eventmachine (1.0.3)
ffi (1.9.3)
formatador (0.2.5)
fssm (0.2.10)
guard (2.6.1)
formatador (>= 0.2.4)
listen (~> 2.7)
lumberjack (~> 1.0)
pry (>= 0.9.12)
thor (>= 0.18.1)
guard-nanoc (1.0.2)
guard (>= 1.8.0)
nanoc (>= 3.6.3)
html-proofer (0.7.1)
colored (~> 1.2)
mercenary (~> 0.3.2)
nokogiri (~> 1.6.0)
typhoeus (~> 0.6.7)
yell (~> 2.0)
kramdown (0.13.8)
listen (2.7.9)
celluloid (>= 0.15.2)
rb-fsevent (>= 0.9.3)
rb-inotify (>= 0.9)
lumberjack (1.0.9)
mercenary (0.3.3)
method_source (0.8.2)
mime-types (1.25.1)
mini_portile (0.6.0)
nanoc (3.7.1)
cri (~> 2.3)
nokogiri (1.6.2.1)
mini_portile (= 0.6.0)
pry (0.10.0)
coderay (~> 1.1.0)
method_source (~> 0.8.1)
slop (~> 3.4)
rack (1.5.2)
rake (0.9.6)
rb-fsevent (0.9.4)
rb-inotify (0.9.5)
ffi (>= 0.5.0)
rouge (1.4.0)
slop (3.6.0)
thin (1.6.2)
daemons (>= 1.0.9)
eventmachine (>= 1.0.0)
rack (>= 1.0.0)
thor (0.19.1)
timers (1.1.0)
typhoeus (0.6.8)
ethon (>= 0.7.0)
yajl-ruby (0.8.3)
yell (2.0.4)

PLATFORMS
ruby

DEPENDENCIES
adsf
builder
coderay
fssm
guard-nanoc
html-proofer
kramdown (~> 0.13.2)
mime-types (~> 1.16)
nanoc (~> 3.7)
nokogiri (~> 1.6.0)
rake (~> 0.9.2)
rouge (~> 1.4)
thin
yajl-ruby (~> 0.8.2)
8 changes: 8 additions & 0 deletions Guardfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# A sample Guardfile
# More info at https://github.com/guard/guard#readme

guard 'nanoc' do
watch('nanoc.yaml') # Change this to config.yaml if you use the old config file name
watch('Rules')
watch(%r{^(content|layouts|lib|static)/.*$})
end
140 changes: 140 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,140 @@
# developer.github.com

This is a GitHub API resource built with [nanoc][nanoc].

All submissions are welcome. To submit a change, fork this repo, commit your changes, and send us a [pull request](http://help.github.com/send-pull-requests/).

## Setup

Ruby 1.9 is required to build the site.

Get the nanoc gem, plus kramdown for Markdown parsing:

```sh
$ bundle install
```

You can see the available commands with nanoc:

```sh
$ bundle exec nanoc -h
```

Nanoc has [some nice documentation](http://nanoc.ws/docs/tutorial/) to get you started. Though if you're mainly concerned with editing or adding content, you won't need to know much about nanoc.

[nanoc]: http://nanoc.ws/

## Styleguide

Not sure how to structure the docs? Here's what the structure of the
API docs should look like:

# API title

* TOC
{:toc}

## API endpoint title

[VERB] /path/to/endpoint

### Parameters

Name | Type | Description
-----|------|--------------
`name`|`type` | Description.

### Input (request JSON body)

Name | Type | Description
-----|------|--------------
`name`|`type` | Description.

### Response

<%= headers 200, :pagination => default_pagination_rels, 'X-Custom-Header' => "value" %>
<%= json :resource_name %>

**Note**: We're using [Kramdown Markdown extensions](http://kramdown.gettalong.org/syntax.html), such as definition lists.

### JSON Responses

We specify the JSON responses in Ruby so that we don't have to write
them by hand all over the docs. You can render the JSON for a resource
like this:

```erb
<%= json :issue %>
```

This looks up `GitHub::Resources::ISSUE` in `lib/resources.rb`.

Some actions return arrays. You can modify the JSON by passing a block:

```erb
<%= json(:issue) { |hash| [hash] } %>
```

### Terminal blocks

You can specify terminal blocks with `pre.terminal` elements. (It'd be nice if
Markdown could do this more cleanly.)

```html
<pre class="terminal">
$ curl foobar
....
</pre>
```

This is not a `curl` tutorial though. Not every API call needs
to show how to access it with `curl`.

## Development

Nanoc compiles the site into static files living in `./output`. It's
smart enough not to try to compile unchanged files:

```sh
$ bundle exec nanoc compile
Loading site data...
Compiling site...
identical [0.00s] output/css/960.css
identical [0.00s] output/css/pygments.css
identical [0.00s] output/css/reset.css
identical [0.00s] output/css/styles.css
identical [0.00s] output/css/uv_active4d.css
update [0.28s] output/index.html
update [1.31s] output/v3/gists/comments/index.html
update [1.92s] output/v3/gists/index.html
update [0.25s] output/v3/issues/comments/index.html
update [0.99s] output/v3/issues/labels/index.html
update [0.49s] output/v3/issues/milestones/index.html
update [0.50s] output/v3/issues/index.html
update [0.05s] output/v3/index.html

Site compiled in 5.81s.
```

You can setup whatever you want to view the files. If using the adsf
gem (as listed in the Gemfile), you can start Webrick:

```sh
$ bundle exec nanoc view
$ open http://localhost:3000
```

Compilation times got you down? Use `autocompile`!

```sh
$ bundle exec nanoc autocompile
```

This starts a web server too, so there's no need to run `nanoc view`.
One thing: remember to add trailing slashes to all nanoc links!

## Deploy

```sh
$ bundle exec rake publish
```
83 changes: 83 additions & 0 deletions Rakefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,83 @@
require 'nanoc3/tasks'
require 'tmpdir'

task :default => [:test]

desc "Compile the site"
task :compile do
`nanoc compile`
end

desc "Test the output"
task :test => [:clean, :remove_output_dir, :compile] do
require 'html/proofer'
HTML::Proofer.new("./output").run
end

desc "Remove the output dir"
task :remove_output_dir do
FileUtils.rm_r('output') if File.exist?('output')
end

# Prompt user for a commit message; default: P U B L I S H :emoji:
def commit_message(no_commit_msg = false)
publish_emojis = [':boom:', ':rocket:', ':metal:', ':bulb:', ':zap:',
':sailboat:', ':gift:', ':ship:', ':shipit:', ':sparkles:', ':rainbow:']
default_message = "P U B L I S H #{publish_emojis.sample}"

unless no_commit_msg
print "Enter a commit message (default: '#{default_message}'): "
STDOUT.flush
mesg = STDIN.gets.chomp.strip
end

mesg = default_message if mesg.nil? || mesg == ''
mesg.gsub(/'/, '') # Allow this to be handed off via -m '#{message}'
end

desc "Publish to http://developer.github.com"
task :publish, [:no_commit_msg] => [:clean, :remove_output_dir] do |t, args|
mesg = commit_message(args[:no_commit_msg])
sh "nanoc compile"

# save precious files
if ENV['IS_HEROKU']
`git checkout origin/gh-pages`
else
`git checkout gh-pages`
end
tmpdir = Dir.mktmpdir
FileUtils.cp_r("enterprise", tmpdir)
FileUtils.cp("robots.txt", tmpdir)
`git checkout master`

ENV['GIT_DIR'] = File.expand_path(`git rev-parse --git-dir`.chomp)
ENV['RUBYOPT'] = nil
old_sha = `git rev-parse refs/remotes/origin/gh-pages`.chomp
Dir.chdir('output') do
ENV['GIT_INDEX_FILE'] = gif = '/tmp/dev.gh.i'
ENV['GIT_WORK_TREE'] = Dir.pwd
File.unlink(gif) if File.file?(gif)
# restore precious files
FileUtils.cp_r("#{tmpdir}/enterprise", ".")
FileUtils.cp("#{tmpdir}/robots.txt", ".")
FileUtils.rm_rf(tmpdir) if File.exists?(tmpdir)
`git add -A`
tsha = `git write-tree`.strip
puts "Created tree #{tsha}"
# Heroku runs git@1.7, we don't have the luxury of -m
if ENV['IS_HEROKU']
`echo #{mesg} > changelog`
csha = `git commit-tree #{tsha} -p #{old_sha} < changelog`.strip
elsif old_sha.size == 40
csha = `git commit-tree #{tsha} -p #{old_sha} -m '#{mesg}'`.strip
else
csha = `git commit-tree #{tsha} -m '#{mesg}'`.strip
end
puts "Created commit #{csha}"
puts `git show #{csha} --stat`
puts "Updating gh-pages from #{old_sha}"
`git update-ref refs/heads/gh-pages #{csha}`
`git push origin gh-pages`
end
end
Loading