The discussion revolves around adding an option to prevent truncation of GitHub/GitLab oneboxes, particularly for documentation like troubleshooting guides. erlend_sh argues that allowing full display of such content would improve searchability and help match users with relevant external docs, citing examples from npm and their own team. codinghorror opposes the idea, stating that expanding oneboxes to infinite lines is unhelpful and that duplicating content, even partially, is a net negative. sam suggests that while unlimited expansion is risky, a controlled way to reduce truncation—perhaps via a hint or tag—might be feasible. The debate centers on balancing usability and information integrity.
If there was a way to avoid content truncation on a per-link basis we could be posting links to our GitHub-specific documentation and make it searchable here on Meta, e.g:
Why would we want this? The only way it would be searchable here is if it was duplicated, which isn’t particularly helpful.
I find the “helpful” feature of onebox expanding the first ~30 lines of a github readme file to be quite the opposite, 75% of the time.. I can’t imagine why I would ever want it to expand to {infinity} lines.
It makes it so that our duplicate post checker can match users up with external docs such as this one.
For example the NPM community also has a use for this. They have a TROUBLESHOOTING.md file that would ideally show up in our similar posts search when users are writing support topics.
Unlimited is hugely risky, but maybe for a feature that adds a hint to truncate less … its is very hard to wrangle, only way I can think of is by abusing #
I’m not entirely clear how this is useful to anyone. The clickable link to the troubleshooting doc should appear, so there is one standard place for that information to be. Duplicating it in some weird onebox-y partial way is a net negative, duplicating it entirely is massively negative.
They could include a TL;DR summary at the top if they have an abbreviated version.