From 2d9fa2ab9b616549266e5267e9951ff6e20ee017 Mon Sep 17 00:00:00 2001 From: Malin Freeborn Date: Thu, 5 Dec 2024 15:29:34 +0100 Subject: [PATCH] make man pages from readme files --- Makefile | 32 ++++++++++++++++++++++++++++++++ kralizec/ejabberd/README.md | 6 ++++++ 2 files changed, 38 insertions(+) diff --git a/Makefile b/Makefile index ac2fbbf..0061c00 100644 --- a/Makefile +++ b/Makefile @@ -12,3 +12,35 @@ map.txt: map.ge ## Making map.txt full_map.txt: map.ge ## Generating full_map.txt with graph-easy graph-easy --boxart < $< > $@ cat $@ + +########## Man Pages ########## + +mandir = $(HOME)/.local/man/man6 + +kralizec_docs != grep -rl "^section:" kralizec +kralmans = $(kralizec_docs:kralizec/%/README.md=$(mandir)/%.6) + +krov_docs != grep -rl "^section:" krov +krovmans = $(krov_docs:krov/%/README.md=$(mandir)/%.6) + +$(mandir)/%.6: kralizec/%/README.md + lowdown -stman $< > $@ + +$(mandir)/%.6: krov/%/README.md + lowdown -stman $< > $@ + +$(mandir): + mkdir -p $@ + +$(kralmans) $(krovmans) :| $(mandir) + +.PHONY: pages +pages: $(kralmans) $(krovmans) + $(info $(kralmans)) + @test ! $(command -v mandb) || mandb --user-db + $(info Open DMZ's man pages with 'man dmz-') + +########## + +clean: + $(RM) $(kralmans) $(krovmans) diff --git a/kralizec/ejabberd/README.md b/kralizec/ejabberd/README.md index 288cc6b..5d34682 100644 --- a/kralizec/ejabberd/README.md +++ b/kralizec/ejabberd/README.md @@ -1,3 +1,9 @@ +--- +title: ejabberd configurations +section: 6 +source: Decentrala +--- + #On your PC Add this configuration to ~/.ssh/config