Add API rules link and revamp the docs introduction.

This commit is contained in:
Max Goodman
2012-03-26 12:17:27 -07:00
parent 1462cd3ae2
commit b391fd5dd5
2 changed files with 11 additions and 3 deletions

View File

@@ -5190,10 +5190,18 @@ tr.gold-accent + tr > td {
position: relative;
border: 2px solid #ccc;
border-radius: 12px;
padding: 14px;
margin-bottom: -1em;
}
.api-help .contents .introduction p {
margin: 1em 14px;
}
.api-help .contents .introduction strong {
color: #222;
font-weight: bold;
}
.api-help .introduction:before,
.api-help .introduction:after {
position: absolute;

View File

@@ -41,9 +41,9 @@
<div class="contents">
<div class="section introduction">
<p>This is automatically-generated documentation for the reddit API. It's gathered from docstrings and annotations in the code.</p>
<br/>
<p>This is automatically-generated documentation for the reddit API.</p>
<p>The reddit API and code are&#32;<a href="/code">open source</a>. Found a mistake or interested in helping us improve? Have a gander at&#32;<a href="${thing.api_source_url}">api.py</a>&#32;and send us a pull request.</p>
<p><strong>Please take care to respect our&#32;<a href="https://github.com/reddit/reddit/wiki/API">API access rules</a>.</strong></p>
</div>
<div class="section methods">