Skip to content

Commit cf6b2ac

Browse files
committed
Style(repo): Fix documentation content according to the textlint rules
1 parent 67bbac9 commit cf6b2ac

File tree

30 files changed

+118
-118
lines changed

30 files changed

+118
-118
lines changed

CONTRIBUTING.md

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Contributing to Spirit Design System
22

3-
First of all, thanks for your contribution to this project! ❤️
3+
Thanks for your contribution to this project! ❤️
44
Here are some tips how to make your contributing efforts efficient and eventually accepted & merged:
55

66
- [General Usage](#general-usage)
@@ -31,7 +31,7 @@ See [Developer Handbook][developer-handbook] for more information about developm
3131

3232
## Commit Conventions
3333

34-
All commits you make SHOULD adhere to our commit guidelines. We use [conventional commits][conventional-commits] strategy with a slight modification of our own - [@lmc-eu/commitlint-config][commitlint-config]. This is later used during the release phase to determine how to bump the packages' version numbers based on commit history. 🚀
34+
All commits you make SHOULD adhere to our commit guidelines. We use [conventional commits][conventional-commits] strategy with a slight modification of our own - [@lmc-eu/commitlint-config][commitlint-config]. This is later used during the release phase to determine how to bump the packages version numbers based on commit history. 🚀
3535

3636
### Commit Message Format
3737

@@ -74,7 +74,7 @@ The `<type>` and `<summary>` fields are mandatory, the `(<scope>)` field is opti
7474

7575
MUST be one of the following:
7676

77-
- **Chore**: Changes to our CI configuration files and scripts (examples: CircleCI, SauceLabs) or changes that affect the build system
77+
- **Chore**: Changes to our CI configuration files and scripts (examples: CircleCI, SauceLabs) or changes that affect the build tool
7878
- **Deps**: Changes to dependencies
7979
- **Docs**: Documentation only changes
8080
- **Feat**: A new feature
@@ -109,7 +109,7 @@ The following is the list of supported scopes:
109109
- Repository-wide:
110110
- `ci`: used for changes that affect the Continuous Integration process and builds
111111
- `repo`: used for repository-wide changes
112-
- none/empty string: useful for `Test` and `Refactor` changes that are done across all packages (e.g. `Test: Add missing unit tests`) and for docs changes that are not related to a specific package (e.g. `Docs: Fix typo in the tutorial`).
112+
- none/empty string: useful for `Test` and `Refactor` changes that are done across all packages (for example `Test: Add missing unit tests`) and for docs changes that are not related to a specific package (for example `Docs: Fix typo in the tutorial`).
113113

114114
##### Summary
115115

@@ -124,7 +124,7 @@ Use the summary field to provide a succinct description of the change:
124124
Just as in the summary, use the imperative, present tense: "fix" not "fixed" nor "fixes".
125125

126126
Explain the motivation for the change in the commit message body. This commit message SHOULD explain _why_ you are making the change.
127-
You can include a comparison of the previous behavior with the new behavior in order to illustrate the impact of the change.
127+
You can include a comparison of the previous behavior with the new behavior to illustrate the impact of the change.
128128

129129
#### Commit Message Footer
130130

@@ -149,7 +149,7 @@ If the commit reverts a previous commit, it SHOULD begin with `Revert: `, follow
149149
The content of the commit message body SHOULD contain:
150150

151151
- information about the SHA of the commit being reverted in the following format: `This reverts commit <SHA>`,
152-
- a clear description of the reason for reverting the commit message.
152+
- a clear description of why the commit message is being reverted.
153153

154154
### Before Commit
155155

@@ -161,18 +161,18 @@ This project uses Prettier for code formatting. You can run `make format` to for
161161

162162
## Documenting the Components
163163

164-
1. All components MUST be documented in a `README` file in the root of the component, e.g. `packages/web-react/Accordion/README.md`.
164+
1. All components MUST be documented in a `README` file in the root of the component, for example `packages/web-react/Accordion/README.md`.
165165
2. The documentation MUST be written in Markdown.
166166
3. The documentation MUST contain at least a basic example usage of the component.
167167
4. For complex components or components with subcomponents, the documentation SHOULD contain examples of individual building blocks as well as an example composition.
168168
5. Component and subcomponent props MUST be documented in a table.
169169
1. The table MUST be placed in a section introduced by a headline called `API`.
170170
2. The table MUST contain the following columns:
171-
- `Name` — the name of the prop, e.g. `title`
172-
- `Type` — the type of the prop, e.g. `string`, `number`, `bool`, `[horizontal | vertical]`, an existing [dictionary][dictionary], etc.
173-
- `Default` — the default value of the prop, e.g. `null` or `` (em-dash) if there is no default value
171+
- `Name` — the name of the prop, for example `title`
172+
- `Type` — the type of the prop, for example `string`, `number`, `bool`, `[horizontal | vertical]`, an existing [dictionary][dictionary], etc.
173+
- `Default` — the default value of the prop, for example `null` or `` (em-dash) if there is no default value
174174
- `Required` — if the prop is required `` or not ``
175-
- `Description` — the description of the prop, e.g. `Title of the accordion`
175+
- `Description` — the description of the prop, for example `Title of the accordion`
176176
3. The props MUST be sorted alphabetically by their name.
177177

178178
## Testing
@@ -182,15 +182,15 @@ Using this you can test the entire package and verify that all parts of the pack
182182

183183
The testing script includes:
184184

185-
- linting using [ESlint][eslint]
185+
- linting using [ESLint][eslint]
186186
- checking format using the [Prettier][prettier]
187-
- checking types using the [Typescript][typescript] compiler
187+
- checking types using the [TypeScript][typescript] compiler
188188
- running unit test using the [Jest][jest]
189189

190190
### Unit Testing
191191

192192
You can run unit testing via `test:unit` scripts.
193-
For all available scripts see the package's `package.json` file.
193+
For all available scripts see the packages `package.json` file.
194194

195195
### Manual Testing
196196

@@ -225,7 +225,7 @@ We have two test suites and you can find them in the `./tests/e2e` directory:
225225

226226
- `demo-homepages` - tests the homepages of our demo apps.
227227
- This test is used to verify that the demo apps are working properly and their homepages are not broken.
228-
- `demo-components-compare` - tests components' pages of our demo apps'.
228+
- `demo-components-compare` - tests components pages of our demo apps.
229229
- This test gets the list of components from the file system for each package and then it goes through each component and compares its page in all demo apps.
230230
- Only one screenshot is taken for each component. If you run the update command, only the last screenshot will be saved.
231231

@@ -242,16 +242,16 @@ When the tests fail, there will be a comment in the PR with a link to the report
242242
You can also find the report URL in the GitHub Actions run under the `Run actions/upload-artifact` section.
243243
Look for `Artifact download URL: https://github.com/lmc-eu/spirit-design-system/actions/runs/<run-id>/artifacts/<artifact-id>`.
244244

245-
⚠️ Currently we do not deploy the Web Twig package to any environment, so you can only test it locally.
245+
⚠️ We do not deploy the Web Twig package to any environment, so you can only test it locally.
246246

247247
### Developing and Testing GitHub Actions
248248

249249
It can be time-consuming and painful to test GitHub Actions.
250250
First, you have to change the GitHub Actions file locally, push your local code into the GitHub repository, and wait for the result.
251251

252-
To solve this issue, you can use [act][act] CLI tool to test and write the GitHub actions locally.
252+
To solve this issue, you can use [act][act] command line tool to test and write the GitHub actions locally.
253253

254-
For more, please read the article [How to Run GitHub Actions Locally with the act CLI tool][act-article].
254+
For more, please read the article [How to Run GitHub Actions Locally with the act command line tool][act-article].
255255

256256
## Publishing
257257

DEPRECATIONS-v2.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,11 @@ Introducing deprecations and feature flags to be removed in the version 2 lists.
2121

2222
<!--lint enable heading-capitalization -->
2323

24-
- _spirit-web-twig_ was released as version 2 already. See the [CHANGELOG][twig-changelog] for more details or refer to the [migration guide][twig-migration-v2].
24+
- _spirit-web-twig_ was released as version 2 already. See the [CHANGELOG][twig-changelog] for more details or check the [migration guide][twig-migration-v2].
2525

2626
---
2727

28-
Please refer back to this list or reach out to our team if you encounter any issues during migration.
28+
If you face any problems during migration, please check this list or contact our team for assistance.
2929

3030
[web-deprecations-v2]: https://github.com/lmc-eu/spirit-design-system/blob/main/packages/web/DEPRECATIONS-v2.md
3131
[web-react-deprecations-v2]: https://github.com/lmc-eu/spirit-design-system/blob/main/packages/web-react/DEPRECATIONS-v2.md

DEPRECATIONS-v3.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,6 @@ Introducing deprecations and feature flags to be removed in the version 3 lists.
1717

1818
---
1919

20-
Please refer back to this list or reach out to our team if you encounter any issues during migration.
20+
If you face any problems during migration, please check this list or contact our team for assistance.
2121

2222
[web-twig-deprecations]: https://github.com/lmc-eu/spirit-design-system/blob/main/packages/web-twig/DEPRECATIONS.md

configs/jest-config-spirit/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@ export default config;
3636

3737
## 🙌 Contributing
3838

39-
We're always looking for contributors to help us fix bugs, build new features,
40-
or help us improve the project documentation. If you're interested, definitely
39+
Were always looking for contributors to help us fix bugs, build new features,
40+
or help us improve the project documentation. If youre interested, definitely
4141
check out our [Contributing Guide][contributing]! 👀
4242

4343
## 📝 License

configs/prettier-config-spirit/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ export default prettierConfig;
2424

2525
## 🙌 Contributing
2626

27-
We're always looking for contributors to help us fix bugs, build new features,
28-
or help us improve the project documentation. If you're interested, definitely
27+
Were always looking for contributors to help us fix bugs, build new features,
28+
or help us improve the project documentation. If youre interested, definitely
2929
check out our [Contributing Guide][contributing]! 👀
3030

3131
## 📝 License

configs/stylelint-config-spirit/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ export default stylelintConfig;
2424

2525
## 🙌 Contributing
2626

27-
We're always looking for contributors to help us fix bugs, build new features,
28-
or help us improve the project documentation. If you're interested, definitely
27+
Were always looking for contributors to help us fix bugs, build new features,
28+
or help us improve the project documentation. If youre interested, definitely
2929
check out our [Contributing Guide][contributing]! 👀
3030

3131
## 📝 License

docs/DICTIONARIES.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

33
This project uses `dictionaries` to unify props between different components.
44

5-
- Every dictionary is always a range. E.g. the dictionary Size content Small, Medium, Large.
6-
- If at least 1 item is used from the dictionary in a component's property, all the others should be used. E.g. if there are button sizes Medium and Large, there should also be the size Small.
5+
- Every dictionary is always a range. For example the dictionary Size content Small, Medium, Large.
6+
- If at least 1 item is used from the dictionary in a components property, all the others should be used. For example if there are button sizes Medium and Large, there should also be the size Small.
77
- A given property is not a dictionary by itself. The property is contained in the dictionary. That is, the Action Primary Default color is contained in the Action Primary dictionary entry.
88
- Products can extend their dictionaries.
99

docs/contributtion/development.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ These include:
2323

2424
### System Requirements
2525

26-
For you to install all the dependencies in this project and successfully develop it, you'll need to:
26+
For you to install all the dependencies in this project and successfully develop it, youll need to:
2727

2828
- [install Node.js][install-nodejs]
2929
- [install Yarn][install-yarn]
@@ -45,8 +45,8 @@ This strategy is particularly useful during development and tooling like Lerna
4545
will pick up on when packages are linked in this way and will automatically
4646
update versions when publishing new versions of packages.
4747

48-
Next up, you'll most likely want to build all of the package files so that
49-
things don't fail while you are working on a package.
48+
Next up, youll most likely want to build all of the package files so that
49+
things dont fail while you are working on a package.
5050
To do this, you can run the following command:
5151

5252
```bash

docs/contributtion/experimental-code.md

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -73,32 +73,32 @@ introduced it is marked `false` or "off" by default to ensure backward
7373
compatibility. A feature flag may be configured in JavaScript, SASS, or both.
7474

7575
All the currently available feature flags, as well as how to enable them, is
76-
documented in each package's main README file in the section `Feature Flags`.
76+
documented in each packages main README file in the section `Feature Flags`.
7777

7878
### Feature Flag Naming Convention
7979

8080
All feature flags follow a prefix naming convention that indicates status.
8181

8282
#### Flags Prefixed with `enable-*`
8383

84-
- Contain new features that we'd like consuming projects to test
84+
- Contain new features that wed like consuming projects to test
8585
- Are generally stable and unlikely to change but may change based on user
8686
feedback
8787
- May require some manual migration or code changes within your project
88-
- Are documented in the package's main README file
89-
- Need user feedback to ensure we've met all concerns relating to this feature
88+
- Are documented in the packages main README file
89+
- Need user feedback to ensure weve met all concerns relating to this feature
9090
- Are used for introducing visual changes that are considered breaking
9191

92-
If you use these flags, make sure to check our release notes where we'll outline
92+
If you use these flags, make sure to check our release notes where well outline
9393
any changes to them across our releases.
9494

9595
#### Flags Prefixed with `enable-v#-*`
9696

9797
As the usage of an existing flag increases or we determine a feature to be of high
98-
importance, we'll "commit" it to a future major release and rename it to use the
98+
importance, well "commit" it to a future major release and rename it to use the
9999
`enable-v#-*` prefix. At this point, the API or functionality behind this flag is
100-
now fixed and won't change. We intend to ship this flag as "on by default" in
101-
the major version indicated in the name. e.g. `enable-v3-some-feature`
100+
now fixed and wont change. We intend to ship this flag as "on by default" in
101+
the major version indicated in the name. for example `enable-v3-some-feature`
102102

103103
All breaking changes will be shipped as `enable-v#-*` flags within the current
104104
releases. This enables projects to opt-in to breaking changes earlier
@@ -127,19 +127,19 @@ Folders and stories within this section in the Storybook show components with al
127127
All the currently available feature flags, as well as how to enable them, are documented in the main documentation.
128128

129129
Individual feature flags that are available for some components only will be also documented in
130-
the component's README file.
130+
the components README file.
131131

132132
## Expanding Existing APIs
133133

134134
New experimental functionality might sometimes be added with the need for an
135135
`UNSTABLE_` export or a feature flag. Oftentimes, this ends up being a new prop
136136
on a component.
137-
The documentation associated with this prop (TypeScript types, Storybook controls, etc.) will state that it's experimental.
137+
The documentation associated with this prop (TypeScript types, Storybook controls, etc.) will state that its experimental.
138138

139139
## Moving to Stable
140140

141141
Over time it becomes apparent an experimental API has stabilized and suits the
142-
needs of most users. If it isn't a breaking change, and there hasn't been much
142+
needs of most users. If it isnt a breaking change, and there hasnt been much
143143
movement, it can be moved from "experimental" status to "stable".
144144

145145
To initiate a move to stable, a new issue can be opened to request the team to evaluate
@@ -162,18 +162,18 @@ be met to move a component from experimental to stable:
162162
`onClick = () => {}` can cause re-renders since the function identity
163163
is not stable
164164
- [ ] Component has a story in `<ComponentName>.stories.ts`
165-
- [ ] The story has an MDX overview that embeds the main component's README file
165+
- [ ] The story has an MDX overview that embeds the main components README file
166166
- [ ] MDX document covers at least common component states and provides a prop
167167
table
168168
- [ ] Stories cover at least common component states
169169
- [ ] Stories generate a `Playground` for controls
170170
- [ ] Controls with no meaningful change to the component visuals should
171-
be hidden from the controls panel, eg. `className`
171+
be hidden from the controls panel, for example `className`
172172
- [ ] Props of type `node` with no proper controls available for
173173
configuration should be hidden from the controls panel, eg.
174174
`children`
175175
- [ ] Stories should mirror the intended usage of the component
176-
- [ ] The component has unit/integration/snapshot tests written using the project's unit testing library for testing the component API
177-
- [ ] The component has visual tests written using the project's End-to-End testing library for testing the component design
176+
- [ ] The component has unit/integration/snapshot tests written using the projects unit testing library for testing the component API
177+
- [ ] The component has visual tests written using the projects End-to-End testing library for testing the component design
178178

179179
[docs-feature-flags]: https://github.com/lmc-eu/spirit-design-system/blob/main/docs/contributtion/feature-flags.md

docs/contributtion/feature-flags.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@ Folders and stories within this section in Storybook show components with all fe
1515

1616
## Current Feature Flags
1717

18-
Feature flags prefixed with `enable-*` contain features we'd like consuming projects to
18+
Feature flags prefixed with `enable-*` contain features wed like consuming projects to
1919
test and give us feedback on. It will be made by default in the version specified in the name.
2020
In most of the cases these features will be breaking changes - logically or visually.
21-
They're generally stable and unlikely to change but may change based on your feedback.
21+
Theyre generally stable and unlikely to change but may change based on your feedback.
2222
We just do not want to break your application or design without your consent.
2323

2424
Flags prefixed with `enable-v#-*` will be removed in the next major version and their behavior will be made the default.
@@ -49,7 +49,7 @@ Example with fictional feature flag to enable fullscreen modal:
4949
```
5050

5151
Every feature flag should also provide a class selector that can be used to enable or disable the feature.
52-
You can use this class if you want to limit the usage of the feature to a specific part of your application.
52+
You can use this class to limit the usage of the feature to a specific part of your application.
5353
Place the class on any parent element of the component you want to enable the feature for.
5454

5555
Example:

0 commit comments

Comments
 (0)