From e76b6c6e3dc4500647d3dabf5f05f214b020ca19 Mon Sep 17 00:00:00 2001 From: yingyu5658 Date: Mon, 2 Feb 2026 23:19:02 +0800 Subject: Initial commit --- scripts/publish.el | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 scripts/publish.el (limited to 'scripts/publish.el') 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 +;; Maintainer: Verdant +;; 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 -- cgit v1.2.3