Hello Thomas,

thank you for your help.

On 2025-04-17, Thomas Ingram wrote:

> I think the easiest solution would be to use a :completion-function to rename 
> all the filenames to remove the lang identifier.
>
> (defun my/rename-files (project-alist)

yes I was considering this but

>    ....
>
> You can use org-publish-get-base-files to get the list of files and
> use rename-file on them.

AFAIU org-publish-get-base-files returns the list of all _source_ files in
project, those founf in :base-directory with extension :base-extension

...but I need the list of published files, possibly only in one specific
component from the :components of the project

For example this is defined in the ("mysite - EN"...) component:

--8<---------------cut here---------------start------------->8---

 :base-extension "en.org"
 :base-directory "./source/swws/content"
 :publishing-directory "./public/swws/en"

--8<---------------cut here---------------end--------------->8---

I searched for a function like "org-publish-get-published-files" but I
couldn't find it.

Thanks! Gio'

-- 
Giovanni Biscuolo

SoftwareWorkers S.r.l.

Attachment: signature.asc
Description: PGP signature

Reply via email to