-
-
Notifications
You must be signed in to change notification settings - Fork 14.1k
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
Port Nix Pills in to a document produced by Nixpkgs #27908
Comments
Is there a standard format for this sort of thing? Where exactly would it go? |
@ixxie I am pretty sure this issue is about making a format for all this. From what Graham said there, it looks like this won't be going in any of the manuals and will be it's own thing. As for where it should go, I think having either a 'Getting Started' or 'Tutorials' section on nixos.org/nix would be fine. Stuff has to be made before we can worry about where to put it though. |
@nixy - I see, I thought it was specifically about Nix Pills. I have been craving a tutorials / cookbook section which is more comprehensive. Perhaps @mbbx6spp and @domenkozar can contribute material from their cookbooks too. |
Regarding format, since the manuals are hierarchical and linear, perhaps a cool thing would be to have CMS style searchable collection of tagged recipes / tutorials ? Then if I searched for, say, "installing unstable packages in stable", I would get all the relevant entries in full and could scroll through them until I find what I need. |
I've started a conversion here: https://github.com/grahamc/nix-pills This project should not get bogged down in a discussion on how NixOS does documentation. This is going to be maintained as a separate document, and linked on the website as something like "read the nix pills."
INSTRUCTIONSWhen starting a new Pill, comment on this issue which one Pills are in https://github.com/grahamc/nix-pills/tree/master/pills I already did 1 and 2 to provide examples on how to "docbookify" most of it :) cc @disassembler @ankhers @moretea How I've built and tested:
Emacs config for a nice docbook experience, if you happen to use emacs: let
pkgs = import <nixpkgs> {};
inherit (pkgs) emacsPackagesNg docbook5 writeText;
schemas = writeText "schemas.xml" ''
<locatingRules xmlns="http://thaiopensource.com/ns/locating-rules/1.0">
<documentElement localName="section" typeId="DocBook"/>
<documentElement localName="chapter" typeId="DocBook"/>
<documentElement localName="article" typeId="DocBook"/>
<documentElement localName="book" typeId="DocBook"/>
<typeId id="DocBook" uri="${docbook5}/xml/rng/docbook/docbookxi.rnc" />
</locatingRules>
'';
in emacsPackagesNg.emacsWithPackages (epkgs: [
(emacsPackagesNg.trivialBuild {
pname = "nix-docbook-mode";
version = "1970-01-01";
src = writeText "default.el" ''
(eval-after-load 'rng-loc
'(add-to-list 'rng-schema-locating-files "${schemas}"))
(global-set-key (kbd "<C-return>") 'nxml-complete)
'';
})
]) Then you can use the keys:
|
Thanks for starting this! I will grab pills 3 and 4 to start. |
Oooh, nice! Thank you @lethalman ! |
I'll grab 5 and 6 for now :) |
I'll take 7. |
Alright so some notes now that I ported the fifth pill:
I'll try and do the next one this week. |
I did start by using Re #5's first section missing a title, that can just be a Great work, everyone! We're really blazing through this list! |
What about |
Yep, a good point to cover. That said: we've got a big job ahead of us, and a lot of new tags in docbook that we could discover throughout. I'm not too worried about getting the semantics perfect on the first pass. |
Another one I was just reminded of is |
There's also lots to mark up on screen listings: e.g. https://github.com/lheckemann/nix-pills/blob/5f5e3093c478a8bb744ec7ae2c02b77a774b7ec4/pills/07-working-derivation.xml#L61-L65 |
Oh jeeze, while all that is probably best, I don't think it is a requirement for merging a PR which is otherwise porting a pill. We can always go back and improve them :P |
@grahamc so instead of |
It depends on what you're actually putting in. You should use |
FWIW I put the screen contents in separate files because of difficulties with whitespace in screens. |
I didn't realise that was possible (and really should have, probably). Good idea! |
I can grab 8 and 9. |
10 and 11 |
Hey everyone, I've been hit by a bad flare-up of my RSI and haven't been able to contribute or review much. I will be back to this soon, but must take a few more days rest to recover. Your work has been incredible and inspiring, thank you so much for making this so fast. Graham |
Get well @grahamc! Remember to squeeze a rubber egg or something. |
I'll take 19 and 18. Get well @grahamc! |
And 17 and 16 as well :) |
I just merged all the outstanding PRs, thank you so much. Eight more to go! WOW. |
Please send future PRs to http://github.com/nixos/nix-pills I've made a hydra jobset: https://hydra.nixos.org/jobset/nix-pills/master I've also made a PR to put the pills on the website: NixOS/nixos-homepage#153 We're in the home stretch. Unfortunately porting a pill is quite typing-heavy, and am not ready to do that yet. |
Got 15 and 14 |
FYI I checked some boxes for things I saw PRs for. |
I'll grab 12 and 13 too. |
We're done 😻 nice work, everyone! Thank you so much! Now to get it on the website :) |
Great job - sorry I couldn't help and thanks to everyone taking part - every improvement to documentation is high appreciated. <3 |
Issue description
@lethalman gave me permission to incorporate the nix pills in to a document produced by nixpkgs and on the website.
This should probably be its own document.
People who have offered to help write docbook after I make a skeleton to work from:
(thank you by the way)
Todo:
The text was updated successfully, but these errors were encountered: