Skip to content

Commit d857020

Browse files
committed
doc: Rewrite manpage with scdoc
I'm not entirely sure if this is worth it. On the one hand, I think the source is clearer, easier to read, and easier to modify. However, scdoc has a few limitations and odd edge cases, that makes it a little awkward to work with. Another alternative is we could use ASCIIDOC with pandoc or asciidoctor to convert it.
1 parent f77b693 commit d857020

File tree

2 files changed

+550
-1
lines changed

2 files changed

+550
-1
lines changed

Makefile

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,12 @@ autocomplete/_fd: contrib/completion/_fd
2929
$(comp_dir)
3030
cp $< $@
3131

32-
install: $(EXE) completions
32+
doc/fd.1: doc/fd.1.scd
33+
scdoc < $< > $@
34+
35+
docs: doc/fd.1
36+
37+
install: $(EXE) completions docs
3338
install -Dm755 $(EXE) $(DESTDIR)$(bindir)/fd
3439
install -Dm644 autocomplete/fd.bash $(DESTDIR)/$(datadir)/bash-completion/completions/$(exe_name)
3540
install -Dm644 autocomplete/fd.fish $(DESTDIR)/$(datadir)/fish/vendor_completions.d/$(exe_name).fish

0 commit comments

Comments
 (0)