Skip to content

Show a tabular view of InventoryItems in rich-MIME environmentsΒ #9

@kellertuer

Description

@kellertuer

When currently β€œbrowsing” the existing names one gets something like

julia> links["ManifoldsBase"]("copyto!")
4-element Vector{DocInventories.InventoryItem}:
 InventoryItem(":jl:method:`Base.copyto!-Tuple{AbstractManifold, Any, Any, Any}`" => "functions/#Base.copyto%21-Tuple%7BAbstractManifold%2C%20Any%2C%20Any%2C%20Any%7D")
 InventoryItem(":jl:method:`Base.copyto!-Tuple{AbstractManifold, Any, Any}`" => "functions/#Base.copyto%21-Tuple%7BAbstractManifold%2C%20Any%2C%20Any%7D")
 InventoryItem(":jl:method:`Base.copyto!-Tuple{AbstractPowerManifold{𝔽, <:AbstractManifold{𝔽}, NestedPowerRepresentation} where 𝔽, Any, Any, Any}`" => "metamanifolds/#Base.copyto%21-Tuple%7BAbstractPowerManifold%7B%F0%9D%94%BD%2C%20%3C%3AAbstractManifold%7B%F0%9D%94%BD%7D%2C%20NestedPowerRepresentation%7D%20where%20%F0%9D%94%BD%2C%20Any%2C%20Any%2C%20Any%7D")
 InventoryItem(":jl:method:`Base.copyto!-Tuple{AbstractPowerManifold{𝔽, <:AbstractManifold{𝔽}, NestedPowerRepresentation} where 𝔽, Any, Any}`" => "metamanifolds/#Base.copyto%21-Tuple%7BAbstractPowerManifold%7B%F0%9D%94%BD%2C%20%3C%3AAbstractManifold%7B%F0%9D%94%BD%7D%2C%20NestedPowerRepresentation%7D%20where%20%F0%9D%94%BD%2C%20Any%2C%20Any%7D")

Would it maybe make sense to

  • have a show method for the Item to be displayed a bit nicer?
  • maybe even having a show method for the vector to display as a table or at least separated by tabs (or also a header)?

I was thinking maybe of something like

Vector{InventoryItem} with the following elements

| Role     |    name    |   URL |
|  :jl:method:` | Base.copyto!-Tuple{AbstractManifold, Any, Any, Any}` | `functions/#Base.copyto%21-Tuple%7BAbstractManifold%2C%20Any%2C%20Any%2C%20Any%7D")` |
...

where my own main problem would probably be the alignment.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions