ctubbsii commented on code in PR #14:
URL: https://github.com/apache/thrift-website/pull/14#discussion_r3103584204


##########
_plugins/remote_snippets.rb:
##########
@@ -22,7 +22,7 @@ def initialize(tag_name, text, tokens)
   def render(context)
     title = context.registers[:site].config['title']
     prefix = context.registers[:site].config['gitbox_url']
-    url = "#{prefix};a=blob_plain;hb=HEAD;f=#{@path}"
+    url = ENV["THRIFT_DIR"] ? File.new("#{ENV["THRIFT_DIR"]}/#{@path}") : 
"#{prefix};a=blob_plain;hb=HEAD;f=#{@path}"

Review Comment:
   It's fine with me to leave it in. It's just not obvious that it's available 
and how to use it. Could update the README to mention how to use it (and why).



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to