Skip to content

Commit

Permalink
chore(makefile): automatically generate all the docs
Browse files Browse the repository at this point in the history
  • Loading branch information
abougouffa committed Nov 17, 2024
1 parent 0407a87 commit 39b7ec1
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -60,13 +60,19 @@ ci:
ci-daemon:
HOME=$(PWD)/.. timeout 180 $(EMACS) --daemon 2>&1

gen-descriptions:
$(EMACS_BATCH) --eval='(progn (minemacs-extract-packages-descriptions) (with-current-buffer (get-buffer "*minemacs-modules-pkg-desc*") (write-file "docs/PACKAGES.md")))'

gen-external-tools:
$(EMACS_BATCH) --eval='(progn (+list-external-dependencies) (with-current-buffer (get-buffer "*external-dependencies*") (write-file "docs/EXTERNAL-TOOLS.md")))'

make-readme-markdown.el:
wget -q -O $@ https://raw.github.com/mgalgs/make-readme-markdown/master/make-readme-markdown.el

combined.el:
cat init.el early-init.el core/me-{vars,lib,lib-extra,builtin}.el modules/me-*.el modules/extras/me-*.el >combined.el

documentation: combined.el make-readme-markdown.el
documentation: gen-descriptions gen-external-tools combined.el make-readme-markdown.el
emacs --script make-readme-markdown.el <combined.el >docs/DOCS.md 2>/dev/null

.INTERMEDIATE: make-readme-markdown.el combined.el

0 comments on commit 39b7ec1

Please sign in to comment.