Skip to content

Commit aa0a970

Browse files
committed
Merge master
2 parents 7f91fae + b024476 commit aa0a970

4 files changed

Lines changed: 18 additions & 14 deletions

File tree

content/changes/2013-10-18-new-code-search-requirements.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,17 +18,17 @@ The value must include [at least one user, organization, or repository][search-b
1818

1919
For example, with this query, we're searching for code from [@twitter][] or [@facebook][] that uses an MIT License:
2020

21-
MIT License @twitter @facebook
21+
MIT License user:twitter user:facebook
2222

2323
And here, we're looking for uses of the underscore library in [@mozilla's BrowserQuest][@mozilla/BrowserQuest] repository:
2424

25-
underscore language:js @mozilla/BrowserQuest
25+
underscore language:js repo:mozilla/BrowserQuest
2626

2727
To perform these queries via the API, we would use the following URLs (respectively):
2828

29-
https://api.github.com/search/code?q=MIT+License+%40twitter+%40facebook
29+
https://api.github.com/search/code?q=MIT+License+user%3Atwitter+user%3Afacebook
3030

31-
https://api.github.com/search/code?q=underscore+language%3Ajs+%40mozilla%2FBrowserQuest
31+
https://api.github.com/search/code?q=underscore+language%3Ajs+repo%3Amozilla%2FBrowserQuest
3232

3333
All the various [code search qualifiers][code-search-qualifiers] are still available to you.
3434
A [user, organization, or repository qualifier][search-by-user-org-repo] is now required.

content/v3/oauth.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ and Client Secret. The Client Secret should not be shared.
2020

2121
## Web Application Flow
2222

23-
This is a description of the OAuth flow from 3rd party web sites.
23+
This is a description of the OAuth2 flow from 3rd party web sites.
2424

2525
### 1. Redirect users to request GitHub access
2626

content/v3/search.md

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -140,11 +140,11 @@ Suppose you want to find the definition of the `addClass` function inside
140140
[jQuery](https://github.com/jquery/jquery). Your query would look something like
141141
this:
142142

143-
https://api.github.com/search/code?q=addClass+in:file+language:js+@jquery/jquery
143+
https://api.github.com/search/code?q=addClass+in:file+language:js+repo:jquery/jquery
144144

145145
Here, we're searching for the keyword `addClass` within a file's contents. We're
146146
making sure that we're only looking in files where the language is JavaScript.
147-
And we're scoping the search to the `@jquery/jquery` repository.
147+
And we're scoping the search to the `repo:jquery/jquery` repository.
148148

149149
<%= headers 200 %>
150150
<%= json(:code_search_v3_results) %>
@@ -158,7 +158,7 @@ media type in your Accept header. For example, via curl, the above query would
158158
look like this:
159159

160160
curl -H 'Accept: application/vnd.github.v3.text-match+json' \
161-
https://api.github.com/search/code?q=addClass+in:file+language:js+@jquery/jquery
161+
https://api.github.com/search/code?q=addClass+in:file+language:js+repo:jquery/jquery
162162

163163
This produces the same JSON payload as above, with an extra key called
164164
`text_matches`, an array of objects. These objects provide information such as
@@ -199,11 +199,10 @@ The `q` search term can also contain any combination of the supported issue sear
199199
* [`mentions`](https://help.github.com/articles/searching-issues#mentions)
200200
Finds issues that mention a certain user.
201201
* [`commenter`](https://help.github.com/articles/searching-issues#commenter)
202-
Finds issues with comments by a certain user.
202+
Finds issues that a certain user commented on.
203203
* [`involves`](https://help.github.com/articles/searching-issues#involves)
204-
Finds issues with involving a certain user. This qualifier finds issues that were
205-
either created by a certain user, assigned to that user, mention that user,
206-
or were commented on by that user.
204+
Finds issues that were either created by a certain user, assigned to that
205+
user, mention that user, or were commented on by that user.
207206
* [`state`](https://help.github.com/articles/searching-issues#state)
208207
Filter issues based on whether they're open or closed.
209208
* [`labels`](https://help.github.com/articles/searching-issues#labels)

static/shared/css/documentation.css

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ a img {
196196
background-color: #297fc7;
197197
color: #fff;
198198
font-size: 16px;
199-
padding: 15px 10px;
199+
padding: 15px;
200200
border-radius: 5px;
201201
}
202202

@@ -208,7 +208,7 @@ a img {
208208
.button-secondary {
209209
background-color: #738797;
210210
font-size: 15px;
211-
padding: 11px 10px;
211+
padding: 12px;
212212
-webkit-backface-visibility: hidden;
213213
}
214214

@@ -895,6 +895,11 @@ p code {
895895

896896
#markdown-toc li a {
897897
color: #333;
898+
text-decoration: underline;
899+
}
900+
901+
#markdown-toc li a:hover {
902+
color: #327fc7;
898903
}
899904

900905
body.api .content table {

0 commit comments

Comments
 (0)