Skip to content

Make possible to weblorg-copy-static copy other files than the static directory #32

@semente

Description

@semente

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

No one assigned

    Labels

    designIssues that still need some design discussion before being implementedenhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions