mirror of
https://github.com/zulip/zulip.git
synced 2025-11-03 21:43:21 +00:00
lib/integrations: Remove Integration.doc_context.
An Integration object doesn't need access to the context dict used to render its doc.md, since the context dict is just passed directly to render_markdown_path.
This commit is contained in:
@@ -61,7 +61,6 @@ class Integration:
|
||||
self.secondary_line_text = secondary_line_text
|
||||
self.legacy = legacy
|
||||
self.doc = doc
|
||||
self.doc_context = None # type: Optional[Dict[Any, Any]]
|
||||
|
||||
for category in categories:
|
||||
if category not in CATEGORIES:
|
||||
@@ -87,10 +86,6 @@ class Integration:
|
||||
# type: () -> bool
|
||||
return True
|
||||
|
||||
def add_doc_context(self, context):
|
||||
# type: (Dict[Any, Any]) -> None
|
||||
self.doc_context = context
|
||||
|
||||
def get_logo_url(self):
|
||||
# type: () -> Optional[str]
|
||||
logo_file_path_svg = str(pathlib.PurePath(
|
||||
|
||||
Reference in New Issue
Block a user