Christian Moe <[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?
Sorry for the late reply. I think we can extend org-html-link-org-files-as-html to accept a function and make a custom rule for WORG publishing. > 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). Another idea is linking to git repository directly when we link to the archives. -- Ihor Radchenko // yantar92, Org mode maintainer, Learn more about Org mode at <https://orgmode.org/>. Support Org development at <https://liberapay.com/org-mode>, or support my work at <https://liberapay.com/yantar92>
