Skip to content

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

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-25.05/pr-3366 branch from d0a6d72 to 3117e87 Compare May 23, 2025 23:26
(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 has been minimized.

Copy link
Contributor Author

mergify bot commented May 23, 2025

This pull request, with head sha 3117e870952f3aae9cd6d4611c368c859f545e60, 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 3117e870952f3aae9cd6d4611c368c859f545e60 is part of the nixos-25.05 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-25.05/pr-3366, this means GitHub will fail to detect the merge.

@mergify mergify bot merged commit 3117e87 into nixos-25.05 May 23, 2025
4 checks passed
@MattSturgeon MattSturgeon deleted the mergify/bp/nixos-25.05/pr-3366 branch May 24, 2025 00:03
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.

2 participants