This commit is contained in:
@@ -37,7 +37,7 @@ The script is as follows, at the start I have some metadata relating to the file
|
||||
|
||||
(require 'package)
|
||||
|
||||
(add-to-list 'load-path "~/master-folder/org_files/org_web/lisp/")
|
||||
(add-to-list 'load-path "~/master-folder/org-platform/org_web/lisp/")
|
||||
|
||||
(require 'recently-updated)
|
||||
(require 'tags)
|
||||
@@ -59,7 +59,7 @@ The script is as follows, at the start I have some metadata relating to the file
|
||||
(package-refresh-contents))
|
||||
|
||||
(package-install 'htmlize)
|
||||
(add-to-list 'load-path "~/master-folder/org_files/org_web/")
|
||||
(add-to-list 'load-path "~/master-folder/org-platform/org_web/")
|
||||
(require 'htmlize)
|
||||
|
||||
(defvar z-shared-head
|
||||
@@ -234,9 +234,9 @@ The script is as follows, at the start I have some metadata relating to the file
|
||||
(setq org-publish-project-alist
|
||||
`(("org-main"
|
||||
:recursive t
|
||||
:base-directory "~/master-folder/org_files/org_web/"
|
||||
:base-directory "~/master-folder/org-platform/org_web/"
|
||||
:publishing-function z/z-publish-to-html
|
||||
:publishing-directory "~/master-folder/org_files/org_web/output"
|
||||
:publishing-directory "~/master-folder/org-platform/org_web/output"
|
||||
:base-extension "org"
|
||||
:auto-sitemap t
|
||||
:sitemap-filename "sitemap.org"
|
||||
@@ -250,8 +250,8 @@ The script is as follows, at the start I have some metadata relating to the file
|
||||
|
||||
("org-categories-sitemap"
|
||||
:recursive t
|
||||
:base-directory "~/master-folder/org_files/org_web/home"
|
||||
:publishing-directory "~/master-folder/org_files/org_web/output/home"
|
||||
:base-directory "~/master-folder/org-platform/org_web/home"
|
||||
:publishing-directory "~/master-folder/org-platform/org_web/output/home"
|
||||
:base-extension "org"
|
||||
:auto-sitemap t
|
||||
:sitemap-filename "categories.org"
|
||||
@@ -262,8 +262,8 @@ The script is as follows, at the start I have some metadata relating to the file
|
||||
:html-head ,z-shared-head
|
||||
)
|
||||
("org-posts"
|
||||
:base-directory "~/master-folder/org_files/org_web/posts"
|
||||
:publishing-directory "~/master-folder/org_files/org_web/output/posts/"
|
||||
:base-directory "~/master-folder/org-platform/org_web/posts"
|
||||
:publishing-directory "~/master-folder/org-platform/org_web/output/posts/"
|
||||
:recursive t
|
||||
:base-extension "org"
|
||||
:publishing-function z/z-publish-to-html
|
||||
@@ -283,8 +283,8 @@ The script is as follows, at the start I have some metadata relating to the file
|
||||
:html-head ,z-shared-head
|
||||
)
|
||||
("org-blogs"
|
||||
:base-directory "~/master-folder/org_files/org_web/blogs"
|
||||
:publishing-directory "~/master-folder/org_files/org_web/output/blogs/"
|
||||
:base-directory "~/master-folder/org-platform/org_web/blogs"
|
||||
:publishing-directory "~/master-folder/org-platform/org_web/output/blogs/"
|
||||
:recursive t
|
||||
:base-extension "org"
|
||||
:publishing-function z/z-publish-to-html
|
||||
@@ -302,8 +302,8 @@ The script is as follows, at the start I have some metadata relating to the file
|
||||
:html-head ,z-shared-head
|
||||
)
|
||||
("org-books"
|
||||
:base-directory "~/master-folder/org_files/org_web/books/"
|
||||
:publishing-directory "~/master-folder/org_files/org_web/output/books/"
|
||||
:base-directory "~/master-folder/org-platform/org_web/books/"
|
||||
:publishing-directory "~/master-folder/org-platform/org_web/output/books/"
|
||||
:recursive t
|
||||
:base-extension "org"
|
||||
:publishing-function z/z-publish-to-html
|
||||
@@ -321,8 +321,8 @@ The script is as follows, at the start I have some metadata relating to the file
|
||||
:html-head ,z-shared-head
|
||||
)
|
||||
("org-2025"
|
||||
:base-directory "~/master-folder/org_files/org_web/blogs/2025/"
|
||||
:publishing-directory "~/master-folder/org_files/org_web/output/blogs/2025/"
|
||||
:base-directory "~/master-folder/org-platform/org_web/blogs/2025/"
|
||||
:publishing-directory "~/master-folder/org-platform/org_web/output/blogs/2025/"
|
||||
:recursive t
|
||||
:base-extension "org"
|
||||
:publishing-function z/z-publish-to-html
|
||||
@@ -340,8 +340,8 @@ The script is as follows, at the start I have some metadata relating to the file
|
||||
:html-head ,z-shared-head
|
||||
)
|
||||
("org-career"
|
||||
:base-directory "~/master-folder/org_files/org_web/posts/career/"
|
||||
:publishing-directory "~/master-folder/org_files/org_web/output/posts/career/"
|
||||
:base-directory "~/master-folder/org-platform/org_web/posts/career/"
|
||||
:publishing-directory "~/master-folder/org-platform/org_web/output/posts/career/"
|
||||
:recursive t
|
||||
:base-extension "org"
|
||||
:publishing-function z/z-publish-to-html
|
||||
@@ -359,8 +359,8 @@ The script is as follows, at the start I have some metadata relating to the file
|
||||
:html-head ,z-shared-head
|
||||
)
|
||||
("wip-pages"
|
||||
:base-directory "~/master-folder/org_files/org_web/"
|
||||
:publishing-directory "~/master-folder/org_files/org_web/output/"
|
||||
:base-directory "~/master-folder/org-platform/org_web/"
|
||||
:publishing-directory "~/master-folder/org-platform/org_web/output/"
|
||||
:recursive t
|
||||
:base-extension "org"
|
||||
:publishing-function z/z-publish-to-html
|
||||
@@ -378,8 +378,8 @@ The script is as follows, at the start I have some metadata relating to the file
|
||||
:html-head ,z-shared-head
|
||||
)
|
||||
("org-tags"
|
||||
:base-directory "~/master-folder/org_files/org_web/tags"
|
||||
:publishing-directory "~/master-folder/org_files/org_web/output/tags"
|
||||
:base-directory "~/master-folder/org-platform/org_web/tags"
|
||||
:publishing-directory "~/master-folder/org-platform/org_web/output/tags"
|
||||
:recursive t
|
||||
:base-extension "org"
|
||||
:publishing-function org-html-publish-to-html
|
||||
@@ -389,16 +389,16 @@ The script is as follows, at the start I have some metadata relating to the file
|
||||
:html-postamble ,z-postamble
|
||||
:html-head ,z-shared-head)
|
||||
("org-assets"
|
||||
:base-directory "~/master-folder/org_files/org_web/assets/"
|
||||
:base-directory "~/master-folder/org-platform/org_web/assets/"
|
||||
:base-extension "css\\|js\\|png\\|jpg\\|gif\\|svg\\|pdf\\|woff\\|woff2\\|ttf"
|
||||
:publishing-directory "~/master-folder/org_files/org_web/output/assets/"
|
||||
:publishing-directory "~/master-folder/org-platform/org_web/output/assets/"
|
||||
:recursive t
|
||||
:publishing-function org-publish-attachment)
|
||||
))
|
||||
|
||||
|
||||
(delete-directory "~/master-folder/org_files/org_web/output/" t)
|
||||
(delete-directory "~/master-folder/org_files/org_web/tags/" t)
|
||||
(delete-directory "~/master-folder/org-platform/org_web/output/" t)
|
||||
(delete-directory "~/master-folder/org-platform/org_web/tags/" t)
|
||||
(message "Directory deleted")
|
||||
|
||||
(z/write-tag-pages)
|
||||
@@ -421,7 +421,7 @@ As the project is hosted on Github, I have created a small script that is able t
|
||||
set -e
|
||||
|
||||
# Define paths
|
||||
ORG_OUTPUT_DIR="$HOME/master-folder/org_files/org_web/output"
|
||||
ORG_OUTPUT_DIR="$HOME/master-folder/org-platform/org_web/output"
|
||||
|
||||
cd "$ORG_OUTPUT_DIR"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user