Skip to content

Commit

Permalink
Remove stray 'Title:' from the manual
Browse files Browse the repository at this point in the history
Closes #4096.
  • Loading branch information
edolstra committed Oct 8, 2020
1 parent 9a1807a commit 58dadf2
Show file tree
Hide file tree
Showing 14 changed files with 13 additions and 29 deletions.
3 changes: 1 addition & 2 deletions doc/manual/generate-manpage.nix
Expand Up @@ -52,5 +52,4 @@ in

command:

"Title: nix\n\n"
+ showCommand { command = "nix"; section = "#"; def = command; }
showCommand { command = "nix"; section = "#"; def = command; }
15 changes: 12 additions & 3 deletions doc/manual/local.mk
Expand Up @@ -18,13 +18,22 @@ dist-files += $(man-pages)
nix-eval = $(bindir)/nix eval --experimental-features nix-command -I nix/corepkgs=corepkgs --store dummy:// --impure --raw --expr

$(d)/%.1: $(d)/src/command-ref/%.md
$(trace-gen) lowdown -sT man $^ -o $@
@printf "Title: %s\n\n" "$$(basename $@ .1)" > $^.tmp
@cat $^ >> $^.tmp
$(trace-gen) lowdown -sT man $^.tmp -o $@
@rm $^.tmp

$(d)/%.8: $(d)/src/command-ref/%.md
$(trace-gen) lowdown -sT man $^ -o $@
@printf "Title: %s\n\n" "$$(basename $@ .8)" > $^.tmp
@cat $^ >> $^.tmp
$(trace-gen) lowdown -sT man $^.tmp -o $@
@rm $^.tmp

$(d)/nix.conf.5: $(d)/src/command-ref/conf-file.md
$(trace-gen) lowdown -sT man $^ -o $@
@printf "Title: %s\n\n" "$$(basename $@ .5)" > $^.tmp
@cat $^ >> $^.tmp
$(trace-gen) lowdown -sT man $^.tmp -o $@
@rm $^.tmp

$(d)/src/command-ref/nix.md: $(d)/nix.json $(d)/generate-manpage.nix $(bindir)/nix
$(trace-gen) $(nix-eval) 'import doc/manual/generate-manpage.nix (builtins.fromJSON (builtins.readFile $<))' > $@.tmp
Expand Down
2 changes: 0 additions & 2 deletions doc/manual/src/command-ref/conf-file-prefix.md
@@ -1,5 +1,3 @@
Title: nix.conf

# Name

`nix.conf` - Nix configuration file
Expand Down
2 changes: 0 additions & 2 deletions doc/manual/src/command-ref/nix-build.md
@@ -1,5 +1,3 @@
Title: nix-build

# Name

`nix-build` - build a Nix expression
Expand Down
2 changes: 0 additions & 2 deletions doc/manual/src/command-ref/nix-channel.md
@@ -1,5 +1,3 @@
Title: nix-channel

# Name

`nix-channel` - manage Nix channels
Expand Down
2 changes: 0 additions & 2 deletions doc/manual/src/command-ref/nix-collect-garbage.md
@@ -1,5 +1,3 @@
Title: nix-collect-garbage

# Name

`nix-collect-garbage` - delete unreachable store paths
Expand Down
2 changes: 0 additions & 2 deletions doc/manual/src/command-ref/nix-copy-closure.md
@@ -1,5 +1,3 @@
Title: nix-copy-closure

# Name

`nix-copy-closure` - copy a closure to or from a remote machine via SSH
Expand Down
2 changes: 0 additions & 2 deletions doc/manual/src/command-ref/nix-daemon.md
@@ -1,5 +1,3 @@
Title: nix-daemon

# Name

`nix-daemon` - Nix multi-user support daemon
Expand Down
2 changes: 0 additions & 2 deletions doc/manual/src/command-ref/nix-env.md
@@ -1,5 +1,3 @@
Title: nix-env

# Name

`nix-env` - manipulate or query Nix user environments
Expand Down
2 changes: 0 additions & 2 deletions doc/manual/src/command-ref/nix-hash.md
@@ -1,5 +1,3 @@
Title: nix-hash

# Name

`nix-hash` - compute the cryptographic hash of a path
Expand Down
2 changes: 0 additions & 2 deletions doc/manual/src/command-ref/nix-instantiate.md
@@ -1,5 +1,3 @@
Title: nix-instantiate

# Name

`nix-instantiate` - instantiate store derivations from Nix expressions
Expand Down
2 changes: 0 additions & 2 deletions doc/manual/src/command-ref/nix-prefetch-url.md
@@ -1,5 +1,3 @@
Title: nix-prefetch-url

# Name

`nix-prefetch-url` - copy a file from a URL into the store and print its hash
Expand Down
2 changes: 0 additions & 2 deletions doc/manual/src/command-ref/nix-shell.md
@@ -1,5 +1,3 @@
Title: nix-shell

# Name

`nix-shell` - start an interactive shell based on a Nix expression
Expand Down
2 changes: 0 additions & 2 deletions doc/manual/src/command-ref/nix-store.md
@@ -1,5 +1,3 @@
Title: nix-store

# Name

`nix-store` - manipulate or query the Nix store
Expand Down

0 comments on commit 58dadf2

Please sign in to comment.