From bed6b665effcb32b274269dcb678c7582270cf38 Mon Sep 17 00:00:00 2001 From: Frieder Schlesier Date: Thu, 31 Mar 2022 21:46:57 +0200 Subject: [PATCH] first draft for org-publish configs --- .spacemacs | 64 ++++++++++++++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 62 insertions(+), 2 deletions(-) diff --git a/.spacemacs b/.spacemacs index aee27e2..cc33b19 100644 --- a/.spacemacs +++ b/.spacemacs @@ -558,6 +558,67 @@ you should place your code here." auto-completion-enable-snippets-in-popup t auto-completion-enable-help-tooltip t))) (with-eval-after-load 'org + (setq org-roam-directory (file-truename "~/org-roam")) + (org-roam-db-autosync-mode) + (require 'ox-publish) + (require 'ox-rss) + (setq org-export-html-coding-system 'utf-8-unix) + (setq org-html-doctype "html5") + (defvar fschlde-html-head "") + (setq fschlde-html-footer " ") + (setq org-publish-project-alist + '(("website" + :components ("org-journal", "project-notes", "org-sites", "blog-rss", "blog-images")) + ("org-journal" + :base-directory "~/Documents/Org/" + :base-extension "org" + :publishing-directory "~/projects/blog-fschlde/reads/" + :recursive nil + :publishing-function org-html-publish-to-html + + :headline-levels 4 + :with-author t + :with-creator nil + :with-date t + + :with-toc t + :with-drawers nil + + :html-link-home "/" + :html-head nil ;; cleans up anything that would have been in there. + ;; :html-head-extra ,my-blog-extra-head + :html-head-include-default-style nil + :html-head-include-scripts nil + + ;; :html-preamble my-blog-header + ;; :html-postamble ,my-blog-footer + ) + ("project-notes" + :base-directory "~/projects/" + :base-extension "org" + :publishing-directory "~/projects/blog-fschlde/projects/" + :recursive nil + :publishing-function org-html-publish-to-html + :headline-levels 4) + ("org-sites" + :base-directory "~/projects/fschlde-static/" + :base-extension "org" + :publishing-directory "~/projects/fschlde-static/" + :recursive t + :publishing-function org-html-publish-to-html + + :html-link-home "/" + ;; :html-head ,fschlde-html-head ;; cleans up anything that would have been in there. + :html-head-include-default-style nil + :html-head-include-scripts nil + :with-drawers nil + :with-creator nil + + ;; :html-head-extra fschlde-html-head + ;; :html-postamble fschlde-html-footer + :headline-levels 4) + ) + ) (setq org-default-notes-file "~/Documents/Org/tasks.org") (setq org-agenda-files (quote ("~/Documents/Org/tasks.org" @@ -650,8 +711,7 @@ This function is called at the very end of Spacemacs initialization." ;; If there is more than one, they won't work right. '(evil-want-Y-yank-to-eol nil) '(package-selected-packages - (quote - (systemd company-auctex auctex flycheck-pos-tip pos-tip flycheck docker json-mode tablist docker-tramp json-snatcher json-reformat unfill mwim web-mode tagedit slim-mode scss-mode sass-mode pug-mode less-css-mode helm-css-scss haml-mode emmet-mode company-web web-completion-data go-guru go-eldoc company-go go-mode yaml-mode smeargle orgit org-projectile org-category-capture org-present org-pomodoro alert log4e gntp org-mime org-download mmm-mode markdown-toc markdown-mode magit-gitflow htmlize helm-gitignore helm-company helm-c-yasnippet gnuplot gitignore-mode gitconfig-mode gitattributes-mode git-timemachine git-messenger git-link git-gutter-fringe+ git-gutter-fringe fringe-helper git-gutter+ git-gutter gh-md fuzzy evil-magit magit magit-popup git-commit ghub treepy let-alist graphql with-editor diff-hl company-statistics company auto-yasnippet yasnippet ac-ispell auto-complete dockerfile-mode ws-butler winum which-key volatile-highlights vi-tilde-fringe uuidgen use-package toc-org spaceline powerline restart-emacs request rainbow-delimiters popwin persp-mode pcre2el paradox spinner org-plus-contrib org-bullets open-junk-file neotree move-text macrostep lorem-ipsum linum-relative link-hint indent-guide hydra hungry-delete hl-todo highlight-parentheses highlight-numbers parent-mode highlight-indentation helm-themes helm-swoop helm-projectile helm-mode-manager helm-make projectile pkg-info epl helm-flx helm-descbinds helm-ag google-translate golden-ratio flx-ido flx fill-column-indicator fancy-battery eyebrowse expand-region exec-path-from-shell evil-visualstar evil-visual-mark-mode evil-unimpaired evil-tutor evil-surround evil-search-highlight-persist evil-numbers evil-nerd-commenter evil-mc evil-matchit evil-lisp-state smartparens evil-indent-plus evil-iedit-state iedit evil-exchange evil-escape evil-ediff evil-args evil-anzu anzu evil goto-chg undo-tree eval-sexp-fu highlight elisp-slime-nav dumb-jump f dash s diminish define-word column-enforce-mode clean-aindent-mode bind-map bind-key auto-highlight-symbol auto-compile packed aggressive-indent adaptive-wrap ace-window ace-link ace-jump-helm-line helm avy helm-core popup async)))) + '(helm-rg systemd journalctl-mode company-auctex auctex flycheck-pos-tip pos-tip flycheck docker json-mode tablist docker-tramp json-snatcher json-reformat unfill mwim web-mode tagedit slim-mode scss-mode sass-mode pug-mode less-css-mode helm-css-scss haml-mode emmet-mode company-web web-completion-data go-guru go-eldoc company-go go-mode yaml-mode smeargle orgit org-projectile org-category-capture org-present org-pomodoro alert log4e gntp org-mime org-download mmm-mode markdown-toc markdown-mode magit-gitflow htmlize helm-gitignore helm-company helm-c-yasnippet gnuplot gitignore-mode gitconfig-mode gitattributes-mode git-timemachine git-messenger git-link git-gutter-fringe+ git-gutter-fringe fringe-helper git-gutter+ git-gutter gh-md fuzzy evil-magit magit magit-popup git-commit ghub treepy let-alist graphql with-editor diff-hl company-statistics company auto-yasnippet yasnippet ac-ispell auto-complete dockerfile-mode ws-butler winum which-key volatile-highlights vi-tilde-fringe uuidgen use-package toc-org spaceline powerline restart-emacs request rainbow-delimiters popwin persp-mode pcre2el paradox spinner org-plus-contrib org-bullets open-junk-file neotree move-text macrostep lorem-ipsum linum-relative link-hint indent-guide hydra hungry-delete hl-todo highlight-parentheses highlight-numbers parent-mode highlight-indentation helm-themes helm-swoop helm-projectile helm-mode-manager helm-make projectile pkg-info epl helm-flx helm-descbinds helm-ag google-translate golden-ratio flx-ido flx fill-column-indicator fancy-battery eyebrowse expand-region exec-path-from-shell evil-visualstar evil-visual-mark-mode evil-unimpaired evil-tutor evil-surround evil-search-highlight-persist evil-numbers evil-nerd-commenter evil-mc evil-matchit evil-lisp-state smartparens evil-indent-plus evil-iedit-state iedit evil-exchange evil-escape evil-ediff evil-args evil-anzu anzu evil goto-chg undo-tree eval-sexp-fu highlight elisp-slime-nav dumb-jump f dash s diminish define-word column-enforce-mode clean-aindent-mode bind-map bind-key auto-highlight-symbol auto-compile packed aggressive-indent adaptive-wrap ace-window ace-link ace-jump-helm-line helm avy helm-core popup async))) (custom-set-faces ;; custom-set-faces was added by Custom. ;; If you edit it by hand, you could mess it up, so be careful.