Skip to content
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

v8: cleanup and a few features #2838

Merged
merged 30 commits into from Jun 16, 2017
Merged

v8: cleanup and a few features #2838

merged 30 commits into from Jun 16, 2017

Conversation

Kwpolska
Copy link
Member

This is the groundwork for Nikola v8. Opinions, nitpicks, etc. always welcome.

When this merges, the master branch is going to be v8, while v7-maintenance is where bugfixes for v7 can happen.

Signed-off-by: Chris Warrick <kwpolska@gmail.com>
Signed-off-by: Chris Warrick <kwpolska@gmail.com>
Signed-off-by: Chris Warrick <kwpolska@gmail.com>
Signed-off-by: Chris Warrick <kwpolska@gmail.com>
Signed-off-by: Chris Warrick <kwpolska@gmail.com>
Signed-off-by: Chris Warrick <kwpolska@gmail.com>
Signed-off-by: Chris Warrick <kwpolska@gmail.com>
Signed-off-by: Chris Warrick <kwpolska@gmail.com>
Signed-off-by: Chris Warrick <kwpolska@gmail.com>
Signed-off-by: Chris Warrick <kwpolska@gmail.com>
Signed-off-by: Chris Warrick <kwpolska@gmail.com>
Signed-off-by: Chris Warrick <kwpolska@gmail.com>
Signed-off-by: Chris Warrick <kwpolska@gmail.com>
Signed-off-by: Chris Warrick <kwpolska@gmail.com>
Signed-off-by: Chris Warrick <kwpolska@gmail.com>
Signed-off-by: Chris Warrick <kwpolska@gmail.com>
@Kwpolska Kwpolska added this to the v8.0.0 milestone Jun 13, 2017
@Kwpolska Kwpolska added this to In Progress in Version 8 Jun 13, 2017
Signed-off-by: Chris Warrick <kwpolska@gmail.com>
@getnikola getnikola deleted a comment Jun 13, 2017
@getnikola getnikola deleted a comment Jun 13, 2017
@getnikola getnikola deleted a comment Jun 13, 2017
@getnikola getnikola deleted a comment Jun 13, 2017
@getnikola getnikola deleted a comment Jun 13, 2017
@getnikola getnikola deleted a comment Jun 13, 2017
import os
import sys

__version__ = '7.8.8'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't this be changed to '8.0.0'? Or will that happen later?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We generally change version numbers right before release. I’ll make it 8.0.0.dev0.

@getnikola getnikola deleted a comment Jun 14, 2017
@getnikola getnikola deleted a comment Jun 14, 2017
@Kwpolska
Copy link
Member Author

If no-one objects, I’m merging this on Friday.

…o render

Signed-off-by: Chris Warrick <kwpolska@gmail.com>
Signed-off-by: Chris Warrick <kwpolska@gmail.com>
Signed-off-by: Chris Warrick <kwpolska@gmail.com>
Signed-off-by: Chris Warrick <kwpolska@gmail.com>
Signed-off-by: Chris Warrick <kwpolska@gmail.com>
Copy link
Contributor

@felixfontein felixfontein left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM (except two things; one should clearly be changed, the other I'm not sure why you changed it)

@@ -315,11 +314,6 @@ def compile_string(self, data, source_path=None, is_two_file=True, post=None, la
# This function used to have some different APIs in different places.
raise NotImplementedError()

# TODO remove in v8
def compile_html(self, source, dest, is_two_file=True):
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The self.compile_html(...) call a few lines up should be replaced by raise NotImplementedError().

@@ -49,7 +48,7 @@ def compile_string(self, data, source_path=None, is_two_file=True, post=None, la
if not is_two_file:
_, data = self.split_metadata(data)
new_data, shortcodes = sc.extract_shortcodes(data)
return self.site.apply_shortcodes_uuid(new_data, shortcodes, filename=source_path, with_dependencies=True, extra_context=dict(post=post))
return self.site.apply_shortcodes_uuid(new_data, shortcodes, filename=source_path, extra_context={'post': post})
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why are you removing with_dependencies=True here and at other places?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, I didn't notice that you changed the API in nikola.py since apparently github was hiding its diff and so I couldn't find it. I now saw it when checking out the branch and looking in there...

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

BTW, the compile_string in php.py was bad; I added a commit to fix it.

@getnikola getnikola deleted a comment Jun 15, 2017
Signed-off-by: Chris Warrick <kwpolska@gmail.com>
@Kwpolska Kwpolska merged commit 4f2574c into master Jun 16, 2017
@Kwpolska Kwpolska deleted the v8-cleanup branch June 16, 2017 08:01
@Kwpolska Kwpolska moved this from In Progress to Done in Version 8 Jul 10, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
No open projects
Version 8
  
Done
Development

Successfully merging this pull request may close these issues.

None yet

4 participants