mirror of
https://github.com/zsh-users/zsh-autosuggestions.git
synced 2025-12-15 15:42:31 +01:00
Asciidoc code documentation generated by Zshelldoc & required Makefiles
This commit is contained in:
parent
9f1f322979
commit
0387f6e385
3 changed files with 539 additions and 0 deletions
12
Makefile
12
Makefile
|
|
@ -19,12 +19,24 @@ HEADER_FILES := \
|
|||
|
||||
PLUGIN_TARGET := zsh-autosuggestions.zsh
|
||||
|
||||
ZSD := $(shell command -v zsd 2> /dev/null)
|
||||
|
||||
all: $(PLUGIN_TARGET)
|
||||
|
||||
$(PLUGIN_TARGET): $(HEADER_FILES) $(SRC_FILES)
|
||||
cat $(HEADER_FILES) | sed -e 's/^/# /g' > $@
|
||||
cat $(SRC_FILES) >> $@
|
||||
|
||||
.PHONY: doc
|
||||
doc: zsdoc/$(PLUGIN_TARGET).adoc
|
||||
|
||||
zsdoc/$(PLUGIN_TARGET).adoc: $(PLUGIN_TARGET)
|
||||
ifndef ZSD
|
||||
$(error Zshelldoc is not available please install from: https://github.com/zdharma/zshelldoc)
|
||||
endif
|
||||
rm -rf zsdoc/data zsdoc/*.adoc
|
||||
zsd -q --cignore '\#[[:space:]-]##*[[:space:]-]##\#' $<
|
||||
|
||||
.PHONY: clean
|
||||
clean:
|
||||
rm $(PLUGIN_TARGET)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue