Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs update code markdown #894

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 10 additions & 14 deletions solara/website/pages/documentation/components/output/markdown.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
"""# Markdown"""

import solara
from solara.alias import rv
from solara.website.utils import apidoc


Expand Down Expand Up @@ -39,19 +38,16 @@ def Page():

markdown_text, set_markdown_text = solara.use_state(markdown_initial)
# with solara.GridFixed(columns=2) as main:
with solara.HBox(grow=True) as main:
with solara.VBox():
solara.Markdown("# Input text")
with solara.Padding(2):
with rv.Sheet(elevation=2):
rv.Textarea(v_model=markdown_text, on_v_model=set_markdown_text, rows=30)
with solara.VBox():
solara.Markdown("# Renders like")
with solara.Padding(2):
with rv.Sheet(elevation=2):
solara.Markdown(markdown_text)

return main
with solara.Column():
solara.Markdown("# Input text")
with solara.Padding(2):
with solara.v.Sheet(elevation=2):
solara.v.Textarea(v_model=markdown_text, on_v_model=set_markdown_text, rows=30)
with solara.Column():
solara.Markdown("# Renders like")
with solara.Padding(2):
with solara.v.Sheet(elevation=2):
solara.Markdown(markdown_text)


__doc__ += apidoc(solara.Markdown.f) # type: ignore
Loading