Skip to content
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

Display versioned manuals on nixos.org #1022

Closed
wants to merge 3 commits into from
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
20 changes: 19 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -93,14 +93,32 @@ $(NIX_MANUAL_STABLE_OUT): $(call rwildcard, $(NIX_MANUAL_STABLE_IN), *)
mkdir -p $(NIX_MANUAL_STABLE_OUT)
cp --no-preserve=mode,ownership -RL $(NIX_MANUAL_STABLE_IN)/* $(NIX_MANUAL_STABLE_OUT)

NIX_MANUAL_2_12_IN ?= /no-such-path
NIX_MANUAL_2_12_OUT = manual/nix/2.12
$(NIX_MANUAL_2_12_OUT): $(call rwildcard, $(NIX_MANUAL_2_12_IN), *)
mkdir -p $(NIX_MANUAL_2_12_OUT)
cp --no-preserve=mode,ownership -RL $(NIX_MANUAL_2_12_IN)/* $(NIX_MANUAL_2_12_OUT)

NIX_MANUAL_2_11_IN ?= /no-such-path
NIX_MANUAL_2_11_OUT = manual/nix/2.11
$(NIX_MANUAL_2_11_OUT): $(call rwildcard, $(NIX_MANUAL_2_11_IN), *)
mkdir -p $(NIX_MANUAL_2_11_OUT)
cp --no-preserve=mode,ownership -RL $(NIX_MANUAL_2_11_IN)/* $(NIX_MANUAL_2_11_OUT)

NIX_MANUAL_2_10_IN ?= /no-such-path
NIX_MANUAL_2_10_OUT = manual/nix/2.10
$(NIX_MANUAL_2_10_OUT): $(call rwildcard, $(NIX_MANUAL_2_10_IN), *)
mkdir -p $(NIX_MANUAL_2_10_OUT)
cp --no-preserve=mode,ownership -RL $(NIX_MANUAL_2_10_IN)/* $(NIX_MANUAL_2_10_OUT)

NIX_MANUAL_UNSTABLE_IN ?= /no-such-path
NIX_MANUAL_UNSTABLE_OUT = manual/nix/unstable

$(NIX_MANUAL_UNSTABLE_OUT): $(call rwildcard, $(NIX_MANUAL_UNSTABLE_IN), *)
mkdir -p $(NIX_MANUAL_UNSTABLE_OUT)
cp --no-preserve=mode,ownership -RL $(NIX_MANUAL_UNSTABLE_IN)/* $(NIX_MANUAL_UNSTABLE_OUT)

manual/nix/index.html: $(NIX_MANUAL_STABLE_OUT) $(NIX_MANUAL_UNSTABLE_OUT)
manual/nix/index.html: $(NIX_MANUAL_STABLE_OUT) $(NIX_MANUAL_UNSTABLE_OUT) $(NIX_MANUAL_2_12_OUT) $(NIX_MANUAL_2_11_OUT) $(NIX_MANUAL_2_10_OUT)
bash ./scripts/fix-manual-headers.sh manual/nix stable
@echo "<!DOCTYPE html>" > $@
@echo "<html>" >> $@
Expand Down
260 changes: 235 additions & 25 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.