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

Define path with __dir__ #69

Merged
merged 1 commit into from
Sep 25, 2017
Merged

Define path with __dir__ #69

merged 1 commit into from
Sep 25, 2017

Conversation

DirtyF
Copy link
Contributor

@DirtyF DirtyF commented Sep 22, 2017

@@ -200,8 +200,8 @@ def self.get_template_contents(template)
template_file = Jekyll::WebmentionIO.config["templates"][template]
else
# Jekyll::WebmentionIO::log 'info', "Using default #{template} template"
template_file = File.join(File.dirname(File.expand_path(__FILE__)), "templates/#{template}.html")
end
template_file = File.join(File.expand_path(__dir__), "templates/#{template}.html")

Choose a reason for hiding this comment

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

template_file = File.expand_path("templates/#{template}.html", __dir__)

@@ -39,7 +39,7 @@ def generate(site)

config = config.merge(site_config)

source = File.join(File.dirname(File.expand_path(__FILE__)), "../assets/")
source = File.join(File.expand_path(__dir__), "assets/")

Choose a reason for hiding this comment

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

source = File.expand_path("../assets/", __dir__)

require "jekyll"
require "jekyll-webmention_io"
require "html-proofer"

ENV["JEKYLL_LOG_LEVEL"] = "error"

def dest_dir
File.expand_path("../tmp/dest", File.dirname(__FILE__))
File.expand_path("tmp/dest", __dir__)

Choose a reason for hiding this comment

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

File.expand_path("../tmp/dest", __dir__)

@DirtyF
Copy link
Contributor Author

DirtyF commented Sep 22, 2017

@bogdanvlviv addressed your feedback 👍

@aarongustafson
Copy link
Owner

Looks good.

@aarongustafson aarongustafson merged commit 9ad426e into aarongustafson:master Sep 25, 2017
@DirtyF DirtyF deleted the dir branch September 25, 2017 18:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants