diff --git a/.changeset/ninety-ravens-care.md b/.changeset/ninety-ravens-care.md new file mode 100644 index 000000000000..cba49dd3ccf2 --- /dev/null +++ b/.changeset/ninety-ravens-care.md @@ -0,0 +1,5 @@ +--- +"website": patch +--- + +feat:Improve styling of parameter tables in the docs diff --git a/js/_website/src/lib/components/EventListeners.svelte b/js/_website/src/lib/components/EventListeners.svelte index 3a0cee2d2cfb..23fe9b7709a4 100644 --- a/js/_website/src/lib/components/EventListeners.svelte +++ b/js/_website/src/lib/components/EventListeners.svelte @@ -1,15 +1,16 @@
- Event listeners allow you to capture and respond to user interactions with - the UI components you've defined in a Gradio Blocks app. When a user - interacts with an element, such as changing a slider value or uploading an - image, a function is called. + Event listeners allow you to respond to user interactions with the UI + components you've defined in a Gradio Blocks app. When a user interacts with + an element, such as changing a slider value or uploading an image, a + function is called.
Parameter | -Description | -
---|---|
-
- {param["name"]}
-
- - {param["annotation"].replace("Sequence[", "list[")} - - - {#if "default" in param} -- default: {param["default"]} - - {:else if !("kwargs" in param)} -required - {/if} - |
-
- {@html style_formatted_text(param["doc"]) || ""} - |
-
$1
"
+ "$1
"
)
.replace(
regex_curly_brackets,
- "$1
"
+ "$1
"
)
.replace(
/\[(.*?)\]\((.*?)\)/g,