-
-
Notifications
You must be signed in to change notification settings - Fork 16.5k
doc: fix nixpkgs-manual not being built under index.html
#400816
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
Conversation
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I fail to understand how this is fixing the original issue, care to elaborate a bit more?
So this derivation, in its current state, will not work, as it is generated with If you pass in > If you moved content, add its new location as the first element of the redirects mapping.
> Please update doc/redirects.json or nixos/doc/manual/redirects.json! The solution that was found to this "problem" was to move We have two options here (I went with 1):
Considering |
But why would one use |
After looking at the blames for doc/doc-support/package.nix, I think I understand it more now. This is where it originally was, and actually used It was then hard coded in, in this specific commit. @philiptaron any reason why you decided to rename the manual html file? I'm trying to understand the motivation behind it. |
Nevermind, I read those commits wrong. It seems like it was always The question would be now, do we want it named EDIT: The |
Yeah, I tried to keep everything the same. redirects.json came about after my changes to refactor the derivation(s) so I don't know why they use index.html. I do buy this change. I note that the production site @fricklerhandwerk / @NixOS/documentation-team do you all have any idea about how this derivation makes it way to that site? |
I plan on merging this and seeing what the fallout is. I expect there to be nothing. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's just change mv
to cp
. Not doing a backward compatible change will break building the manual on nixos.org (see https://github.com/NixOS/nixos-homepage/blob/main/flake.nix), or at least require intervention by maintainers and an extra conditional to check for that file's existence that will have to stay around for at least a release.
08b1a27
to
6d918cb
Compare
We should be good now. Let me know if I missed anything. |
6d918cb
to
2eea2f8
Compare
2eea2f8
to
dd8ca0f
Compare
This fixes the anchor links referencing `index.html` while being in `manual.html`.
dd8ca0f
to
266a077
Compare
Done. Please keep in mind that since we copied |
Thanks for your patience, everyone :) |
This fixes the anchor links referencing
index.html
while being inmanual.html
.The derivation is just not functional in it's current state, as it is currently being moved under
manual.html
, which breaks every anchor link. Closes #400785.Things done
nix.conf
? (See Nix manual)sandbox = relaxed
sandbox = true
nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD"
. Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/
)Add a 👍 reaction to pull requests you find important.