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

Commit94a7e9a

Browse files
author
Hubot
committed
Sync changes from upstream repository
1 parentcaa977f commit94a7e9a

File tree

1 file changed

+65
-4
lines changed

1 file changed

+65
-4
lines changed

‎CONTRIBUTING.md

Lines changed: 65 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,68 @@
1-
Found a typo? Have an idea for improving the docs? Feel freetoopen a pull request and we'll get it merged as soon as we can!
1+
#Contributingtothis repository
22

3-
If you have a specific question or issues with the API, please[let us know](https://github.com/contact).
3+
Use this repository to:
44

5-
##Do you work at GitHub?
5+
- Report bugs in the documentation.
6+
- Propose minor updates to content such as typo fixes or clarifications.
67

7-
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.
8+
If you have a specific question or issues with the API, please[let us know by contacing GitHub Support](https://github.com/contact).
9+
10+
##API Reference Style Guide
11+
12+
The API reference refers to most of the content under<https://developer.github.com/v3/>. The format of these pages is consistent:
13+
14+
- Endpoints are introduced with an`h2` that describes the API.
15+
16+
For example:`## List issues for a repository`
17+
18+
- The endpoint itself is wrapped in a codeblock. Capitalize the HTTP verb followed by the endpoint URL.
19+
20+
For example:`GET /repos/:owner/:repo/issues`
21+
22+
- Introduce the parameters with an`h3`.
23+
24+
For example:`### Parameters`.
25+
26+
- Write a table with three columns that describes any parameters. The three column headings are:
27+
-`Name`, which identifies the name of the parameter.
28+
-`Type`, which identifies the type of the parameter.
29+
-`Description`, which describes the parameter. Start the description with the phrase**Required.** if it's required. If it's an optional parameter, end the description by listing the default value, if any.
30+
- Provide the endpoint's response. Responses are stored in the_lib/responses_ folder.
31+
32+
Optionally, you may choose to include an example. Examples should be introduced with an`h3`, and should occur after the parameters are introduced and before the response.
33+
34+
##Platform Guides
35+
36+
Platform Guides refer to the content under<https://developer.github.com/guides/>. They are longer form content that solve a specific problem for the reader. Each guide follows a three-section pattern:
37+
38+
- An introduction stating any minimum requirements, such as installed dependencies, as well as a description of the problem to solve.
39+
- A body that breaks down the solution to the problem with clear guidelines. Include code samples that are preceded with how the sample could be used.
40+
- A conclusion that summarizes that guide and offers next steps for any advanced topics.
41+
42+
Please submit the full sample code for a guide to<https://github.com/github/platform-samples>.
43+
44+
##Versioning content
45+
46+
Our documentation is single sourced and versioned to also apply to GitHub Enterprise users. We use[Liquid tags](https://help.shopify.com/themes/liquid/basics#tags) to include or exclude content for various builds.
47+
48+
Each GitHub Enterprise release represent a "point in time" for the GitHub.com design and feature set. As a result, the APIs available on GitHub Enterprise are also the same APIs available on GitHub.com at the point when the new version was created. For example, if GitHub Enterprise 2.5 was released on December 15th, the APIs available to users are the same as whatever was available on December 15th. 2.5.x patch releases might introduce bug fixes and updates, but will rarely, if ever, contain brand new API endpoints.
49+
50+
When writing API documentation, we filter sections meant just for GitHub.com using Liquid tags, like this:
51+
52+
```
53+
{% if page.version == 'dotcom' %}
54+
55+
You need to use an HTTP client which supports...
56+
57+
{% endif %}
58+
```
59+
60+
Similarly, content for GitHub Enterprise is versioned based on the release number, like this:
61+
62+
```
63+
{% if page.version != 'dotcom' and page.version >= 2.2 %}
64+
65+
If your GitHub Enterprise appliance has LDAP Sync enabled...
66+
67+
{% endif %}
68+
```

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp