great-ai/great_ai/deploy/routes/dashboard/get_description.py
Andras Schmelczer c55eba2077
All checks were successful
Publish documentation / publish (push) Successful in 51s
Check / Test on Python 3.10 (push) Successful in 1m1s
Check / Lint, format & type checks (push) Successful in 1m9s
Check / Test on Python 3.11 (push) Successful in 51s
Check / Test on Python 3.12 (push) Successful in 58s
Check / Test on Python 3.13 (push) Successful in 55s
Add max deps and bump old ones
2026-06-06 22:29:16 +01:00

35 lines
926 B
Python

from dash import dcc, html
from ....helper import snake_case_to_text, strip_lines
def get_description(
function_name: str, version: str, function_docs: str, accent_color: str
) -> html.Div:
return html.Div(
[
html.H1(
[
f"{snake_case_to_text(function_name)} - dashboard",
html.Span(version, className="version-tag"),
],
style={"color": accent_color},
),
dcc.Markdown(
strip_lines(
f"""
> View the live data of your deployment here.
## Using the API
You can find the available endpoints at [/docs](/docs).
## Details
{function_docs}
"""
),
className="description",
),
]
)