Skip to content

Commit

Permalink
Add API rules link and revamp the docs introduction.
Browse files Browse the repository at this point in the history
  • Loading branch information
chromakode committed Mar 26, 2012
1 parent 1462cd3 commit b391fd5
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
10 changes: 9 additions & 1 deletion r2/r2/public/static/css/reddit.css
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
4 changes: 2 additions & 2 deletions r2/r2/templates/apihelp.html
Original file line number Diff line number Diff line change
Expand Up @@ -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">
Expand Down

0 comments on commit b391fd5

Please sign in to comment.