From 959d8dbbcaa0081cec9681eb4df402f4723165f3 Mon Sep 17 00:00:00 2001 From: TEC Date: Mon, 25 Mar 2024 23:56:31 +0800 Subject: [PATCH] Publish listing of generated files --- README.org | 2 +- misc/config-publishing/files.sh | 68 +++++++++++++++++++++++++++++++ misc/config-publishing/publish.sh | 3 +- 3 files changed, 71 insertions(+), 2 deletions(-) create mode 100755 misc/config-publishing/files.sh diff --git a/README.org b/README.org index 64b9fe4..7041823 100644 --- a/README.org +++ b/README.org @@ -13,7 +13,7 @@ Here you may find my config. There is only one significant file: [[file:misc/screenshots/splash-screen.png]] =config.org= /generates/ the [[https://tecosaur.github.io/emacs-config/engraved/init.el.html][init.el]], [[https://tecosaur.github.io/emacs-config/engraved/config.el.html][config.el]], and [[https://tecosaur.github.io/emacs-config/engraved/packages.el.html][packages.el]] files, as well as -about a dozen others. +about a hundred others. See [[https://tecosaur.github.io/emacs-config/files.html][this listing]] for more information. Other than that, resources are put in [[file:misc/][misc]], and you may find submodules for packages of mine in [[file:lisp/][lisp]]. diff --git a/misc/config-publishing/files.sh b/misc/config-publishing/files.sh new file mode 100755 index 0000000..136c332 --- /dev/null +++ b/misc/config-publishing/files.sh @@ -0,0 +1,68 @@ +#!/usr/bin/env sh +":"; exec emacs --quick --script "$0" -- "$@" # -*- mode: emacs-lisp; lexical-binding: t; -*- + +(setq log-file (expand-file-name (format "%s-log.txt" (file-name-base load-file-name)))) + +(load (expand-file-name "initialise.el" (file-name-directory load-file-name)) nil t) +(initialise 'light) + +;;; Actually do the exporting now + +(message "[34] Creating pagelist") + +(setq default-directory publish-dir) + +(with-temp-buffer + (insert " + + + +Doom Emacs Configuration: Files + + + + + +
+ +

Doom Emacs Configuration — Files

+ +

config.org (html, pdf)

+ +

Upon tangling this file, +every other file listed here is generated.

+ +

Doom cares about three in particular:

+ + +

Generated sub-configuration

+ +

The sub-configuration is a collection of generated fragments of configuration sourced from config.org. +See the section on it for more information.

+ +

Many of these can be thought of as stand-alone packages + +

\n
\n\n\n") + (write-region nil nil "files.html")) + +(message "[1;32] Pagelist generated!") + +(setq inhibit-message t) +(kill-emacs exit-code) diff --git a/misc/config-publishing/publish.sh b/misc/config-publishing/publish.sh index 01f7845..5186060 100755 --- a/misc/config-publishing/publish.sh +++ b/misc/config-publishing/publish.sh @@ -13,7 +13,8 @@ (load (expand-file-name "async-proc-management.el") nil t) -(apm-exec '("subconf.sh" "engrave.sh" "check-package-updates.sh")) +(apm-exec "check-package-updates.sh") +(apm-exec "subconf.sh" :then '("engrave.sh" :then "files.sh")) (if (not (file-exists-p (concat user-emacs-directory "xkcd/"))) (apm-exec "org-html.sh" :then "org-pdf.sh")