diff --git a/static/styles/portico/portico.css b/static/styles/portico/portico.css index a55f015522..f1154e58f5 100644 --- a/static/styles/portico/portico.css +++ b/static/styles/portico/portico.css @@ -1693,6 +1693,12 @@ label.label-title { } } + .api-field-type { + text-transform: lowercase; + font-weight: 600; + font-size: 14px; + } + .api-argument-example-label { font-style: italic; } @@ -1717,16 +1723,9 @@ label.label-title { font-size: 12px; color: hsl(0, 50%, 60%); } - - .api-argument-datatype { - text-transform: lowercase; - font-weight: 600; - font-size: 14px; - color: hsl(176, 46.4%, 41%); - } } -.api-response-datatype { +.api-field-type { color: hsl(176, 46.4%, 41%); } diff --git a/zerver/lib/markdown/api_arguments_table_generator.py b/zerver/lib/markdown/api_arguments_table_generator.py index c9a423f2c6..d186debab9 100644 --- a/zerver/lib/markdown/api_arguments_table_generator.py +++ b/zerver/lib/markdown/api_arguments_table_generator.py @@ -92,7 +92,7 @@ class APIArgumentsTablePreprocessor(Preprocessor): table = [] argument_template = """
-

{argument} {type} {required} {deprecated}

+

{argument} {type} {required} {deprecated}

Example: {example}
diff --git a/zerver/lib/markdown/api_return_values_table_generator.py b/zerver/lib/markdown/api_return_values_table_generator.py index 7005db3a9e..6b6d1191c0 100644 --- a/zerver/lib/markdown/api_return_values_table_generator.py +++ b/zerver/lib/markdown/api_return_values_table_generator.py @@ -80,8 +80,8 @@ class APIReturnValuesTablePreprocessor(Preprocessor): if len(arr) == 1 or '\n' in arr[0]: return (spacing * " ") + "* " + description (key_name, key_description) = arr - return (spacing * " ") + "* " + key_name + ": " + '' + data_type + " " + key_description - return (spacing * " ") + "* `" + return_value + "`: " + '' + data_type + " " + description + return (spacing * " ") + "* " + key_name + ": " + '' + data_type + " " + key_description + return (spacing * " ") + "* `" + return_value + "`: " + '' + data_type + " " + description def render_table(self, return_values: Dict[str, Any], spacing: int) -> List[str]: IGNORE = ["result", "msg"]