diff --git a/dotfiles/emacs.d/README.org b/dotfiles/emacs.d/README.org index a4df355d..a860bf09 100644 --- a/dotfiles/emacs.d/README.org +++ b/dotfiles/emacs.d/README.org @@ -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. diff --git a/gen-gh-pages/generate-html.el b/gen-gh-pages/generate-html.el index ac5d2f06..e11a3536 100755 --- a/gen-gh-pages/generate-html.el +++ b/gen-gh-pages/generate-html.el @@ -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