Re: [O] Generating sitemap: ‘org-publish-cache-get’ called, but no cache present

2018-01-18 Thread Nicolas Goaziou
Hello,

Vikas Rawal  writes:

> I use this to avoid having to publish the whole project each time
> I add a post.

This is the default behaviour when publishing a project: it only
re-publishes modified files and the sitemap/index.

> I would like to just publish the current file, and
> update the sitemap by running the above code block. Is that not okay?

Does the suggestion above solve fulfill your need?

Regards,

-- 
Nicolas Goaziou



Re: [O] Generating sitemap: ‘org-publish-cache-get’ called, but no cache present

2018-01-18 Thread Vikas Rawal

> 
>> I have been using the following code block to generate a sitemap for my 
>> org-jkyll based blog.
>> 
>> #+begin_src emacs-lisp :results output silent :exports none :cache yes
>>  (org-publish-sitemap
>>   (assoc "indblog" org-publish-project-alist)
>>   "sitemap.org")
>> #+end_src
>> 
>> I had not generated the sitemap for a while, and now I find that it
>> ends with the following message, and sitemap.org 
>> is not recreated.
> 
> `org-publish-sitemap' is not meant to be called directly. It assumes
> project is properly set-up, which is done in its caller,
> `org-publish-projects'.
> 
> So, why don't you simply publish "indblog" project?

I use this to avoid having to publish the whole project each time I add a post. 
I would like to just publish the current file, and update the sitemap by 
running the above code block. Is that not okay?

Vikas




Re: [O] Generating sitemap: ‘org-publish-cache-get’ called, but no cache present

2018-01-15 Thread Nicolas Goaziou
Hello,

Vikas Rawal  writes:

> I have been using the following code block to generate a sitemap for my 
> org-jkyll based blog.
>
> #+begin_src emacs-lisp :results output silent :exports none :cache yes
>   (org-publish-sitemap
>(assoc "indblog" org-publish-project-alist)
>"sitemap.org")
> #+end_src
>
> I had not generated the sitemap for a while, and now I find that it
> ends with the following message, and sitemap.org 
> is not recreated.

`org-publish-sitemap' is not meant to be called directly. It assumes
project is properly set-up, which is done in its caller,
`org-publish-projects'.

So, why don't you simply publish "indblog" project?

Regards,

-- 
Nicolas Goaziou



[O] Generating sitemap: ‘org-publish-cache-get’ called, but no cache present

2018-01-14 Thread Vikas Rawal
I have been using the following code block to generate a sitemap for my 
org-jkyll based blog.

#+begin_src emacs-lisp :results output silent :exports none :cache yes
  (org-publish-sitemap
   (assoc "indblog" org-publish-project-alist)
   "sitemap.org")
#+end_src

I had not generated the sitemap for a while, and now I find that it ends with 
the following message, and sitemap.org  is not recreated.


Generating sitemap for Sitemap for www.indianstatistics.org
org-publish-cache-get: ‘org-publish-cache-get’ called, but no cache present
——

Any pointers?

Vikas

Org version: Org mode version 9.1.4 (release_9.1.4-218-g993f76 @ 
/Users/vikas/.emacs.d/personal/org-mode/lisp/)
Emacs: GNU Emacs 25.3.1 (x86_64-apple-darwin16.3.0, Carbon Version 157 AppKit 
1504.76) of 2017-09-30