Hello,
I was just attempting to setup Nikola to render my performance graphs as a
separate site. So I did "new_site", and I couldn't observe any effect. Probably
this explains:
[~/repos]> mkdir t
[~/repos]> cd t/
[~/repos/t]> ../nikola/scripts/nikola new_site
[2014-04-12T17:04:38Z] WARNING: Nikola: Could not guess locale for language en, using locale C
[2014-04-12T17:04:38Z] ERROR: Nikola: This command needs to run inside an existing Nikola site.
I am not updated for a while, so maybe that's fixed already.
Then next up, I wanted to disable archive, and rss feed generation, as it's not going to have any
posts (yet). I put this:
DISABLED_PLUGINS = [ "render_mustache", "local_search", "render_archive", "generate_rss" ]
At render time, it got me this:
TaskError - taskid:render_indexes:output/index.html
PythonAction Error
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/doit/action.py", line 360, in execute
returned_value = self.py_callable(*self.args, **kwargs)
File "../nikola/scripts/../nikola/nikola.py", line 603, in render_template
template_name, None, local_context)
File "/data/home/hayen/repos/nikola/nikola/plugins/template/mako.py", line 88, in render_template
data = template.render_unicode(**context)
File "/usr/lib/python2.7/dist-packages/mako/template.py", line 452, in render_unicode
as_unicode=True)
File "/usr/lib/python2.7/dist-packages/mako/runtime.py", line 807, in _render
**_kwargs_for_callable(callable_, data))
File "/usr/lib/python2.7/dist-packages/mako/runtime.py", line 839, in _render_context
_exec_template(inherit, lclcontext, args=args, kwargs=kwargs)
File "/usr/lib/python2.7/dist-packages/mako/runtime.py", line 865, in _exec_template
callable_(context, *args, **kwargs)
File "/data/home/hayen/repos/nikola-perf/cache/.mako.tmp/
base.tmpl.py", line 89, in render_body
__M_writer(unicode(bootstrap.html_head()))
File "/data/home/hayen/repos/nikola-perf/cache/.mako.tmp/
bootstrap_helper.tmpl.py", line 182, in render_html_head
__M_writer(unicode(_link('rss', None)))
File "../nikola/scripts/../nikola/nikola.py", line 767, in link
return self.path(*args, is_link=True)
File "../nikola/scripts/../nikola/nikola.py", line 731, in path
path = self.path_handlers[kind](name, lang)
KeyError: 'rss'
Not sure, means, I am to disable indexes as well, seems it won't work without the other. Also "render_tags" is affected.
So with this all disabled, how do you recommend to get author
"index.html" from that, I didn't find anything that suggested, and this
didn't do anything: PAGES = (
( "index.rst", "", "story.tmpl" ),
Nor did:
( "*.rst", ".", "story.tmpl" ),
while having an "index.rst" in the site root directory. Only when I changed this to:
but still got me:
PythonAction Error
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/doit/action.py", line 360, in execute
returned_value = self.py_callable(*self.args, **kwargs)
File "../nikola/scripts/../nikola/nikola.py", line 603, in render_template
template_name, None, local_context)
File "/data/home/hayen/repos/nikola/nikola/plugins/template/mako.py", line 88, in render_template
data = template.render_unicode(**context)
File "/usr/lib/python2.7/dist-packages/mako/template.py", line 452, in render_unicode
as_unicode=True)
File "/usr/lib/python2.7/dist-packages/mako/runtime.py", line 807, in _render
**_kwargs_for_callable(callable_, data))
File "/usr/lib/python2.7/dist-packages/mako/runtime.py", line 839, in _render_context
_exec_template(inherit, lclcontext, args=args, kwargs=kwargs)
File "/usr/lib/python2.7/dist-packages/mako/runtime.py", line 865, in _exec_template
callable_(context, *args, **kwargs)
File "/data/home/hayen/repos/nikola-perf/cache/.mako.tmp/
base.tmpl.py", line 89, in render_body
__M_writer(unicode(bootstrap.html_head()))
File "/data/home/hayen/repos/nikola-perf/cache/.mako.tmp/
bootstrap_helper.tmpl.py", line 182, in render_html_head
__M_writer(unicode(_link('rss', None)))
File "../nikola/scripts/../nikola/nikola.py", line 767, in link
return self.path(*args, is_link=True)
File "../nikola/scripts/../nikola/nikola.py", line 731, in path
path = self.path_handlers[kind](name, lang)
KeyError: 'rss'
I figure, I am attempting to do something very unsupported. :/
I don't want to change the theme, as it should be the same as for the
main site. I suppose themes got "RSS" kind of totally hardwired, and I
am for now forced to use RSS it seems.
BTW: Puting "rss_link" in global context to "None" didn't change anything.
Yours,
Kay