From 3bccbc10419c2025042b53bcc04b8e2f0b020b95 Mon Sep 17 00:00:00 2001 From: nathan Date: Fri, 30 May 2025 09:05:27 -0600 Subject: Started working on gopher --- .gitignore | 3 ++- Makefile | 1 + publish.el | 24 +++++++++++++++++++++--- 3 files changed, 24 insertions(+), 4 deletions(-) diff --git a/.gitignore b/.gitignore index 5b224a5..443fb24 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ -xhtml/ \ No newline at end of file +xhtml/ +gopher/ \ No newline at end of file diff --git a/Makefile b/Makefile index 449c79f..05bd182 100644 --- a/Makefile +++ b/Makefile @@ -5,4 +5,5 @@ all: .PHONY: clean clean: rm -rf xhtml/* + rm -rf gopher/* diff --git a/publish.el b/publish.el index ad5a425..b8fdcf0 100644 --- a/publish.el +++ b/publish.el @@ -1,11 +1,14 @@ (add-to-list 'load-path "./") (require 'ox-publish) +(require 'ox-ascii) (require 'shittyweb-html) +;; Dont forgor https://github.com/gophernicus/gophernicus + (setq org-publish-project-alist '( - ("org" :components ("org-notes" "org-static")) - ("org-notes" + ("org" :components ("xhtml-notes" "xhtml-static")) + ("xhtml-notes" :base-directory "org/" :base-extension "org" :publishing-directory "xhtml/" @@ -19,7 +22,7 @@ :section-numbers t :time-stamp-file nil ) - ("org-static" + ("xhtml-static" :base-directory "org/" :base-extension "css\\|html\\|xhtml\\|py\\|png\\|jpg\\|gif\\|cgi" :include ("blog/feed.xml") @@ -27,6 +30,21 @@ :publishing-directory "xhtml/" :recursive t :publishing-function org-publish-attachment + ) + ("gopher-notes" + :base-directory "org/" + :base-extension "org" + :exclude "404.org\\|index.org" + :publishing-directory "gopher/" + :recursive t + :publishing-function org-ascii-publish-to-ascii + ) + ("gopher-static" + :base-directory "org/" + :base-extension "" + :publishing-directory "gopher/" + :recursive t + :publishing-function org-publish-attachment )) org-html-extension "xhtml" org-html-validation-link nil -- cgit v1.2.3