-
Notifications
You must be signed in to change notification settings - Fork 23
Open
Labels
designIssues that still need some design discussion before being implementedIssues that still need some design discussion before being implementedenhancementNew feature or requestNew feature or request
Description
Would be interesting if weblorg-copy-static could copy things outside a predefined static directory. For instance, I use this in org-publish:
("assets"
:base-directory "."
:base-extension "jpg\\|png\\|txt\\|sh\\|el"
:exclude '("^_" "^[.#]" "~$")
:recursive t
:publishing-directory ".build"
:publishing-function org-publish-attachment)
With this I can keep post assets in the same directory of the posts or in any other directory of my choice. Once again, as mentioned in other issues I have open, I want to be able to easily browse my project files using Emacs in the same way as in a web browser.
With weblorg I currently copy these files using rsync but weblorg-copy-static could support something like this:
(weblorg-copy-static
:base-dir "." ; other than theme/static
:input-pattern '("**/.jpg" "**/*.png" "**/*.txt" "**/*.sh" "**/*.el")
:output "output/{{ file }}"
:url "/{{ file }}")
Besides the custom input-pattern and base-dir, note the multiple input values using a list.
Metadata
Metadata
Assignees
Labels
designIssues that still need some design discussion before being implementedIssues that still need some design discussion before being implementedenhancementNew feature or requestNew feature or request