Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Adds the relative path of a file to the section hash #59

Closed
wants to merge 1 commit into
from

Conversation

Projects
None yet
1 participant

sirbrad commented Jan 23, 2013

So I saw how you guys were linking to a Github file for the stylesheet responsible for each UI element. For clarification;
Example link

I have my stylesheets separated into different folders so just having the current file's basename wasn't enough. So this PR adds the current file's relative path to the hash so it can be used create part of the file's url on Github. I'm pretty new to Rails let alone Ruby so I'm sure this could be handled better.

Example usage would be to set up a helper method that takes the hash as an argument and return https://github.com/user/repo/#{arg.filepath}/#{arg.filename}.

@sirbrad sirbrad closed this May 28, 2013

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment