From ed65d86c72ba2724e5f6b7431e378fe9001a2391 Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Wed, 1 Nov 2017 19:05:37 +0800 Subject: [PATCH] Rename doc/manpages to doc/pages That fact we use man for these is an implementation detail. --- doc/{manpages => pages}/commands.asciidoc | 0 doc/{manpages => pages}/execeval.asciidoc | 0 doc/{manpages => pages}/expansions.asciidoc | 0 doc/{manpages => pages}/faces.asciidoc | 0 doc/{manpages => pages}/faq.asciidoc | 0 doc/{manpages => pages}/highlighters.asciidoc | 0 doc/{manpages => pages}/hooks.asciidoc | 0 doc/{manpages => pages}/keys.asciidoc | 0 doc/{manpages => pages}/mapping.asciidoc | 0 doc/{manpages => pages}/options.asciidoc | 0 doc/{manpages => pages}/regex.asciidoc | 0 doc/{manpages => pages}/registers.asciidoc | 0 doc/{manpages => pages}/scopes.asciidoc | 0 src/Makefile | 6 +++--- 14 files changed, 3 insertions(+), 3 deletions(-) rename doc/{manpages => pages}/commands.asciidoc (100%) rename doc/{manpages => pages}/execeval.asciidoc (100%) rename doc/{manpages => pages}/expansions.asciidoc (100%) rename doc/{manpages => pages}/faces.asciidoc (100%) rename doc/{manpages => pages}/faq.asciidoc (100%) rename doc/{manpages => pages}/highlighters.asciidoc (100%) rename doc/{manpages => pages}/hooks.asciidoc (100%) rename doc/{manpages => pages}/keys.asciidoc (100%) rename doc/{manpages => pages}/mapping.asciidoc (100%) rename doc/{manpages => pages}/options.asciidoc (100%) rename doc/{manpages => pages}/regex.asciidoc (100%) rename doc/{manpages => pages}/registers.asciidoc (100%) rename doc/{manpages => pages}/scopes.asciidoc (100%) diff --git a/doc/manpages/commands.asciidoc b/doc/pages/commands.asciidoc similarity index 100% rename from doc/manpages/commands.asciidoc rename to doc/pages/commands.asciidoc diff --git a/doc/manpages/execeval.asciidoc b/doc/pages/execeval.asciidoc similarity index 100% rename from doc/manpages/execeval.asciidoc rename to doc/pages/execeval.asciidoc diff --git a/doc/manpages/expansions.asciidoc b/doc/pages/expansions.asciidoc similarity index 100% rename from doc/manpages/expansions.asciidoc rename to doc/pages/expansions.asciidoc diff --git a/doc/manpages/faces.asciidoc b/doc/pages/faces.asciidoc similarity index 100% rename from doc/manpages/faces.asciidoc rename to doc/pages/faces.asciidoc diff --git a/doc/manpages/faq.asciidoc b/doc/pages/faq.asciidoc similarity index 100% rename from doc/manpages/faq.asciidoc rename to doc/pages/faq.asciidoc diff --git a/doc/manpages/highlighters.asciidoc b/doc/pages/highlighters.asciidoc similarity index 100% rename from doc/manpages/highlighters.asciidoc rename to doc/pages/highlighters.asciidoc diff --git a/doc/manpages/hooks.asciidoc b/doc/pages/hooks.asciidoc similarity index 100% rename from doc/manpages/hooks.asciidoc rename to doc/pages/hooks.asciidoc diff --git a/doc/manpages/keys.asciidoc b/doc/pages/keys.asciidoc similarity index 100% rename from doc/manpages/keys.asciidoc rename to doc/pages/keys.asciidoc diff --git a/doc/manpages/mapping.asciidoc b/doc/pages/mapping.asciidoc similarity index 100% rename from doc/manpages/mapping.asciidoc rename to doc/pages/mapping.asciidoc diff --git a/doc/manpages/options.asciidoc b/doc/pages/options.asciidoc similarity index 100% rename from doc/manpages/options.asciidoc rename to doc/pages/options.asciidoc diff --git a/doc/manpages/regex.asciidoc b/doc/pages/regex.asciidoc similarity index 100% rename from doc/manpages/regex.asciidoc rename to doc/pages/regex.asciidoc diff --git a/doc/manpages/registers.asciidoc b/doc/pages/registers.asciidoc similarity index 100% rename from doc/manpages/registers.asciidoc rename to doc/pages/registers.asciidoc diff --git a/doc/manpages/scopes.asciidoc b/doc/pages/scopes.asciidoc similarity index 100% rename from doc/manpages/scopes.asciidoc rename to doc/pages/scopes.asciidoc diff --git a/src/Makefile b/src/Makefile index 624cabd0..01db5c8d 100644 --- a/src/Makefile +++ b/src/Makefile @@ -16,7 +16,7 @@ endif sources := $(sort $(wildcard *.cc)) objects := $(addprefix ., $(sources:.cc=$(suffix).o)) deps := $(addprefix ., $(sources:.cc=$(suffix).d)) -docs := $(wildcard ../doc/manpages/*.asciidoc) +docs := $(wildcard ../doc/pages/*.asciidoc) mandocs := $(docs:.asciidoc=.gz) PREFIX ?= /usr/local @@ -80,7 +80,7 @@ kak$(suffix) : $(objects) # Generate the editor's documentation pages # Since `a2x` won't generate man pages if some sections are missing (which we don't need), # we generate the pages, patch them and then compress them -../doc/manpages/%.gz: ../doc/manpages/%.asciidoc +../doc/pages/%.gz: ../doc/pages/%.asciidoc a2x --no-xmllint -f manpage $< sed -i -r -e "s,^\.TH .+,.TH kakoune k \"\" \"\" \"$(basename $(notdir $<))\"," \ -e "/^\.SH \"NAME\"/{N;d;}" $(@:.gz=.k) @@ -117,7 +117,7 @@ installdirs: install: kak man doc installdirs install -m 0755 kak $(bindir) install -m 0644 ../share/kak/kakrc $(sharedir) - install -m 0644 ../doc/manpages/*.gz $(sharedir)/doc + install -m 0644 ../doc/pages/*.gz $(sharedir)/doc install -m 0644 ../rc/base/* $(sharedir)/rc/base install -m 0644 ../rc/core/* $(sharedir)/rc/core install -m 0644 ../rc/extra/* $(sharedir)/rc/extra