From e48aa8af893555c94724ed95e85f45cd6187187b Mon Sep 17 00:00:00 2001 From: Phil Hagelberg Date: Tue, 4 Mar 2025 08:59:51 -0800 Subject: [PATCH] Generate man page using pandoc. Needs a few tweaks to make it usable but we can just append/prepend them in the makefile target. --- Makefile | 5 +++++ docs/manual.md | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 0adf563..323d9d1 100644 --- a/Makefile +++ b/Makefile @@ -50,6 +50,11 @@ docs-love2d: rm-docs: rm -rf src/fennel-ls/docs/ +build/fennel-ls.1: + echo ".TH FENNEL-LS 1" > $@ + pandoc --title-prefix=fennel-ls -t man docs/manual.md >> $@ + echo ".SH LICENSE\nCopyright © 2023-2025, Released under the MIT/X11 license" >> $@ + deps: $(FENNEL) $(FENNELFLAGS) tools/get-deps.fnl diff --git a/docs/manual.md b/docs/manual.md index 7afc56c..7f65e5e 100644 --- a/docs/manual.md +++ b/docs/manual.md @@ -1,4 +1,4 @@ -# Manual +# Fennel Language Server Manual This document has information on how to configure and use fennel-ls after you [installed it](installation.md).