Skip to content

Commit 184f70e

Browse files
tonyjmartinezsapegin
authored andcommitted
Docs: Fixed typos/grammar in the docs (styleguidist#1447)
1 parent 92659a0 commit 184f70e

File tree

7 files changed

+50
-50
lines changed

7 files changed

+50
-50
lines changed

docs/Configuration.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ By default, Styleguidist will look for `styleguide.config.js` file in your proje
5656

5757
Type: `String` or `Array`, optional
5858

59-
Your application static assets folder, will be accessible as `/` in the style guide dev server.
59+
Your application static assets folder will be accessible as `/` in the style guide dev server.
6060

6161
#### `compilerConfig`
6262

@@ -439,13 +439,13 @@ module.exports = {
439439

440440
Type: `Number`, default: 500
441441

442-
Debounce time in milliseconds used before render the changes from the editor. While typing code the preview will not be updated.
442+
Debounce time in milliseconds used before rendering the changes from the editor. While typing code the preview will not be updated.
443443

444444
#### `propsParser`
445445

446446
Type: `Function`, optional
447447

448-
Function that allows you to override the mechanism used to parse props from a source file. Default mechanism is using [react-docgen](https://github.com/reactjs/react-docgen) to parse props.
448+
Function that allows you to override the mechanism used to parse props from a source file. The default mechanism is using [react-docgen](https://github.com/reactjs/react-docgen) to parse props.
449449

450450
```javascript
451451
module.exports = {
@@ -521,7 +521,7 @@ module.exports = {
521521
}
522522
```
523523

524-
Use [theme](#theme) config option to change ribbon style.
524+
Use the [theme](#theme) config option to change ribbon style.
525525

526526
#### `sections`
527527

@@ -547,7 +547,7 @@ Dev server port.
547547

548548
Type: `Boolean`, default: `true`
549549

550-
Toggle sidebar visibility. Sidebar will be hidden when opening components or examples in isolation mode even if this value is set to `true`. When set to `false`, sidebar will always be hidden.
550+
Toggle sidebar visibility. The sidebar will be hidden when opening components or examples in isolation mode even if this value is set to `true`. When set to `false`, the sidebar will always be hidden.
551551

552552
#### `skipComponentsWithoutExample`
553553

@@ -688,7 +688,7 @@ export default
688688

689689
Type: `Function`, optional
690690

691-
Function that modifies code example (Markdown fenced code block). For example you can use it to load examples from files:
691+
Function that modifies code example (Markdown fenced code block). For example, you can use it to load examples from files:
692692

693693
```javascript
694694
module.exports = {

docs/Cookbook.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
- [How to change style guide dev server logs output?](#how-to-change-style-guide-dev-server-logs-output)
2020
- [How to debug my components and examples?](#how-to-debug-my-components-and-examples)
2121
- [How to debug the exceptions thrown from my components?](#how-to-debug-the-exceptions-thrown-from-my-components)
22-
- [How to use production or development build of React?](#how-to-use-production-or-development-build-of-react)
22+
- [How to use the production or development build of React?](#how-to-use-the-production-or-development-build-of-react)
2323
- [Why object references don’t work in example component state?](#why-object-references-dont-work-in-example-component-state)
2424
- [How to use Vagrant with Styleguidist?](#how-to-use-vagrant-with-styleguidist)
2525
- [How to add a favicon?](#how-to-add-a-favicon)
@@ -68,7 +68,7 @@ module.exports = {
6868
6969
## How to hide some components in style guide but make them available in examples?
7070

71-
Enable [skipComponentsWithoutExample](Configuration.md#skipcomponentswithoutexample) option and do not add example file (`Readme.md` by default) to components you want to ignore.
71+
Enable [skipComponentsWithoutExample](Configuration.md#skipcomponentswithoutexample) option and do not add an example file (`Readme.md` by default) to components you want to ignore.
7272

7373
Import these components in your examples:
7474

@@ -270,9 +270,9 @@ module.exports = {
270270

271271
You can replace any Styleguidist React component. But in most of the cases you’ll want to replace `*Renderer` components — all HTML is rendered by these components. For example `ReactComponentRenderer`, `ComponentsListRenderer`, `PropsRenderer`, etc. — [check the source](https://github.com/styleguidist/react-styleguidist/tree/master/src/client/rsg-components) to see what components are available.
272272

273-
There’s also a special wrapper component — `Wrapper` — that wraps every example component. By default it just renders `children` as is but you can use it to provide a custom logic.
273+
There’s also a special wrapper component — `Wrapper` — that wraps every example component. By default, it just renders `children` as is but you can use it to provide custom logic.
274274

275-
For example you can replace the `Wrapper` component to wrap any example in the [React Intl’s](https://github.com/yahoo/react-intl) provider component. You can’t wrap the whole style guide because every example is compiled separately in a browser.
275+
For example, you can replace the `Wrapper` component to wrap any example in the [React Intl’s](https://github.com/yahoo/react-intl) provider component. You can’t wrap the whole style guide because every example is compiled separately in a browser.
276276

277277
```javascript
278278
// styleguide.config.js
@@ -401,9 +401,9 @@ module.exports = {
401401
2. Press the ![Debugger](https://d3vv6lp55qjaqc.cloudfront.net/items/2h2q3N123N3G3R252o41/debugger.png) button in your browser’s developer tools.
402402
3. Press the ![Continue](https://d3vv6lp55qjaqc.cloudfront.net/items/3b3c1P3g3O1h3q111I2l/continue.png) button and the debugger will stop execution at the next exception.
403403

404-
## How to use production or development build of React?
404+
## How to use the production or development build of React?
405405

406-
In some cases, you might need to use development build of React instead of the default [production one](https://reactjs.org/docs/optimizing-performance.html#use-the-production-build). For example, this might be needed if you use React Native and make references to a React Native component’s PropTypes in your code. As React removes all PropTypes in its production build, your code will fail. By default, Styleguidist uses the development build for the dev server, and the production one for static builds.
406+
In some cases, you might need to use the development build of React instead of the default [production one](https://reactjs.org/docs/optimizing-performance.html#use-the-production-build). For example, this might be needed if you use React Native and make references to a React Native component’s PropTypes in your code. As React removes all PropTypes in its production build, your code will fail. By default, Styleguidist uses the development build for the dev server and the production one for static builds.
407407

408408
```js
409409
import React from 'react'
@@ -452,7 +452,7 @@ initialState = {
452452

453453
## How to use Vagrant with Styleguidist?
454454

455-
First read [Vagrant guide](https://webpack.js.org/guides/development-vagrant/) from the webpack documentation. Then enable polling in your webpack config:
455+
First, read [Vagrant guide](https://webpack.js.org/guides/development-vagrant/) from the webpack documentation. Then enable polling in your webpack config:
456456

457457
```js
458458
devServer: {
@@ -503,7 +503,7 @@ module.exports = {
503503
}
504504
```
505505

506-
In comparison to [require](Configuration.md#require) option, these scripts and links are run in the browser, not during webpack build process. It can be useful for side effect-causing scripts which your components, or in this case Babel output, need to function properly.
506+
In comparison to [require](Configuration.md#require) option, these scripts and links are run in the browser, not during webpack build process. It can be useful for side effect-causing scripts in which your components, or in this case Babel output, need to function properly.
507507

508508
## How to add fonts from Google Fonts?
509509

@@ -539,7 +539,7 @@ See [working with third-party libraries](Thirdparties.md).
539539

540540
## How to change the names of components displayed in Styleguidist UI?
541541

542-
You might want to change your components’ names to be displayed differently, for example, for stylistic purposes or to give them a more descriptive names in your style guide.
542+
You might want to change your components’ names to be displayed differently, for example, for stylistic purposes or to give them more descriptive names in your style guide.
543543

544544
This can be done by adding [@visibleName](Documenting.md#defining-custom-component-names) tag to your component documentation.
545545

@@ -558,7 +558,7 @@ module.exports = {
558558

559559
## What’s the difference between Styleguidist and Storybook?
560560

561-
Both tools are good and mature, they have many similarities but also some distinctions that may make you choose one or the other. For me the biggest distinction is how you describe component variations.
561+
Both tools are good and mature, they have many similarities but also some distinctions that may make you choose one or the other. For me, the biggest distinction is how you describe component variations.
562562

563563
With [Storybook](https://storybook.js.org/) you write _stories_ in JavaScript files:
564564

docs/Development.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
_For basics see [How to contribute](https://github.com/styleguidist/react-styleguidist/blob/master/.github/Contributing.md)._
1616

17-
Styleguidist isn’t an ordinary single page app and some design decisions may look confusing to an outsider. In this guide we’ll explain these decisions to un-confuse potential contributors.
17+
Styleguidist isn’t an ordinary single-page app and some design decisions may look confusing to an outsider. In this guide, we’ll explain these decisions to un-confuse potential contributors.
1818

1919
The main thing is that we’re running two apps at the same time: user’s components and Styleguidist UI. They share a webpack configuration and have styles in the same scope (there’s only one scope in CSS). And we can control only one of these two apps: Styleguidist UI. That puts us under some restrictions:
2020

@@ -38,9 +38,9 @@ We use webpack loaders to hot reload the style guide on changes in user componen
3838
- `props-loaders`: loads props documentation using react-docgen;
3939
- `examples-loader`: loads examples from Markdown files;
4040

41-
Styleguidist tries to load and reuse user’s webpack config (`webpack.config.js` in project root folder). It works most of the time but has some restrictions: Styleguidist [ignores](https://github.com/styleguidist/react-styleguidist/blob/master/src/scripts/utils/mergeWebpackConfig.js) some fields and plugins because they are already included (like `webpack.HotModuleReplacementPlugin`), don’t make sense for a style guide (like `output`) or may break Styleguidist (like `entry`).
41+
Styleguidist tries to load and reuse the user’s webpack config (`webpack.config.js` in project root folder). It works most of the time but has some restrictions: Styleguidist [ignores](https://github.com/styleguidist/react-styleguidist/blob/master/src/scripts/utils/mergeWebpackConfig.js) some fields and plugins because they are already included (like `webpack.HotModuleReplacementPlugin`), don’t make sense for a style guide (like `output`) or may break Styleguidist (like `entry`).
4242

43-
We’re trying to keep Styleguidist’s own [webpack config](https://github.com/styleguidist/react-styleguidist/blob/master/src/scripts/make-webpack-config.js) minimal to reduce clashes with user’s configuration.
43+
We’re trying to keep Styleguidist’s [webpack config](https://github.com/styleguidist/react-styleguidist/blob/master/src/scripts/make-webpack-config.js) minimal to reduce clashes with the user’s configuration.
4444

4545
## React components
4646

@@ -74,7 +74,7 @@ Each component folder usually has several files:
7474

7575
## Styles
7676

77-
For styles we use [JSS](http://cssinjs.org/), it allows users to customize their style guide and allows us to ensure styles isolations (thanks to [jss-isolate](http://cssinjs.org/jss-isolate/)). No user styles should affect Styleguidist UI and no Styleguidist styles should affect user components.
77+
For styles we use [JSS](http://cssinjs.org/), it allows users to customize their style guide and allows us to ensure style isolation (thanks to [jss-isolate](http://cssinjs.org/jss-isolate/)). No user styles should affect Styleguidist UI and no Styleguidist styles should affect user components.
7878

7979
Use [clsx](https://github.com/lukeed/clsx) to merge several class names or for conditional class names, import it as `cx` (`import cx from 'clsx'`).
8080

docs/Documenting.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Documenting components
22

3-
Styleguidist generates documentation for your components based on the comments in your source code, propTypes declarations and Readme files.
3+
Styleguidist generates documentation for your components based on the comments in your source code, propTypes declarations, and Readme files.
44

55
> **Note:** [See examples](https://github.com/styleguidist/react-styleguidist/tree/master/examples/basic/src/components) of documented components in our demo style guide.
66
@@ -56,7 +56,7 @@ export default class Button extends React.Component {
5656
5757
## Usage examples and Readme files
5858

59-
Styleguidist will look for any `Readme.md` or `ComponentName.md` files in the component’s folder and display them. Any code block with a language tag of `js`, `jsx` or `javascript` will be rendered as a React component with an interactive playground. For backwards compatibility, code blocks without a language tag are also rendered in this way. It is recommended to always use the proper language tag for new documentation.
59+
Styleguidist will look for any `Readme.md` or `ComponentName.md` files in the component’s folder and display them. Any code block with a language tag of `js`, `jsx`, or `javascript` will be rendered as a React component with an interactive playground. For backwards compatibility, code blocks without a language tag are also rendered in this way. It is recommended to always use the proper language tag for new documentation.
6060

6161
React component example:
6262

@@ -92,7 +92,7 @@ Styleguidist will look for any `Readme.md` or `ComponentName.md` files in the co
9292

9393
> **Note:** You can configure examples file name with the [getExampleFilename](Configuration.md#getexamplefilename) option.
9494
95-
> **Note:** If you need to display some JavaScript code in your documentation that you don’t want rendered as an interactive playground you can use the `static` modifier with a language tag (e.g. `js static`).
95+
> **Note:** If you need to display some JavaScript code in your documentation that you don’t want to be rendered as an interactive playground you can use the `static` modifier with a language tag (e.g. `js static`).
9696
9797
## External examples using doclet tags
9898

@@ -131,7 +131,7 @@ insertAtCursor(text) {
131131

132132
## Ignoring props
133133

134-
By default, all props your components have are considered to be public and are published. In some rare cases you might want to remove a prop from the documentation while keeping it in the code. To do so, mark the prop with JSDoc [`@ignore`](http://usejsdoc.org/tags-ignore.html) tag to remove it from the docs:
134+
By default, all props your components have are considered to be public and are published. In some rare cases, you might want to remove a prop from the documentation while keeping it in the code. To do so, mark the prop with JSDoc [`@ignore`](http://usejsdoc.org/tags-ignore.html) tag to remove it from the docs:
135135

136136
```javascript
137137
MyComponent.propTypes = {
@@ -157,7 +157,7 @@ Use `@visibleName` JSDoc tag to define component names that are used in the Styl
157157
class Button extends React.Component {
158158
```
159159
160-
The component will be displayed with a custom “The Best Button Ever 🐙” name and this will not change the name of the component used in code of your app or Styleguidist examples.
160+
The component will be displayed with a custom “The Best Button Ever 🐙” name and this will not change the name of the component used in the code of your app or Styleguidist examples.
161161
162162
## Using JSDoc tags
163163

docs/Maintenance.md

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@
1010
- [Releases](#releases)
1111
- [Patch releases](#patch-releases)
1212
- [Minor and major releases](#minor-and-major-releases)
13-
- [Change logs](#change-logs)
14-
- [What is a good change log](#what-is-a-good-change-log)
15-
- [What should be in a change log](#what-should-be-in-a-change-log)
16-
- [Preparing a change log](#preparing-a-change-log)
13+
- [Changelogs](#changelogs)
14+
- [What is a good changelog](#what-is-a-good-changelog)
15+
- [What should be in a changelog](#what-should-be-in-a-changelog)
16+
- [Preparing a changelog](#preparing-a-changelog)
1717

1818
<!-- tocstop -->
1919

@@ -50,38 +50,38 @@ Patch releases are fully automated — any commit of a `Fix` type is published a
5050

5151
### Minor and major releases
5252

53-
We’re using [milestones](https://github.com/styleguidist/react-styleguidist/milestones) to group approved pull requests that should be released together. Minor and major releases require a change log (see below). Any commit of a `Feat` type will not trigger a release until you commit a change log. Semantic-release will publish a major release, if there are any commits with [breaking changes](https://github.com/tamiadev/semantic-release-tamia/blob/master/Convention.md#breaking-changes).
53+
We’re using [milestones](https://github.com/styleguidist/react-styleguidist/milestones) to group approved pull requests that should be released together. Minor and major releases require a changelog (see below). Any commit of a `Feat` type will not trigger a release until you commit a changelog. Semantic-release will publish a major release if there are any commits with [breaking changes](https://github.com/tamiadev/semantic-release-tamia/blob/master/Convention.md#breaking-changes).
5454

5555
1. Merge all pull request from a milestone
5656
2. Resolve possible merge conflicts.
57-
3. Manually check that Styleguidist is still works.
58-
4. Prepare and commit a change log.
57+
3. Manually check that Styleguidist still works.
58+
4. Prepare and commit a changelog.
5959
5. Wait until semantic-release publishes the release.
6060
6. Tweet the release!
6161

62-
## Change logs
62+
## Changelogs
6363

64-
### What is a good change log
64+
### What is a good changelog
6565

66-
- Change logs are written for users, not developers.
67-
- Change log should show new features with code examples or GIFs.
68-
- Change log should make all breaking changes clear.
69-
- Change log should explain how to migrate to a new versions if there are breaking changes.
70-
- Commit log **is not** a change log.
66+
- Changelogs are written for users, not developers.
67+
- Changelog should show new features with code examples or GIFs.
68+
- Changelog should make all breaking changes clear.
69+
- Changelog should explain how to migrate to a new version if there are breaking changes.
70+
- Commit log **is not** a changelog.
7171

72-
Here’s a [good example of a change log](https://github.com/styleguidist/react-styleguidist/releases/tag/v7.1.0). Check out [Keep a Changelog](https://keepachangelog.com/) for more details on good change logs.
72+
Here’s a [good example of a changelog](https://github.com/styleguidist/react-styleguidist/releases/tag/v7.1.0). Check out [Keep a Changelog](https://keepachangelog.com/) for more details on good changelogs.
7373

74-
### What should be in a change log
74+
### What should be in a changelog
7575

7676
- Information about pull request authors:<br> `(#1040 by @rafaesc)`
7777
- Open Collective link at the very top:<br> `👋 **[Support Styleguidist](https://opencollective.com/styleguidist) on Open Collective** 👋`
7878

79-
### Preparing a change log
79+
### Preparing a changelog
8080

8181
1. Change to the `master` branch.
82-
2. Generate a change log draft using [tamia-changelog](https://github.com/tamiadev/tamia-changelog): `npx tamia-changelog`
82+
2. Generate a changelog draft using [tamia-changelog](https://github.com/tamiadev/tamia-changelog): `npx tamia-changelog`.
8383
3. Edit `Changelog.md` file.
84-
4. Commit the change log: `npx tamia-changelog commit`.
84+
4. Commit the changelog: `npx tamia-changelog commit`.
8585

8686
**Note:** do not commit the `Changelog.md` file, the release tool reads the changelog from the commit message. [Read how it works](https://blog.sapegin.me/all/semantic-release/).
8787

0 commit comments

Comments
 (0)