Skip to content

Conversation

@emersonlaurentino
Copy link
Contributor

@emersonlaurentino emersonlaurentino commented Aug 28, 2018

The component links to be seen in github are broken. I used the kebabCase function in the component headings and this fixes this problem.

The solution proposed in #287 only solves cases where two words are separated by spaces.

@jeroenransijn
Copy link
Contributor

Thanks @emersonlaurentino !

@jeroenransijn jeroenransijn merged commit a12f64d into segmentio:master Aug 30, 2018
@wangcch
Copy link
Contributor

wangcch commented Aug 30, 2018

@emersonlaurentino
Not just two words. You can test.
like:
'a b c'.toLowerCase().replace(/\s+/g, '-') // a-b-c
'a b c'.toLowerCase().replace(/\s+/g, '-') // a-b-c // more space

But I really didn't think about that 'Remove hyphens from both ends'
Thanks~

@emersonlaurentino
Copy link
Contributor Author

Hey, @wangcch.

The problem is when you have a title component like buttonGroup, the current path would be buttongroup. But the correct would be button-group.

@emersonlaurentino emersonlaurentino deleted the fix-docs-component branch August 30, 2018 17:50
@wangcch
Copy link
Contributor

wangcch commented Aug 30, 2018

Sure, you are right.
I'm going to keep trying.

Thanks~ 🙈 @emersonlaurentino

Rowno added a commit that referenced this pull request Sep 24, 2018
* master: (25 commits)
  Remove storybook-deployer
  v3.2.7
  Fix typo in Tooltip proptypes (#321)
  fix githubLink pathname on ComponentReadme (#310)
  Use `rm -rf` in prepublishOnly
  Run the babel builds concurrently
  circleci: fix the gh-pages ignore config
  circleci: fix the gh-pages ignore
  Migrate to circleci 2.0
  Adding a link to Synapse
  Fix wording in Toaster docs (#294)
  v3.2.6
  allow default TableRow keypress events (#221) (#276)
  Fix misspelling of ListItem component name (#268)
  🌲 CI status image (#263)
  Add link to v4 docs and PR
  Add more spacing
  Add Hero image
  Add GitHub hero
  Add note to v4
  ...

# Conflicts:
#	README.md
#	docs/src/components/ComponentReadme.js
#	package.json
#	src/segmented-control/src/SegmentedControl.js
#	src/segmented-control/src/SegmentedControlRadio.js
#	src/segmented-control/src/styles/SegmentedControlAppearances.js
#	src/select-menu/src/OptionsList.js
#	src/select-menu/src/SelectMenuContent.js
#	src/table/src/TableRow.js
#	src/table/stories/index.stories.js
#	src/toaster/docs/index.js
#	yarn.lock
Rowno added a commit that referenced this pull request Sep 25, 2018
* v4: (30 commits)
  Tracking fix (#338)
  add segment tracking (#337)
  Upgrade dependencies v4 (#336)
  V4  Docs (#335)
  Remove storybook-deployer
  Remove storybook-deployer
  v3.2.7
  Fix typo in Tooltip proptypes (#321)
  fix githubLink pathname on ComponentReadme (#310)
  Use `rm -rf` in prepublishOnly
  Run the babel builds concurrently
  circleci: fix the gh-pages ignore config
  circleci: fix the gh-pages ignore
  Migrate to circleci 2.0
  Adding a link to Synapse
  Fix wording in Toaster docs (#294)
  v3.2.6
  allow default TableRow keypress events (#221) (#276)
  Fix misspelling of ListItem component name (#268)
  🌲 CI status image (#263)
  ...

# Conflicts:
#	package.json
prateekgoel pushed a commit to prateekgoel/evergreen that referenced this pull request Oct 26, 2018
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.

3 participants