Rewrite the Manual #779
Labels
No labels
Affects/CppNix
Affects/Nightly
Affects/Only nightly
Affects/Stable
Area/build-packaging
Area/cli
Area/evaluator
Area/fetching
Area/flakes
Area/language
Area/lix ci
Area/nix-eval-jobs
Area/profiles
Area/protocol
Area/releng
Area/remote-builds
Area/repl
Area/repl/debugger
Area/store
bug
Context
contributors
Context
drive-by
Context
maintainers
Context
RFD
crash 💥
Cross Compilation
devx
docs
Downstream Dependents
E/easy
E/hard
E/help wanted
E/reproducible
E/requires rearchitecture
imported
Language/Bash
Language/C++
Language/NixLang
Language/Python
Language/Rust
Needs Langver
OS/Linux
OS/macOS
performance
regression
release-blocker
stability
Status
blocked
Status
invalid
Status
postponed
Status
wontfix
testing
testing/flakey
Topic/Large Scale Installations
ux
No milestone
No project
No assignees
3 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: lix-project/lix#779
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem Statement
Lix manual functions alright as a reference point. It is nowhere near perfect for that, as there are many cursed intricacies that you'll only learn in code or in conversations, but it at least does its basic job.
Lix manual as generic documentation, though? It is very, very bad. A very large amount of issues are inherited from CppNix manual, and a number of issues Lix manual more or less fixed - for example, installation chapters are just deferred to the installer! But the overall situation is dire: Lix manual does not help the user actually use the software, at all.
This manual problem stems from the culture around Nix Project, where Nix/Nixpkgs/NixOS manuals were separate manuals with strongly defined boundaries. They were extremely isolated (perhaps mirroring the projects themselves, to a degree), and efforts to have them do more cross-references were unsuccessful.
We are in a unique position where we actually own Lix manual, so we can do it justice and make it a great piece of user-facing documentation.
Scope of Work
nix-shell
-based "Quick Start". We could also drop "Quick Start" entirely, like Rust Book does.Additional context
Sadly, I don't think it is possible to improve the manual perfectly iteratively, unless we make gigantic CLs/divide them using "topics". Its structure is very unfortunate.
We also really want #742 first.
FWIW it still probably is proper for Lix's manual to not try to be more things than it actually has resources to be. However, it should talk more about how Lix is only made particularly useful in the context of nixpkgs.
Agreed, see also: https://archive.fosdem.org/2024/schedule/event/fosdem-2024-3107-units-of-composition-recipes-overlays-and-packages/
We could take some terminology from that, and discuss synonyms.
Release notes should be in the manual because they have a nasty habit of being the complete documentation for features and are really important to catch in search queries. Contributing should plausibly be moved.
Another thing that has been annoying me with the manual is that mdbook does not prioritize page titles in search. I wonder if we can convince it to behave better in this regard.
This can be achieved with the boost-title option. I'm currently on vacation, but can send the change in about a week, if not picked up by somefew in the meantime.
(I'll also create a seperate issue and stop hijacking this one)
Right. My current idea is to defer things like "learn NixLang" and "DIY packaging" to https://nix.dev with links in the manual. It'll take some effort to make a good segue, but I'm confident it can be done and is a good idea.
Geh, you're right. Perhaps some wizard can figure out how to fold that section (and command reference) by default, cos the amount of screen space taken is very uncomfortable.
I think it should, yeah. We currently have contributing info spread out over git repo, Wiki, and manual. I don't know the right distrubution yet, but I think cutting the manual is a good idea.
See CL#2924 for the first baby steps.
Opened an issue about search being useless.