aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/publish.el
diff options
context:
space:
mode:
authoryingyu5658 <i@yingyu5658.me>2026-02-02 23:19:02 +0800
committeryingyu5658 <i@yingyu5658.me>2026-02-02 23:19:02 +0800
commite76b6c6e3dc4500647d3dabf5f05f214b020ca19 (patch)
tree16d733cf6bad041c5bd3f7bb7d2dfc2205aa4a19 /scripts/publish.el
parent1c4d5a38881b6c7d896b2014ed142957b315f30b (diff)
downloadniwa-e76b6c6e3dc4500647d3dabf5f05f214b020ca19.tar.gz
niwa-e76b6c6e3dc4500647d3dabf5f05f214b020ca19.zip
Initial commit
Diffstat (limited to 'scripts/publish.el')
-rw-r--r--scripts/publish.el38
1 files changed, 38 insertions, 0 deletions
diff --git a/scripts/publish.el b/scripts/publish.el
new file mode 100644
index 0000000..3db900f
--- /dev/null
+++ b/scripts/publish.el
@@ -0,0 +1,38 @@
+;;; publish.el
+;;; export notes to html
+;;;-*- lexical-binding: t; -*-
+;;
+;; Copyright (C) 2026 Verdant
+;;
+;; Author: Verdant <i@glowisleme>
+;; Maintainer: Verdant <i@glowisle.me>
+;; Created: February 02, 2026
+;; Modified: February 02, 2026
+;; Version: 0.0.1
+;; Keywords: abbrev bib c calendar comm convenience data docs emulations extensions faces files frames games hardware help hypermedia i18n internal languages lisp local maint mail matching mouse multimedia news outlines processes terminals tex tools unix vc wp
+;; Package-Requires: ((emacs "24.3"))
+;;
+;; This file is not part of GNU Emacs.
+;;
+;;; Code:
+
+(require 'ox-html)
+(require 'org)
+
+(setq org-publish-project-alist
+ '(("niwa-notes"
+ :base-directory "~/niwa/notes"
+ :base-extension "org"
+ :recursive t
+ :publishing-directory "~/niwa/public"
+ :publishing-function org-html-publish-to-html
+ :with-author nil
+ :with-creator nil
+ :section-numbers nil)
+
+ ("niwa"
+ :components ("niwa-notes"))))
+
+(provide 'publish)
+
+;;; publish.el ends here