aboutsummaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorGravatar Johannes Christ <[email protected]>2018-06-06 18:07:13 +0200
committerGravatar Gareth Coles <[email protected]>2018-06-06 17:07:13 +0100
commiteef42212cfeb82b55664a6c50159cfb19773bce7 (patch)
tree4dec70eafe41fc41fd1104f91ac66afbe2265e11 /scripts
parentFetch pep (#77) (diff)
Add documentation lookup support. (#53)
* Allow users to query documentation link. * Show symbol signature and excerpt from docs. * Use `•` character for showing list items. * Trim whitespace after two newlines. * Allow users to query documentation link. * Show symbol signature and excerpt from docs. * Use `•` character for showing list items. * Trim whitespace after two newlines. * Add docstrings, simplify command. * Use a cache for getting doc embeds. * Suppress `urllib3` log messages below WARNING. * Use shared `http_session` on the bot. * Comment `fetch_initial_inventory_data`, unpack URL directly. * Address various review comments. - use `str.format` for generating the stdlib documentation URLs - move `convert_code` comment to a docstring - fix up python syntax parsing by not using a `*` - send red error embeds when documentation could not be found * Use `lxml` for HTML parsing. * Pin yarl to 1.1.1 * Use the website's API as package documentation metadata database. * Fetch inventories concurrently. * Use red error embed & error title on error. * Add examples to command docstrings. * Use typing notifications instead of edits. * Flush cache on inventory refresh. * Address @martmists' review comments. * Use `BadArgument` instead of custom exception class. * Move universal converters to `bot/converters.py`.
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions