New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix #3022 -- Explain index.html conflicts better #3026
Conversation
I just applied the patch and this is much clearer. Thank you! |
4284929
to
90c2e4a
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, except two small things you might want to consider
nikola/plugins/task/pages.py
Outdated
@@ -43,9 +45,17 @@ def gen_tasks(self): | |||
"filters": self.site.config["FILTERS"], | |||
"show_untranslated_posts": self.site.config['SHOW_UNTRANSLATED_POSTS'], | |||
"demote_headers": self.site.config['DEMOTE_HEADERS'], | |||
"disable_indexes": self.site.config["DISABLE_INDEXES_PLUGIN_INDEX_AND_ATOM_FEED"], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it a good idea to put this into kw
? After all, this value is only needed at task generation time, and its use does not require a rebuild of all pages if it changes.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure, it’s not really needed.
LOGGER.error( | ||
"Post {0!r}: output path ({1}) conflicts with the blog index ({2}). " | ||
"Please change INDEX_PATH or disable index generation.".format( | ||
post.source_path, task['name'], index_paths[lang])) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe mention DISABLE_INDEXES_PLUGIN_INDEX_AND_ATOM_FEED
as a way to disable index generation. That should make it easier for users to react on this message. (And they also see that this affects Atom feed generation.)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Speaking of which, this config setting has a terrible name which should be changed in v8.
Signed-off-by: Chris Warrick <kwpolska@gmail.com>
Signed-off-by: Chris Warrick <kwpolska@gmail.com>
Signed-off-by: Chris Warrick <kwpolska@gmail.com>
2be84b8
to
a9be3c7
Compare
New behavior:
cc @felixfontein @tbm