-
Notifications
You must be signed in to change notification settings - Fork 9
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
ideas for better rendering for docs of results #48
Comments
Hello Erik, nice to have you around here and thanks for your suggestions. But besides, I like @noobymatze @UweSchmidt what do you think? |
Thanks for the suggestions, Erik! Generally I like Demo 3 the best. The main gripe I have with it though, is that it is much harder to hit the expander. Especially on mobile that is. But I think, we could mitigate this by using a touch/click handler on the 'preview- WDYT? |
I also like Demo 3 the best, but even on a laptop the toggle control can be hard to hit. I'm not a UI designer, and I'm still learning a lot about CSS and JS. Basically Demo 1 -- Demo 3 demonstrates how my knowledge of CSS/JS has evolved. Here are some of my thoughts:
I'm open to whatever works and you guys decide on. Perhaps a special layout for mobile? I'm sure this kind of problem has already been solved, so maybe there are ideas we can steal from other sites. The other problem I'm trying to solve is figuring out why the docs sometimes render as HTML source instead of HTML. I'm currently performing an analysis of all of the doc sections in the hoogle index files to validate my assumptions about their structure. |
The links contained in the docs should definitely remain clickable. I'll take a look over the course of next week and play around with it a little for myself. |
Here's another idea: |
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.The text was updated successfully, but these errors were encountered: