make man pages from readme files

This commit is contained in:
Malin Freeborn 2024-12-05 15:29:34 +01:00
parent d1931d2e8b
commit 2d9fa2ab9b
Signed by: andonome
GPG Key ID: 52295D2377F4D70F
2 changed files with 38 additions and 0 deletions

View File

@ -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-<tab>')
##########
clean:
$(RM) $(kralmans) $(krovmans)

View File

@ -1,3 +1,9 @@
---
title: ejabberd configurations
section: 6
source: Decentrala
---
#On your PC
Add this configuration to ~/.ssh/config