gh-pages: make org export resilient in CI

This commit is contained in:
2026-02-20 05:56:09 -08:00
committed by Kat Huang
parent 88cf64ef58
commit c02c1361a6
2 changed files with 7 additions and 1 deletions

View File

@@ -29,7 +29,7 @@ To make it so that internal heading links have names that correspond to the
heading text, and don't change when new headings are added to the document, I
wrote a custom version of ~org-export-get-reference~.
See how [[Use my own default naming scheme for org-headings][this link]] (which is just a normal internal link in the original
See how [[http://ivanmalison.github.io/dotfiles/#usemyowndefaultnamingschemefororgheadings][this link]] (which is just a normal internal link in the original
document) takes you to
http://ivanmalison.github.io/dotfiles/#usemyowndefaultnamingschemefororgheadings.

View File

@@ -21,6 +21,9 @@
(org-babel-tangle-file readme-src)
(require 'cl-lib)
;; Keep legacy cl macros used in tangled config available in batch export.
(unless (fboundp 'incf)
(defalias 'incf #'cl-incf))
(load-file (concat emacs-dir "org-config-bootstrap.el"))
(org-babel-tangle-file (concat emacs-dir "org-config.org"))
(load-file (concat emacs-dir "org-config.el"))
@@ -33,6 +36,9 @@
(setq org-html-postamble nil)
(setq org-html-htmlize-output-type 'css)
(setq org-confirm-babel-evaluate nil)
;; README.org contains cross-file fuzzy links intended for in-Emacs navigation.
;; Keep export resilient when those links cannot be resolved in standalone HTML.
(setq org-export-with-broken-links t)
(defun add-faces-css (exporter)
"Insert custom inline css to automatically set the