Comments (6)
@eric-schneider I'm trying to find other examples of this in the wild to get some inspiration. So far I found the OpenAI Cookbook pages to have a somewhat similar design problem of showing a code block that is the "instructed input" with another code block as the ideal results. I feel like this is really specific to command line tools so I'm trying to find well designed docs sites on them. The issue I'm seeing is documentation for command line tools is typically --help
... not some fancy schmancy website with code blocks 😆
from docs-ui.
Really, in ANY command of any type, it is really helpful to users to see what they should expect. Not just for command line tools. It shorts the number of support messages/calls/whatever. I don't happen to have any results at my fingertips, frankly. I kind of like to think that this is a super-cool innovation that we did. 🤣
from docs-ui.
I spoke with @KimberlyFields this morning, and she said that we should at least update the collapsible styles to align with the original spec.
However, we're not totally satisfied with the original design. We don't think they stand out enough and we're worried that users won't see them as something they can/should interact with.
Kim pointed out that Stripe docs use a button style for certain collapsible content. We need to consider that block titles are customizable by the writer and thus will have varying length (the button would have to scale well). However, a button style might work well for collapsible "Results".
from docs-ui.
@djsauble @polandll if you happen to know of any other docs sites that do a good job of showing expected command output, feel free to post them here.
from docs-ui.
Tagging on to this: It appears the collapsible block titles are a smaller font size than the default font size.
This makes them rather small and diminishes them. It also looks kind of silly because the text inside is the normal size.
The screenshots above seem to be the same font size everywhere, so I don't know if something got switched up at some point unintentionally.
@eric-schneider / @colegoldsmith Should I make a new issue about the font size?
Edit: Update that I noticed the tiny font only happens to collapsibles inside tabs.
It also seems like it turns bold when it's inside a tab.
from docs-ui.
@aimurphy Thanks for adding updated screenshots. The CSS indeed got updated at some point.
Also, no need to create a new issue. This issue should be used to capture all feedback related to the visual styling of the collapsible block, including title. (Though, the CSS for the title may be shared across other block elements, which we should pay attention to as well.)
from docs-ui.
Related Issues (20)
- Improve in-page ToC HOT 3
- Link to glossary does not contain site path
- Add component title to left nav HOT 2
- Ensure that page titles in social previews use same duplicate name logic as meta titles
- Update favicon
- Site search enhancements
- Add inline image support to `svg` macro; attempt feature parity with built-in `image:` and `image::` macros
- hrefs in section titles are rendered in the wrong location
- Docs feedback - add an option to include an email address
- Add a pill or other visual cue to help people confirm they are in the right docs HOT 1
- Admonition colors and icons
- Linked code font is sometimes indistinguishable from non-link code font except on hover
- Awkward text wrapping in version picker
- Apply <strong> color to material-icons class
- Text in callout lists is wrong color
- Left nav doesn't auto-scroll when the number of nav entries overflows the viewable nav area HOT 1
- Don't break/wrap in the middle of a word HOT 3
- Breadcrumb not honoring navigation hierarchy
- Link text isn't auto-generated if the xref has an anchor HOT 1
- Left nav sometimes seems very wide or awkwardly spaced
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from docs-ui.