diff options
author | Blake DeMarcy <ofunknowndescent@gmail.com> | 2017-05-03 22:22:20 -0500 |
---|---|---|
committer | Blake DeMarcy <ofunknowndescent@gmail.com> | 2017-05-03 22:22:20 -0500 |
commit | b82aba81526b98ae761caaca0e8812341b5f4d61 (patch) | |
tree | efb68e2e11b79c14ae06d528326c037886103026 /mkendpoints.py | |
parent | 416881ad6f0e8136de05fb4cdad930d3fa595b31 (diff) | |
download | bbj-b82aba81526b98ae761caaca0e8812341b5f4d61.tar.gz |
some slight changes to docs
Diffstat (limited to 'mkendpoints.py')
-rw-r--r-- | mkendpoints.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/mkendpoints.py b/mkendpoints.py index 09f3366..8ca5881 100644 --- a/mkendpoints.py +++ b/mkendpoints.py @@ -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__ |