stylix: honour recent docs to doc renames#1493
Conversation
Note that "Documentation" is itself both a singular and plural noun. For whatever reason, "documentation" can be plural but "doc" cannot, so when shortened it gets an "s" to indicate it being a plural. 😁 We have standardised on
Note that I can see a counter-argument, that you are in-fact serving the package (named "doc") as a website. But this feels off to me, which is why I didn't change it in #1407.
IMO this is fine, assuming Note that even without any manual deprecation, the error produced by nix when an attr is missing is fairly helpful, it usually even suggests fixes for potential typos: nix-repl> { doc = null; }.docs
error: attribute 'docs' missing
at «string»:1:1:
1| { doc = null; }.docs
| ^
Did you mean doc? |
e8049ba to
cd87b54
Compare
ff5a5cf to
888a810
Compare
Thanks for the enlightenment, @MattSturgeon!
I see your point. My way of thinking about it is more in the lines of “serve the documentation this project might have”; I’m not concerned with how many pieces the documentation might have. Be one or two hundred, it feels the same to me at this level of abstraction. But that’s just the way I think, I won’t pursue this any further. Thanks again for the detailed explanation.
Ah, I hadn’t thought of that. But interesting nonetheless.
Thanks for the thorough analysis, very much appreciated! Since @danth gave a thumbs-up to your comment, I went ahead and kept the change in. BTW, I’m having so much fun being here. <3 |
MattSturgeon
left a comment
There was a problem hiding this comment.
Couple issues with the rebase, otherwise good
Ouch. Apologies! Fixing it now… |
Co-authored-by: Daniel Thwaites <danth@danth.me> Co-authored-by: Matt Sturgeon <matt@sturgeon.me.uk>
0c7d25f to
9cbb070
Compare
|
And sorry, I should have inspected the commit after the first (failed) rebase, and I would have noticed the spurious changes. |
MattSturgeon
left a comment
There was a problem hiding this comment.
And sorry, I should have inspected the commit after the first (failed) rebase, and I would have noticed the spurious changes.
Won’t happen again.
Don't worry it's easily done 😁
|
Successfully created backport PR for |
Link: #1493 Co-authored-by: Daniel Thwaites <danth@danth.me> Reviewed-by: Daniel Thwaites <danth@danth.me> Co-authored-by: Matt Sturgeon <matt@sturgeon.me.uk> Reviewed-by: Matt Sturgeon <matt@sturgeon.me.uk> Reviewed-by: awwpotato <awwpotato@voidq.com> Reviewed-by: NAHO <90870942+trueNAHO@users.noreply.github.com> (cherry picked from commit 8c1421a)
Link: #1493 Co-authored-by: Daniel Thwaites <danth@danth.me> Reviewed-by: Daniel Thwaites <danth@danth.me> Co-authored-by: Matt Sturgeon <matt@sturgeon.me.uk> Reviewed-by: Matt Sturgeon <matt@sturgeon.me.uk> Reviewed-by: awwpotato <awwpotato@voidq.com> Reviewed-by: NAHO <90870942+trueNAHO@users.noreply.github.com> (cherry picked from commit 8c1421a)
Starting with #1272, and followed by #1407, we are standardizing on
doc(as in documentation), rather thandocs(as in documents), following the current style of nixpkgs.I’ve updated most remaining references to
docsto reflect that, with the notable exclusion ofserve-docs,which I’d like to rename to.serve-docin a follow-up PRAlso note that I’ve extended the rename to
nix build .#palette-generator.passthru.docs→nix build .#palette-generator.passthru.doc, without adding a deprecated alias, as was so diligently done by @MattSturgeon with the global.#docs→.#docrename. If this is not acceptable, I’ll drop this change from this PR and add it to a subsequent, more proper one.Things done
Notify maintainers
@awwpotato @danth @MattSturgeon @mightyiam @trueNAHO