(require 'package) (package-initialize) (add-to-list 'package-archives '("melpa" . "https://melpa.org/packages/") t) (add-to-list 'package-archives '("gnu" . "https://elpa.gnu.org/packages/") t) (package-refresh-contents) (package-install 'org) (package-install 'htmlize) (package-install 'org-roam) (require 'org) (require 'ox-publish) (load-file "org-roam-export.el") (setq org-confirm-babel-evaluate nil) (defun password-store-get (&rest args) "Dummy implementation of password-store-get." nil) (add-hook 'org-export-before-processing-hook 'org-roam-export-preprocessor) (setq my/org-base-url (or (getenv "BASE_URL") "/")) (setq org-publish-project-alist `(("roam-html" :base-directory "." :base-extension "org" :publishing-directory "./public" :recursive t :html-link-home ,my/org-base-url :html-doctype "html5" :html-html5-fancy t :with-toc nil :with-sub-superscript nil :section-numbers nil :auto-sitemap t :sitemap-filename "sitemap.org" :sitemap-title "Document Index" :sitemap-sort-folders last :publishing-function org-html-publish-to-html :html-head "") ("roam-assets" :base-directory "." :exclude "public/" :base-extension "html\\|css\\|gif\\|jpe?g\\|js\\|json\\|png\\|svg\\|pdf" :publishing-directory "./public" :publishing-function org-publish-attachment :recursive t) ("roam" :components ("roam-html" "roam-assets")))) (setq org-roam-directory (expand-file-name ".")) (org-roam-db-sync) (org-roam-update-org-id-locations)