Skip to content

Improve static content documentation #1760

@simon-smart88

Description

@simon-smart88

Currently the only information about how to serve static content is in https://shinylive.io/py/examples/#static-content which is overly complex and not the place I would expect to look. I was trying to add a static image to an app by asking shiny assistant and it had no idea about the requirement to add this which wasted loads of time:

www_dir = Path(__file__).parent / "www"
app = App(app_ui, server, static_assets = www_dir) 

It would be good if this was explained in https://shiny.posit.co/py/docs/ and if ui.img (and maybe ui.tags.iframe) could be included in the https://shiny.posit.co/py/api/ reference guide.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions