zulip/zproject
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
..
jinja2 zproject: Change use of typing.Text to str. 2018-05-10 14:19:49 -07:00
__init__.py Rename Django project to zproject. 2013-08-07 11:04:03 -04:00
backends.py auth: Remove some now-unused auth_backend_enabled helpers. 2018-12-18 16:51:57 -08:00
dev_settings.py auth: Add support for Azure Active Directory authentication. 2018-12-18 16:39:03 -08:00
dev_urls.py casper: Show casper debug files in the dev server. 2018-06-04 09:02:58 -07:00
email_backends.py emails: Don't log emails while running test suite. 2018-10-11 15:12:08 -07:00
legacy_urls.py urls: Move the json/fetch_api_key endpoint to be an API-style route. 2018-01-08 13:15:52 -05:00
prod_settings_template.py auth: Add support for Azure Active Directory authentication. 2018-12-18 16:39:03 -08:00
settings.py docs: Automatically construct OpenAPI metadata for help center. 2018-12-19 10:18:20 -08:00
slack_importer_test_settings.py slack importer: Use standalone database for running tests. 2018-01-07 09:50:27 -05:00
terms.md.template Add TERMS_OF_SERVICE setting. 2016-07-29 20:47:31 -07:00
test_settings.py Avoid double redirects to /login and then to /login/. 2018-12-04 16:12:58 -08:00
urls.py settings: Add support for customizing the top-left logo. 2018-12-18 12:44:52 -08:00
wsgi.py manage.py: Sabotage importing pika.adapters.twisted_connection. 2018-10-17 11:50:08 -07:00