-
Notifications
You must be signed in to change notification settings - Fork 511
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
One sentence per line? #1132
Comments
I'd personally prefer to each paragraph on its own line. Most editors can visually line break (making reading the raw markdown easy). |
That makes diffs quite bad though -- diff is line-based, which aligns well with one-sentence-per-line IMO. |
That's true though I think GitHub's diff can handle intra-line diffs a bit better than plain |
Yeah tooling would be nice, but I'm not aware of any. |
I posted a (duplicate) issue in which I further discuss (rehash?) the benefits of this approach. I think it even tends to improve writing quality. |
#1241 was closed as a duplicate of this one. If we also close this one there's none left to track this. ;) |
this is my opinion as well - unless we have some way to enforce it, we'll use an enormous amount of energy to switch over the existing docs only to have new PRs not follow the format (and either have another round of back and forth to fix it, or it just won't get fixed because the reviewer won't think about it). Tooling would greatly reduce the effort for both the initial switch and continued maintenance. FWIW I would expect this to be fairly simple to write ourselves - the hard part is distinguishing line endings from abbreviations ( |
am working on the tool... it is so far not so clever, but I could already start using to migrate things gradually |
In the meantime, can we just disable the current checks? Reviewers can complain if a line gets too unwieldy. The current checks make it really annoying to write the documentation, which I consider to be really bad. Having a tool to enforce semantic line breaks sounds ok, but I think having no tool is way better than the current bad tool. |
We've been waiting over a year for the tool to arrive. It seems foolish to wait indefinitely. @tshepang are you still working on that tool? If not, we should invite others to finish it up. |
I have deleted the checks in #1952, btw. |
@saethlin I have intention to finish the tool, but I hope that does not discourage anyone to build something finished... my approach is bad anyways, and am very slow. |
The docs currently use a fixed-width style for formatting the source, so even small changes (adding a single word somewhere) can lead to large diffs. This also amplifies conflicts.
It might be worth to consider using one-sentence-per-line or one-logical-unit-per-line (allowing line-breaks at reasonable places even inside sentences). I have made good experience with that formatting. The change doesn't have to happen all at once; when existing text is changed one could encourage also changing it to the new format.
Cc @jyn514
The text was updated successfully, but these errors were encountered: