some slight changes to docs

pull/4/head
Blake DeMarcy 2017-05-03 22:22:20 -05:00
parent 416881ad6f
commit b82aba8152
5 changed files with 15 additions and 3 deletions

View File

@ -89,6 +89,7 @@ choice. See [the full error page](errors.md) for details.
<br><br>
# Authorization
------
See also [the Authorization page](authorization.md).
## check_auth
**Arguments:**

View File

@ -192,6 +192,7 @@ choice. See <a href="../errors/">the full error page</a> for details.</p>
<p><br><br></p>
<h1 id="authorization">Authorization</h1>
<hr />
<p>See also <a href="authorization.md">the Authorization page</a>.</p>
<h2 id="check_auth">check_auth</h2>
<p><strong>Arguments:</strong></p>
<ul>

View File

@ -149,5 +149,5 @@ It is fully documented on this site.</p></div>
<!--
MkDocs version : 0.16.3
Build Date UTC : 2017-05-04 02:42:48
Build Date UTC : 2017-05-04 03:22:04
-->

File diff suppressed because one or more lines are too long

View File

@ -102,6 +102,13 @@ choice. See [the full error page](errors.md) for details.
"""
extra = {
"Authorization": "See also [the Authorization page](authorization.md).",
"Users": "",
"Threads & Messages": "",
"Tools": ""
}
endpoints = [
ref for name, ref in API.__dict__.items()
if hasattr(ref, "exposed")
@ -116,6 +123,9 @@ for function in endpoints:
for doctype in sorted(types.keys()):
body += "<br><br>\n# %s\n------\n" % doctype
desc = extra[doctype]
if desc:
body += desc + "\n"
funcs = sorted(types[doctype], key=lambda _: _.__name__)
for f in funcs:
body += "## %s\n\n" % f.__name__