Skip to content

ideas for better rendering for docs of results #48

@erantapaa

Description

@erantapaa

I've been experimenting with different ways of presenting the doc section for returned matches.
Here are some ideas -- feedback is very welcome.

Demo 1 - Adding a More/Less link

In this demo a More/Less link is added to those documentation sections which are too long or multi-line.

Note that in on the max page not all results have a More/Less link - it's only added when needed.

I'm still experimenting with alternative ways of implementing the More/Less control. Perhaps use an icon (like ►) in the left margin of the doc section.

Demo 2 - Trim lines using CSS

This demo just uses CSS to trim the first line of the doc section to the page width. Subsequent paragraphs and pre blocks are hidden. I haven't implemented a toggle control, but I'm sure one could be added.

There are some entries (on the max page) which have more docs to display, e.g. glGetBooleanv) but there is no visual indication that there is more.

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