Ihor Radchenko <[email protected]> writes:

> Ihor Radchenko <[email protected]> writes:
>
>> Ihor Radchenko <[email protected]> writes:
>>
>>>> However, it hasn't got uploaded, and the worg/archive/index.html page
>>>> isn't building. Actually, the index page was 404 already when I swept
>>>> for broken links last weekend. Updating it didn't help. Any idea what
>>>> might be the problem?
>>>
>>> That's because worg/archive pages are not exported. See publish.sh
>>>
>>> (cl-remove-if
>>>                (lambda (n) (string-match-p "worg/archive/" n))
>>>                (directory-files-recursively default-directory "\\.org$"))
>>>
>>> Only the .org files are available there.
>>
>> Maybe we should just link to .org files in the archive?


Sure, but how? Relative links to .org files become .html links on
export, and https links to the .org files on the server are not helpful
when browsing Worg in Emacs. Another rewrite in nginx.conf, or did you
have something else in mind?

Draft rewrite (haven't tested, may be buggy):

  rewrite ^/worg/archive/(.*)\.html$ /worg/archive/$1.org

Not actually sure which is better:

- Rewriting to .org files without an explanation.

- Not rewriting, just redirecting people to a small page stating that
  the archive is only for browsing from the Worg repository with Emacs.

- Not linking to archived files at all, just mentioning that it exists
  (AFAICS, Worg contains only three links to the archive in total; one
  is from the worg/index to worg/archive/index, one is from org-people
  to gsoc2012, and one is the one I added).

Regards,
Christian

Reply via email to