mirror of https://github.com/zulip/zulip.git
documentation: Change open graph metadata for /integrations.
This commit is contained in:
parent
c3adafbee9
commit
6fdd8fb4a1
|
@ -184,6 +184,13 @@ class DocPageTest(ZulipTestCase):
|
||||||
self._test(url, title, doc_html_str=True)
|
self._test(url, title, doc_html_str=True)
|
||||||
self._test(url, description, doc_html_str=True)
|
self._test(url, description, doc_html_str=True)
|
||||||
|
|
||||||
|
# Test integrations page
|
||||||
|
url = '/integrations/'
|
||||||
|
title = '<meta property="og:title" content="Connect the tools you use to Zulip">'
|
||||||
|
description = '<meta property="og:description" content="Zulip comes with over'
|
||||||
|
self._test(url, title, doc_html_str=True)
|
||||||
|
self._test(url, description, doc_html_str=True)
|
||||||
|
|
||||||
def test_email_integration(self) -> None:
|
def test_email_integration(self) -> None:
|
||||||
self._test('/integrations/doc-html/email',
|
self._test('/integrations/doc-html/email',
|
||||||
'support+abcdefg@testserver', doc_html_str=True)
|
'support+abcdefg@testserver', doc_html_str=True)
|
||||||
|
|
|
@ -162,6 +162,10 @@ def add_integrations_open_graph_context(context: Dict[str, Any], request: HttpRe
|
||||||
context['OPEN_GRAPH_TITLE'] = 'Connect your {category} tools to Zulip'.format(category=category)
|
context['OPEN_GRAPH_TITLE'] = 'Connect your {category} tools to Zulip'.format(category=category)
|
||||||
context['OPEN_GRAPH_DESCRIPTION'] = description
|
context['OPEN_GRAPH_DESCRIPTION'] = description
|
||||||
|
|
||||||
|
elif path_name == 'integrations':
|
||||||
|
context['OPEN_GRAPH_TITLE'] = 'Connect the tools you use to Zulip'
|
||||||
|
context['OPEN_GRAPH_DESCRIPTION'] = description
|
||||||
|
|
||||||
class IntegrationView(ApiURLView):
|
class IntegrationView(ApiURLView):
|
||||||
template_name = 'zerver/integrations/index.html'
|
template_name = 'zerver/integrations/index.html'
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue