Skip to content

Commit

Permalink
docs added
Browse files Browse the repository at this point in the history
  • Loading branch information
timmenzies committed Aug 18, 2024
1 parent 6ba9c39 commit 591f672
Showing 1 changed file with 13 additions and 17 deletions.
30 changes: 13 additions & 17 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,15 @@ define Fish
endef
export Fish # hummm

Pandoc = \
-s \
-f markdown \
--mathjax \
--css style.css \
--highlight-style kate \
-H $(Etc)/favicon.html \
Pandoc = \
-s \
-f markdown \
--mathjax \
--css style.css \
--highlight-style kate \
-H $(Etc)/favicon.html \
--include-before=$(Etc)/head.md \
--include-after=$(Etc)/foot.md \
--include-after=$(Etc)/foot.md \
--indented-code-classes=python,numberLines

Cyan=\033[36m
Expand All @@ -30,28 +30,24 @@ Etc=$(Top)/etc
SHELL = bash
.SILENT:

# #grep -E '^[^ \t][a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) \
help: ## show help
printf '\nmake [$(Yellow)what$(White)]\n'
grep -hE '^[^ \t#].*## .*$$' $(MAKEFILE_LIST) \
| grep -v grep \
| sort \
| awk 'BEGIN {FS=":.*?## "};{printf "$(Cyan)%10s$(White) : %s\n",$$1,$$2}'
| grep -vE '(grep|awk)' \
| sort \
| gawk 'BEGIN {FS=":.*?## "};{printf "$(Cyan)%10s$(White) : %s\n",$$1,$$2}'
printf "$(Cyan) $$Fish $(White)\n"

pull: ## get updates from cloud
git pull --quiet

push: ## save local changes to cloud
echo -en "\033[33mWhy this push? \033[0m"; read x; git commit -am "$$x" --quiet
read -ep "Why this push? " x; git commit -am "$$x" --quiet
git push --quiet -u --no-progress
git status --short

style.css: $(Etc)/style.css
cp $^ $@
style.css: $(Etc)/style.css; cp $^ $@

%.html: %.md style.css ## md -> html
echo "$@ ... "
pandoc $< -o $@ $(Pandoc)

0 comments on commit 591f672

Please sign in to comment.