Skip to content

docs/mdbook: install directly to $out (backport #3366) #3371

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

Merged
merged 1 commit into from
May 23, 2025

Conversation

mergify[bot]
Copy link
Contributor

@mergify mergify bot commented May 23, 2025

This fixes a regression introduced by #3349; that PR serves the docs from the root of the docs derivation, however docs are actually installed to $out/share/doc.

IMO there's no reason to put a MDBook website in share/doc/, so rather than fixing serve-docs' --chdir I've instead changed the docs to install to the root of $out.


This is an automatic backport of pull request #3366 done by [Mergify](https://mergify.com).

(cherry picked from commit e3f4a57)
@MattSturgeon MattSturgeon force-pushed the mergify/bp/nixos-24.11/pr-3366 branch from 813cb7b to ebdf6ee Compare May 23, 2025 23:23
(cd "$doc_derivation"/share/doc && ${pkgs.lib.getExe pkgs.python3} ${./server.py})
(cd "$doc_derivation" && ${pkgs.lib.getExe pkgs.python3} ${./server.py})
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To avoid needing to backport #3349, I've updated this line instead.

@MattSturgeon

This comment was marked as resolved.

This comment was marked as resolved.

Copy link
Contributor Author

mergify bot commented May 23, 2025

This pull request, with head sha ebdf6ee37b8bff2ccad730e0d2ba43ebbb630eec, has been successfully merged with fast-forward by Mergify.

This pull request will be automatically closed by GitHub.

As soon as GitHub detects that the sha ebdf6ee37b8bff2ccad730e0d2ba43ebbb630eec is part of the nixos-24.11 branch, it will mark this pull request as merged.

It is possible for this pull request to remain open if this detection does not happen, this usually happens when a force-push is done on this branch mergify/bp/nixos-24.11/pr-3366, this means GitHub will fail to detect the merge.

@mergify mergify bot merged commit ebdf6ee into nixos-24.11 May 23, 2025
4 checks passed
@MattSturgeon MattSturgeon deleted the mergify/bp/nixos-24.11/pr-3366 branch May 23, 2025 23:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant