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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

improve decorators / contributing docs #2933

Merged
merged 2 commits into from Nov 9, 2018

Conversation

elia
Copy link
Member

@elia elia commented Nov 6, 2018

A couple of fixes to docs. I'd also like to address this comment:

<!-- TODO:
   An article about decorators doesn't really belong in the `/extensions`
   directory. In the future, there will be a better home for it.
 -->

but I need to know if there's any plan to do that or what would be the desired new home for the decorators docs.

My proposal would be something like Local Changes or Patching, which would work for both the general application using Solidus directly and the extension developer adding functionality.

Also if there's any collective wisdom to share, would be great to add some guidance on how to patch templates (erb/jbuilder/ecc.) 馃槃.

Otherwise people coming from the website will be confused about where the
doc sources are hosted.

The link now points to the README inside guides/, to which this commit adds
an introductory paragraph with further guidance.
Using `prepend self` avoids repetition and potential errors coming from copy/paste.
Reducing the module nesting makes it less prone to mis-referencing constants by
skipping the namespace, requiring a the qualified reference to be used instead.
Copy link
Member

@kennyadsl kennyadsl left a comment

Choose a reason for hiding this comment

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

Thanks @elia 馃帀

For the general discussion around decorators name, I think Extensions could be a great candidate as well.

Copy link
Contributor

@ericsaupe ericsaupe left a comment

Choose a reason for hiding this comment

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

Thanks for the contribution!

@kennyadsl kennyadsl merged commit 55ab4ea into solidusio:master Nov 9, 2018
@kennyadsl kennyadsl deleted the elia/improve-decorators-docs branch November 9, 2018 16:05
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.

None yet

3 participants