-
Notifications
You must be signed in to change notification settings - Fork 137
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Vladislav Doster <[email protected]>
- Loading branch information
1 parent
59975d7
commit c28580c
Showing
32 changed files
with
3,563 additions
and
2,778 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1 @@ | ||
.git/ | ||
.github/ | ||
.git* | ||
doc/ | ||
scripts/ | ||
test/ | ||
tests/ | ||
|
||
*.zwc | ||
Makefile |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# syntax=docker/dockerfile-upstream:master | ||
|
||
ARG TARGETPLATFORM=linux/amd64 | ||
FROM --platform=$TARGETPLATFORM asciidoctor/docker-asciidoctor:latest | ||
|
||
ENV USER root | ||
ENV ZINIT_HOME /${USER}/zinit.git | ||
|
||
RUN apk add \ | ||
asciidoc-doc \ | ||
make \ | ||
less \ | ||
tree \ | ||
zsh | ||
|
||
WORKDIR /${USER} | ||
|
||
COPY . ./zinit.git | ||
COPY ./docker/zshrc .zshrc | ||
|
||
RUN zsh --interactive --login -c -- '@zi::scheduler burst' | ||
|
||
CMD ["zsh","--interactive","--login"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,57 +1,59 @@ | ||
# This Makefile is to convert supplied Asciidoc files into | ||
# other formats like pdf and man. The files contain Zplugin's | ||
# code documentation. | ||
# | ||
# *.adoc files are generated by Makefile from upper (i.e. top) | ||
# directory. | ||
|
||
all: man pdf | ||
|
||
# MANUALS | ||
# Converted with a2x from asciidoc package | ||
|
||
man: man/zinit.zsh.1 man/zinit-side.zsh.1 man/zinit-install.zsh.1 man/zinit-autoload.zsh.1 | ||
|
||
man/zinit.zsh.1: | ||
@mkdir -p man | ||
a2x --verbose -L --doctype manpage --format manpage -D man zinit.zsh.adoc | ||
|
||
man/zinit-side.zsh.1: | ||
@mkdir -p man | ||
a2x --verbose -L --doctype manpage --format manpage -D man zinit-side.zsh.adoc | ||
|
||
man/zinit-install.zsh.1: | ||
@mkdir -p man | ||
a2x --verbose -L --doctype manpage --format manpage -D man zinit-install.zsh.adoc | ||
|
||
man/zinit-autoload.zsh.1: | ||
@mkdir -p man | ||
a2x --verbose -L --doctype manpage --format manpage -D man zinit-autoload.zsh.adoc | ||
# *.adoc files are generated by Makefile from upper (i.e. top) directory. | ||
|
||
SRC := $(shell zsh -c "echo {'git-process-output','rpm2cpio'}.zsh zinit{'','-additional','-autoload','-install','-side'}.zsh") | ||
|
||
PDF_SRC := $(foreach wrd,$(SRC),$(wrd).pdf) | ||
PDF_CMD := asciidoctor -a reproducible -b pdf -r asciidoctor-pdf -D pdf | ||
|
||
MAN_SRC := $(foreach wrd,$(SRC),man/$(wrd)) | ||
MAN_CMD := a2x --verbose -L --doctype manpage --format manpage -D man | ||
|
||
.PHONY: all clean test man pdf | ||
|
||
all: clean man pdf | ||
dirs: | ||
mkdir -p man pdf | ||
|
||
# Manual pages | ||
# uses a2x from asciidoc package | ||
man: dirs $(MAN_SRC) | ||
man/git-process-output.zsh: | ||
$(MAN_CMD) git-process-output.zsh.adoc | ||
man/rpm2cpio.zsh: | ||
$(MAN_CMD) rpm2cpio.zsh.adoc | ||
man/zinit-additional.zsh: | ||
$(MAN_CMD) zinit-additional.zsh.adoc | ||
man/zinit-autoload.zsh: | ||
$(MAN_CMD) zinit-autoload.zsh.adoc | ||
man/zinit-install.zsh: | ||
$(MAN_CMD) zinit-install.zsh.adoc | ||
man/zinit-side.zsh: | ||
$(MAN_CMD) zinit-side.zsh.adoc | ||
man/zinit.zsh: | ||
$(MAN_CMD) zinit.zsh.adoc | ||
|
||
# PDFS | ||
# Uses asciidoctor not a2x (i.e. not asciidoc) | ||
|
||
pdf: pdf/zinit.zsh.pdf pdf/zinit-side.zsh.pdf pdf/zinit-install.zsh.pdf pdf/zinit-autoload.zsh.pdf | ||
|
||
pdf/zinit.zsh.pdf: | ||
@mkdir -p pdf | ||
asciidoctor -a reproducible -b pdf -r asciidoctor-pdf -D pdf zinit.zsh.adoc | ||
|
||
pdf/zinit-side.zsh.pdf: | ||
@mkdir -p pdf | ||
asciidoctor -a reproducible -b pdf -r asciidoctor-pdf -D pdf zinit-side.zsh.adoc | ||
|
||
pdf/zinit-install.zsh.pdf: | ||
@mkdir -p pdf | ||
asciidoctor -a reproducible -b pdf -r asciidoctor-pdf -D pdf zinit-install.zsh.adoc | ||
|
||
pdf/zinit-autoload.zsh.pdf: | ||
@mkdir -p pdf | ||
asciidoctor -a reproducible -b pdf -r asciidoctor-pdf -D pdf zinit-autoload.zsh.adoc | ||
# uses asciidoctor not a2x (i.e. not asciidoc) | ||
pdf: dirs $(PDF_SRC) | ||
git-process-output.zsh.pdf: | ||
$(PDF_CMD) git-process-output.zsh.adoc | ||
rpm2cpio.zsh.pdf: | ||
$(PDF_CMD) rpm2cpio.zsh.adoc | ||
zinit-additional.zsh.pdf: | ||
$(PDF_CMD) zinit-additional.zsh.adoc | ||
zinit-autoload.zsh.pdf: | ||
$(PDF_CMD) zinit-autoload.zsh.adoc | ||
zinit-install.zsh.pdf: | ||
$(PDF_CMD) zinit-install.zsh.adoc | ||
zinit-side.zsh.pdf: | ||
$(PDF_CMD) zinit-side.zsh.adoc | ||
zinit.zsh.pdf: | ||
$(PDF_CMD) zinit.zsh.adoc | ||
|
||
clean: | ||
rm -rf man pdf data | ||
|
||
.PHONY: man pdf clean | ||
|
||
# vim:noet:sts=8:ts=8 | ||
# vim:ft=make:noet:sts=4:ts=4 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,75 @@ | ||
git-process-output.zsh(1) | ||
========================= | ||
:compat-mode!: | ||
|
||
NAME | ||
---- | ||
git-process-output.zsh - a shell script | ||
|
||
SYNOPSIS | ||
-------- | ||
Documentation automatically generated with `zshelldoc' | ||
|
||
FUNCTIONS | ||
--------- | ||
|
||
print_my_line | ||
print_my_line_compress | ||
timeline | ||
|
||
DETAILS | ||
------- | ||
Script Body | ||
~~~~~~~~~~~ | ||
Has 113 line(s). Calls functions: | ||
Script-Body | ||
|-- print_my_line | ||
|-- print_my_line_compress | ||
`-- timeline | ||
Uses feature(s): _eval_, _read_, _setopt_, _trap_ | ||
print_my_line | ||
~~~~~~~~~~~~~ | ||
____ | ||
$1 - n. of objects | ||
$2 - packed objects | ||
$3 - total objects | ||
$4 - receiving percentage | ||
$5 - resolving percentage | ||
____ | ||
Has 13 line(s). Doesn't call other functions. | ||
Called by: | ||
Script-Body | ||
print_my_line_compress | ||
~~~~~~~~~~~~~~~~~~~~~~ | ||
Has 12 line(s). Doesn't call other functions. | ||
Called by: | ||
Script-Body | ||
timeline | ||
~~~~~~~~ | ||
____ | ||
Code by leoj3n | ||
____ | ||
Has 15 line(s). Doesn't call other functions. | ||
Called by: | ||
Script-Body | ||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
rpm2cpio.zsh(1) | ||
=============== | ||
:compat-mode!: | ||
|
||
NAME | ||
---- | ||
rpm2cpio.zsh - a shell script | ||
|
||
SYNOPSIS | ||
-------- | ||
Documentation automatically generated with `zshelldoc' | ||
|
||
FUNCTIONS | ||
--------- | ||
|
||
|
||
DETAILS | ||
------- | ||
|
||
Script Body | ||
~~~~~~~~~~~ | ||
|
||
Has 51 line(s). No functions are called (may set up e.g. a hook, a Zle widget bound to a key, etc.). | ||
|
Oops, something went wrong.