From b5fcffe362f5334a70d885e7a269ec9addb6a841 Mon Sep 17 00:00:00 2001 From: Arun Isaac Date: Fri, 19 Aug 2022 01:18:12 +0530 Subject: Rename :video-directory setting to :videos-directory. * ennum.el (ennum-setting, ennum-blog): Rename :video-directory setting to :videos-directory. (ennum-publish-link): Use :videos-directory setting instead of :video-directory. * ennum-html.el (ennum-html-link, ennum-html-follow-video): Use :videos-directory setting instead of :video-directory. --- ennum-html.el | 4 ++-- ennum.el | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/ennum-html.el b/ennum-html.el index d0bd7e1..5198a80 100644 --- a/ennum-html.el +++ b/ennum-html.el @@ -310,7 +310,7 @@ ("video" (xmlgen `(video :src ,(url-encode-url - (expand-file-name* path (ennum-setting :video-directory))) + (expand-file-name* path (ennum-setting :videos-directory))) :poster ,(url-encode-url (expand-file-name* (ennum-video-link-poster @@ -366,7 +366,7 @@ (defun ennum-html-follow-video (path) (ennum-html-follow (expand-file-name path - (ennum-setting :video-directory)))) + (ennum-setting :videos-directory)))) (org-link-set-parameters "video" diff --git a/ennum.el b/ennum.el index 28109a5..476d870 100644 --- a/ennum.el +++ b/ennum.el @@ -25,7 +25,7 @@ Valid properties are described below. Absolute path to directory containing the blog source code. All paths (`:posts-directory', `:images-directory', -`:static-directory', `:video-directory' `:other-files-directory', +`:static-directory', `:videos-directory' `:other-files-directory', `:output-directory', `:store', etc.) are interpreted relative to this path. @@ -56,7 +56,7 @@ that are linked to from a post using the \"static\" link type are published. Static files not linked to from any post are not published. -`:video-directory' +`:videos-directory' Source directory containing video files that are linked to. Video files that are linked to from a post using the \"video\" link @@ -658,7 +658,7 @@ result as a string." (pcase property ((or :blog-domain :blog-license :blog-title :images-directory :output-directory :posts-directory - :static-directory :tag-directory :video-directory + :static-directory :tag-directory :videos-directory :working-directory) (or (plist-get ennum-blog property) (user-error "Property %s not defined" property))) @@ -764,7 +764,7 @@ recognized as a directory, it should end in a slash. See ('video (seq-map 'ennum-publish-copy (list - (ennum--file-join (ennum-setting :video-directory) + (ennum--file-join (ennum-setting :videos-directory) (ennum-link-path link)) (ennum--file-join (ennum-setting :images-directory) (ennum-video-link-poster link))))))) -- cgit v1.2.3