Timeline for org mode publish to html uses cache
Current License: CC BY-SA 4.0
10 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Oct 30 at 14:48 | comment | added | NickD |
You should fix your answer appropriately: an accepted answer tells future visitors how to solve the problem, so it should be as correct as possible, otherwise it will be very confusing. In particular, you should change the :exclude value to "\\.site" , which will make it match a literal period only, rather than any character. It is not a complete solution but it will be better than what you have now.
|
|
Oct 29 at 18:20 | comment | added | Louis | No never mind, I don’t know how I missed it. On my local machine, the doc’s got nothing for it. But it’s all good if everything is documented. | |
Oct 28 at 21:41 | comment | added | NickD |
Which part are you talking about? The :exclude part is mentioned both in the manual and in the doc string of org-publish-project-alist . But it assumes that you know what regular expressions are and how to use them. If you don't, then the Emacs manual describes them, although if you find a good tutorial on the web, it might be easier going.
|
|
Oct 28 at 18:43 | comment | added | Louis | @NickD thanks, I edited my answer. Where did you get this information? Looking at the source code? This is not documented at all, or I couldn’t find it. Wouldn’t it be useful to document directly upstream? | |
Oct 28 at 18:41 | history | edited | Louis | CC BY-SA 4.0 |
Add edit
|
Oct 27 at 20:44 | comment | added | NickD |
"It lies in the :base-directory and the :exclude variables. The latter variable inherits from the former." - I don't know what you mean by that, but it sounds either meaningless or wrong. Also when you say ":exclude inherits from :base-directory, therefore actually excluding my base-directory to be published…" you are correct about the base-directory being excluded but that's because it matches the regular expression in :exclude - nothing is "inherited".
|
|
Oct 27 at 20:37 | comment | added | NickD |
Glad you figured it out. I just wanted to point out that the value of the :exclude property is not a path, it is a regular expression. So the unescaped . will match any characted: if e.g. you have directories like mysite , foo_site , supercalifragilisticsite , they will all be excluded, in addition to .site . That is probably not what you want.
|
|
Oct 27 at 19:09 | vote | accept | Louis | ||
S Oct 27 at 19:09 | review | First answers | |||
Oct 27 at 20:14 | |||||
S Oct 27 at 19:09 | history | answered | Louis | CC BY-SA 4.0 |