-
-
Notifications
You must be signed in to change notification settings - Fork 17
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
Allow request md files with or without the .md extension #66
Conversation
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.
Looks great, besides a couple of suggestions and the fact that it fails CI at this stage.
Let me know if I can help.
lib/madness/breadcrumbs.rb
Outdated
@@ -27,7 +27,7 @@ def get_breadcrumbs | |||
def breadcrumbs_maker(partial_path) | |||
parent, basename = File.split partial_path | |||
item = OpenStruct.new({ | |||
label: basename.to_label, | |||
label: File.basename(basename, '.md').to_label, |
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 this would be better in StringRefinements#to_label
?
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.
Ok. You are right
spec/fixtures/cli/theme-ls
Outdated
@@ -1,4 +1,3 @@ | |||
tmp/theme-test: | |||
public |
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.
Why the change in this file? Seems to also be related to why the CI tests fail?
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.
Sorry. I don't know why the output of ls -R #{theme_dir}
is different on my system. I'm going to recover the previous content and comment that test in local to be able to check the other ones.
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.
No worries. I will change the test to be more tolerant after we merge this.
Beautiful work. Is it ready to merge as far as you are concerned? |
Yes. I think so. |
Thanks for the nice PR. This is now released as v0.6.2 |
Proposal to solve the issue #65