zulip/zerver
Tim Abbott 9c3f38a564 docs: Automatically construct OpenAPI metadata for help center.
This is somewhat hacky, in that in order to do what we're doing, we
need to parse the HTML of the rendered page to extract the first
paragraph to include in the open graph description field.  But
BeautifulSoup does a good job of it.

This carries a nontrivial performance penalty for loading these pages,
but overall /help/ is a low-traffic site compared to the main app, so
it doesn't matter much.

(As a sidenote, it wouldn't be a bad idea to cache this stuff).

There's lots of things we can improve in this, largely through editing
the articles, but we can deal with that over time.

Thanks to Rishi for writing all the tests.
2018-12-19 10:18:20 -08:00
..
data_import slack import: Import long-inactive users as long-term idle. 2018-12-16 18:52:20 -08:00
lib settings: Add support for customizing the top-left logo. 2018-12-18 12:44:52 -08:00
management management: Fix incorrect create_user docsting on ToS. 2018-12-16 22:23:35 -08:00
migrations auth: Add support for Azure Active Directory authentication. 2018-12-18 16:39:03 -08:00
openapi settings: Add support for customizing the top-left logo. 2018-12-18 12:44:52 -08:00
templatetags api docs: Rename webhook-walkthrough to incoming-webhooks-walkthrough. 2018-10-16 21:07:00 -07:00
tests docs: Automatically construct OpenAPI metadata for help center. 2018-12-19 10:18:20 -08:00
tornado push: Include type in add-push-notification events. 2018-12-15 13:58:52 -08:00
views docs: Automatically construct OpenAPI metadata for help center. 2018-12-19 10:18:20 -08:00
webhooks webhooks/gitlab: Add support for confidential issues and notes. 2018-12-18 14:37:44 -08:00
worker send_email: Extract handle_email_format_changes and use. 2018-12-04 16:08:18 -08:00
__init__.py
apps.py zerver: Use Python 3 syntax for typing. 2017-11-28 16:49:36 -08:00
context_processors.py context_processors: Automated oauth backend enabled logic. 2018-12-18 16:23:21 -08:00
decorator.py report: Allow error-reporting views from unauthed users. 2018-12-16 15:44:48 -08:00
filters.py error reports: Ensure we filter API keys from query strings. 2018-10-19 15:03:14 -07:00
forms.py i18n: Use the recipient's language when sending outgoing emails. 2018-12-17 09:49:36 -08:00
logging_handlers.py bugdown: Improve exception handler for BugdownRenderingException. 2018-07-26 09:27:55 -07:00
middleware.py docs: Automatically construct OpenAPI metadata for help center. 2018-12-19 10:18:20 -08:00
models.py auth: Add support for Azure Active Directory authentication. 2018-12-18 16:39:03 -08:00
signals.py emails: Simplify new_login device info section. 2018-12-19 09:21:09 -08:00
static_header.txt