From 0a1ccb3d8953fdbf3efface8def35da111fde2ff Mon Sep 17 00:00:00 2001 From: AcKindle3 Date: Tue, 25 Apr 2023 20:28:23 -0400 Subject: [PATCH] api_url_context: Replace `uri` with `url`. In #23380 we want to change all occurrences of `uri` with `url`. This commit changes the occurrences in a context key `api_uri_context` and a function name `add_api_uri_context`. --- templates/zerver/documentation_main.html | 6 +++--- zerver/tests/test_docs.py | 8 ++++---- zerver/views/documentation.py | 18 +++++++++--------- 3 files changed, 16 insertions(+), 16 deletions(-) diff --git a/templates/zerver/documentation_main.html b/templates/zerver/documentation_main.html index 98336a695e..33f455342b 100644 --- a/templates/zerver/documentation_main.html +++ b/templates/zerver/documentation_main.html @@ -20,7 +20,7 @@ {% elif page_is_help_center %} {{ render_markdown_path(sidebar_index) }} {% else %} - {{ render_markdown_path(sidebar_index, context=api_uri_context) }} + {{ render_markdown_path(sidebar_index, context=api_url_context) }} {% endif %} {% if not page_is_policy_center %} @@ -38,9 +38,9 @@ {% if page_is_policy_center %} {{ render_markdown_path(article) }} {% elif page_is_help_center %} - {{ render_markdown_path(article, context=api_uri_context, help_center=True) }} + {{ render_markdown_path(article, context=api_url_context, help_center=True) }} {% else %} - {{ render_markdown_path(article, context=api_uri_context) }} + {{ render_markdown_path(article, context=api_url_context) }} {% endif %}