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

Add extra HTML markup to make previews easier to find with CSS selectors #243

Merged
merged 3 commits into from
Nov 20, 2016
Merged

Add extra HTML markup to make previews easier to find with CSS selectors #243

merged 3 commits into from
Nov 20, 2016

Conversation

n1313
Copy link
Collaborator

@n1313 n1313 commented Nov 19, 2016

Fixes #238

@@ -3,3 +3,4 @@ examples/**/styleguide/index.html
.publish/
node_modules/
Changelog.md
.DS_Store
Copy link
Member

Choose a reason for hiding this comment

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

Please you your global gitignore for that.

@n1313
Copy link
Collaborator Author

n1313 commented Nov 19, 2016

Hmm, okay, that's unusual but I can redo the PR. Is there any harm in having it ignored explicitly and not depending on an implicit undocumented global setting, though?

Sent from my iPhone

On 19 Nov 2016, at 16:37, Artem Sapegin notifications@github.com wrote:

@sapegin commented on this pull request.

In .gitignore:

@@ -3,3 +3,4 @@ examples/**/styleguide/index.html
.publish/
node_modules/
Changelog.md
+.DS_Store
Please you your global gitignore for that.


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or mute the thread.

@sapegin
Copy link
Member

sapegin commented Nov 19, 2016

It’s well documented and I think it‘s better to configure it once for your system than add to each project separately. You can just revert this commit, I’ll squash everything anyway.

@n1313
Copy link
Collaborator Author

n1313 commented Nov 19, 2016

I understand your point, and I agree that adding .DS_Store to a global ignore is a good idea. Unfortunately it is not a widely adopted approach (I think this is the only repo I know of that does that) and it is not documented anywhere (the decision to depend on a globally ignored .DS_Store, not the idea of having a global gitignore), so I think this kind of clash is bound to happen again, I'm afraid.

@sapegin
Copy link
Member

sapegin commented Nov 19, 2016

I should make a poll in Twitter ;-) For me it happens maybe once in a year and it could be any kind of artifacts of tools developers use on their computers. I wouldn’t expect every project have all these things in their gitignore.

@sapegin
Copy link
Member

sapegin commented Nov 19, 2016

But probably you’re right and it‘s just my perfectionism ;-) I’ve checked a few popular JS projects (React, Redux, Lodash, etc.): all of them have .DS_Store, many have .idea and other things.

@n1313
Copy link
Collaborator Author

n1313 commented Nov 20, 2016

Well, I leave it to you to decide whether you want to have things like .DS_Store or npm-debug.log in there. I have reverted my .gitignore change. Please review the PR.

@sapegin sapegin merged commit f0fe0d3 into styleguidist:master Nov 20, 2016
@n1313 n1313 deleted the component-container-ids branch November 20, 2016 12:04
sapegin added a commit that referenced this pull request Nov 22, 2016
## New feature

Now style guide should hot reload when you add new components.

New config option , by default will watch common root folder for all your components.

(#242 by @aaronjensen)

## Bug fixes and other improvements

* Don’t show sidebar if there are no components found (#247 by @n1313)
* Add mobile styles to improve display on narrow screens (#244 by @n1313)
* Add extra HTML markup to make previews easier to find with CSS selectors (#238, #243 by @n1313)
sapegin added a commit that referenced this pull request Nov 22, 2016
## New feature

Now style guide should hot reload when you add new components.

New config option , by default will watch common root folder for all your components.

(#242 by @aaronjensen)

## Bug fixes and other improvements

* Don’t show sidebar if there are no components found (#247 by @n1313)
* Add mobile styles to improve display on narrow screens (#244 by @n1313)
* Add extra HTML markup to make previews easier to find with CSS selectors (#238, #243 by @n1313)
sapegin pushed a commit that referenced this pull request Jan 3, 2017
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

2 participants