gh-pages: make org export resilient in CI
This commit is contained in:
@@ -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
|
heading text, and don't change when new headings are added to the document, I
|
||||||
wrote a custom version of ~org-export-get-reference~.
|
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
|
document) takes you to
|
||||||
http://ivanmalison.github.io/dotfiles/#usemyowndefaultnamingschemefororgheadings.
|
http://ivanmalison.github.io/dotfiles/#usemyowndefaultnamingschemefororgheadings.
|
||||||
|
|
||||||
|
|||||||
@@ -21,6 +21,9 @@
|
|||||||
(org-babel-tangle-file readme-src)
|
(org-babel-tangle-file readme-src)
|
||||||
|
|
||||||
(require 'cl-lib)
|
(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"))
|
(load-file (concat emacs-dir "org-config-bootstrap.el"))
|
||||||
(org-babel-tangle-file (concat emacs-dir "org-config.org"))
|
(org-babel-tangle-file (concat emacs-dir "org-config.org"))
|
||||||
(load-file (concat emacs-dir "org-config.el"))
|
(load-file (concat emacs-dir "org-config.el"))
|
||||||
@@ -33,6 +36,9 @@
|
|||||||
(setq org-html-postamble nil)
|
(setq org-html-postamble nil)
|
||||||
(setq org-html-htmlize-output-type 'css)
|
(setq org-html-htmlize-output-type 'css)
|
||||||
(setq org-confirm-babel-evaluate nil)
|
(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)
|
(defun add-faces-css (exporter)
|
||||||
"Insert custom inline css to automatically set the
|
"Insert custom inline css to automatically set the
|
||||||
|
|||||||
Reference in New Issue
Block a user