Skip to content

Customizable popup widgets #62

Closed
Closed
@mdinger

Description

@mdinger

Is a popup widget that the client could customize doable either as an extension or as a flag or something else for the user? For example, this was presented as an aid to discovering the meaning of specific rust terms. I suggested something here more extensive which definitely seems doable but I'm not sure if it would be possible to integrate into the doc build or not.

What I was thinking was you could use a JSON file which would house the format and structural information of a widget which could popup on click or something like that and the book generator would load it and add the widget as a floating element to the book.

[
  { "Title": "What is?", "children": [
    { "keyword": "as", "text": "primitive casting", "link": "link_to_url" },
    { "keyword": "for", "text": "for loop", "link": "link_to_url" }
  ] },
  { "Location": "top-right" }
]

Now, this might be very unusual for a doc system to want something like this. I'm not sure but it definitely seems like it might be useful for this example, and in particular the Rust docs. I'd be interested to see how well it would work in practice too.

Is this something this as a tool could supply or could support via an extension? Any thoughts or opinions?

[EDIT]

I could create a mockup of what it possibly could look like if that might help too.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions