On 16/12/2025 18:41, Rens Oliemans wrote:
- When the 'libredirect data' (what should we redirect to what) changes
   between publishing, we now export all org files rather than only updated
   ones, described by Christian and Ihor.

Will it work at sr.ht builders? I expect that CI starts from clean state. So libredirect data should be effectively changed every build.

+(defun add-alternative-links (&optional _)
[...]
+                   (insert (format "[[%s][%s]] " new-url description)))

`org-link-make-string'?

+(defun -find-replacement (path)
[...]
+       (pcase path
[...]
+        ((rx "//" (? "www\.")

Does emacs have URL parser (in url or some other package)? Properly parsing URLs is really tricky:
<https://url.spec.whatwg.org/#concept-basic-url-parser>

Although worg should not have really weird links causing ambiguity, I would at least add begin of string anchor \`.

In my opinion (perhaps others do not share it), fetching data from network should be performed in a separate build step. Every local rebuild should not require updating replacement list. There still may be a convenience command that runs both data fetch and build.

Reply via email to