Skip to content

Commit ba167ed

Browse files
doc updates
1 parent f41cd75 commit ba167ed

File tree

15 files changed

+137
-183
lines changed

15 files changed

+137
-183
lines changed

CODE_OF_CONDUCT.md

Lines changed: 2 additions & 75 deletions
Original file line numberDiff line numberDiff line change
@@ -1,75 +1,2 @@
1-
# Contributor Code of Conduct
2-
3-
## Our Pledge
4-
5-
In the interest of fostering an open and welcoming environment, we as
6-
contributors and maintainers pledge to making participation in our project and
7-
our community a harassment-free experience for everyone, regardless of age, body
8-
size, disability, ethnicity, gender identity and expression, level of
9-
experience, nationality, personal appearance, race, religion, or sexual identity
10-
and orientation.
11-
12-
## Our Standards
13-
14-
Examples of behavior that contributes to creating a positive environment
15-
include:
16-
17-
- Using welcoming and inclusive language
18-
- Being respectful of differing viewpoints and experiences
19-
- Gracefully accepting constructive criticism
20-
- Focusing on what is best for the community
21-
- Showing empathy towards other community members
22-
23-
Examples of unacceptable behavior by participants include:
24-
25-
- The use of sexualized language or imagery and unwelcome sexual attention or
26-
advances
27-
- Trolling, insulting/derogatory comments, and personal or political attacks
28-
- Public or private harassment
29-
- Publishing others' private information, such as a physical or electronic
30-
address, without explicit permission
31-
- Other conduct which could reasonably be considered inappropriate in a
32-
professional setting
33-
34-
## Our Responsibilities
35-
36-
Project maintainers are responsible for clarifying the standards of acceptable
37-
behavior and are expected to take appropriate and fair corrective action in
38-
response to any instances of unacceptable behavior.
39-
40-
Project maintainers have the right and responsibility to remove, edit, or reject
41-
comments, commits, code, wiki edits, issues, and other contributions that are
42-
not aligned to this Code of Conduct, or to ban temporarily or permanently any
43-
contributor for other behaviors that they deem inappropriate, threatening,
44-
offensive, or harmful.
45-
46-
## Scope
47-
48-
This Code of Conduct applies both within project spaces and in public spaces
49-
when an individual is representing the project or its community. Examples of
50-
representing a project or community include using an official project e-mail
51-
address, posting via an official social media account, or acting as an appointed
52-
representative at an online or offline event. Representation of a project may be
53-
further defined and clarified by project maintainers.
54-
55-
## Enforcement
56-
57-
Instances of abusive, harassing, or otherwise unacceptable behavior may be
58-
reported by contacting the project team at
59-
[[email protected]](mailto:[email protected]). All complaints will be reviewed and
60-
investigated and will result in a response that is deemed necessary and
61-
appropriate to the circumstances. The project team is obligated to maintain
62-
confidentiality with regard to the reporter of an incident. Further details of
63-
specific enforcement policies may be posted separately.
64-
65-
Project maintainers who do not follow or enforce the Code of Conduct in good
66-
faith may face temporary or permanent repercussions as determined by other
67-
members of the project's leadership.
68-
69-
## Attribution
70-
71-
This Code of Conduct is adapted from the [Contributor Covenant][homepage],
72-
version 1.4, available at
73-
https://www.contributor-covenant.org/version/1/4/code-of-conduct.html
74-
75-
[homepage]: https://www.contributor-covenant.org
1+
Please review our
2+
[Code of Conduct](https://github.com/cypress-io/cypress/blob/develop/CODE_OF_CONDUCT.md).

CONTRIBUTING.md

Lines changed: 76 additions & 77 deletions
Original file line numberDiff line numberDiff line change
@@ -5,37 +5,35 @@ Thanks for taking the time to contribute! :smile:
55
## Table of Contents
66

77
- [Contributing to Cypress Documentation](#contributing-to-cypress-documentation)
8-
- [Table of Contents](#table-of-contents)
98
- [Code of Conduct](#code-of-conduct)
109
- [Writing Documentation](#writing-documentation)
1110
- [Using Vue Components](#using-vue-components)
1211
- [Alerts](#alerts)
13-
- [Images](#images)
14-
- [Videos](#videos)
15-
- [Icons](#icons)
12+
- [Images](#images)
13+
- [Videos](#videos)
14+
- [Icons](#icons)
1615
- [Partials](#partials)
1716
- [Writing a Partial](#writing-a-partial)
1817
- [Using Partials](#using-partials)
19-
- [When to use Partials instead of Vue components](#when-to-use-partials-instead-of-vue-components)
2018
- [Limitations](#limitations)
19+
- [When to use Partials instead of Vue components](#when-to-use-partials-instead-of-vue-components)
2120
- [Adding Examples](#adding-examples)
2221
- [Adding Plugins](#adding-plugins)
2322
- [Adding Pages](#adding-pages)
24-
- [Deleting Pages](#deleting-pages)
2523
- [A Worked Example](#a-worked-example)
26-
- [Writing the Changelog](#writing-the-changelog)
27-
- [Categories](#categories)
24+
- [Deleting Pages](#deleting-pages)
2825
- [Committing Code](#committing-code)
29-
- [Linting](#linting)
3026
- [Pull Requests](#pull-requests)
27+
- [Writing the Changelog](#writing-the-changelog)
28+
- [Categories](#categories)
3129
- [Contributor License Agreement](#contributor-license-agreement)
3230
- [Deployment](#deployment)
3331
- [Trigger workflow build](#trigger-workflow-build)
3432

3533
## Code of Conduct
3634

3735
All contributors are expected to abide by our
38-
[Code of Conduct](https://github.com/cypress-io/cypress/wiki/code-of-conduct).
36+
[Code of Conduct](https://github.com/cypress-io/cypress/blob/develop/CODE_OF_CONDUCT.md).
3937

4038
## Writing Documentation
4139

@@ -75,7 +73,7 @@ prop to `info`, `tip`, `warning`, or `danger`.
7573
<Alert type="info">This is an important message.</Alert>
7674
```
7775

78-
### Images
76+
#### Images
7977

8078
If you are starting a new page and want to add images, add a new folder to
8179
[`assets/img`](/assets/img). For example when adding a new "Code Coverage" page
@@ -94,7 +92,7 @@ include the image using the
9492
Typically you should include the `alt` and `title` attributes to give the user
9593
more information about the image.
9694

97-
### Videos
95+
#### Videos
9896

9997
You can embed videos within the markdown with the
10098
[`<DocsVideo>`](/components/global/DocsVideo.vue) component. Currently, it
@@ -110,10 +108,11 @@ accessibility reasons.
110108
>
111109
```
112110

113-
### Icons
111+
#### Icons
114112

115-
[Font Awesome](https://fontawesome.com/) icons can be used within markdown. Set
116-
the `name` prop to the name of the Font Awesome icon. Make sure that the icon
113+
[Font Awesome](https://fontawesome.com/) icons can be used within markdown by
114+
using the [`<Icon>`](/components/global/Icon.vue) component. Set the `name` prop
115+
to the name of the Font Awesome icon you want to use. Make sure that the icon
117116
appears in the list of imported icons within the `nuxt.config.js` file under the
118117
`fontawesome` key.
119118

@@ -165,7 +164,17 @@ within the `content` directory. You must provide the path relative to the
165164
`pizza-recipe.md` was located at `/content/recipes/pizza-recipe.md`, the
166165
`::include` directive would be `::include{file=recipes/pizza-recipe.md}`.
167166

168-
#### When to use Partials instead of Vue components
167+
#### Limitations
168+
169+
When including the `::include{file=FILE_NAME}` directive in another markdown
170+
file, Nuxt's hot module reloading will automatically trigger the partial's
171+
content to be inserted into the markdown file. However, if you wish to make
172+
changes to the partial file itself, you will need to stop and restart the
173+
development server with `yarn start` to see the changes. This is because the
174+
custom remark plugin that is enabling this partial system is only ran when the
175+
server is started and not on each hot module reload.
176+
177+
### When to use Partials instead of Vue components
169178

170179
It is possible to create partials using Vue components in the markdown instead
171180
of using the `::include{file=FILE_NAME}` directive. However, there are downsides
@@ -184,16 +193,6 @@ when you want to inject reusable markdown into multiple files. A `<Partial>` Vue
184193
component may be a better fit if you wish to add custom interactivity to
185194
reusable strings of text.
186195

187-
#### Limitations
188-
189-
When including the `::include{file=FILE_NAME}` directive in another markdown
190-
file, Nuxt's hot module reloading will automatically trigger the partial's
191-
content to be inserted into the markdown file. However, if you wish to make
192-
changes to the partial file itself, you will need to stop and restart the
193-
development server with `yarn start` to see the changes. This is because the
194-
custom remark plugin that is enabling this partial system is only ran when the
195-
server is started and not on each hot module reload.
196-
197196
### Adding Examples
198197

199198
To add a course, blog, talk, podcast, or screencast to our docs, submit a
@@ -240,12 +239,13 @@ Each plugin submitted to the plugins list should have the following:
240239

241240
### Adding Pages
242241

243-
To add a page such as a new guide or API documentation:
242+
To add a page, such as a new guide or API documentation:
244243

245244
- Add the new page to the relevant directory under [`content`](/content).
246245
- Link to your new page in the [`sidebar.json`](/content/_data/sidebar.json).
247-
- Add translations for the sidebar link for each supported language (for
248-
English, this is located in [`en.json`](/content/_data/en.json)).
246+
- Add translations for the sidebar link for each supported language. Currently
247+
only English is supported and this is located in
248+
[`en.json`](/content/_data/en.json)).
249249
- Build the documentation site locally so that you can visually inspect your new
250250
page and the links to it.
251251
- **REQUIRED**: Commit the new file using git - we auto-generate the doc to
@@ -265,18 +265,6 @@ To add a page such as a new guide or API documentation:
265265
> specific layout I want to create. The page will then be accessible at the
266266
> route `/guides/my-dashboard-guide`.
267267
268-
### Deleting Pages
269-
270-
To delete a page:
271-
272-
- Delete the page from the relevant directory under [`content`](/content).
273-
- Remove the link from the the [`sidebar.json`](/content/_data/sidebar.json).
274-
- **REQUIRED**: Commit the change using git - we auto-remove the doc within each
275-
supported language, this auto-generation depends on the file being deleted in
276-
git, the build will not work until this is commited.
277-
- Build the documentation site locally so that you can visually inspect and make
278-
sure it was properly deleted.
279-
280268
#### A Worked Example
281269

282270
Let's imagine that the Cypress team has just added a new command called
@@ -289,10 +277,10 @@ API documentation for commands is in the
289277
2. Write the document. Look to the existing documentation to see how to
290278
structure the content.
291279
3. Open the [`content/_data/sidebar.json`](/content/_data/sidebar.json) file and
292-
add a link the new `privatestate` page. In this example we're adding a
293-
command so we'll add a link underneath the `api` section.
280+
add a link the new `privatestate` page. In this example, we're adding a
281+
command, so we'll add a link underneath the `api` section.
294282

295-
```json
283+
```diff
296284
"api": [
297285
{
298286
"title": "API",
@@ -311,10 +299,10 @@ API documentation for commands is in the
311299
"slug": "as"
312300
},
313301
// ...
314-
{
315-
"title": "privateState",
316-
"slug": "privatestate"
317-
}
302+
+ {
303+
+ "title": "privateState",
304+
+ "slug": "privatestate"
305+
+ }
318306
]
319307
}
320308
]
@@ -374,46 +362,33 @@ a menu structure up to three (3) levels deep:
374362
]
375363
```
376364

377-
4. Submit a [pull request](#Pull-Requests) for your change.
378-
379-
### Writing the Changelog
380-
381-
When adding to the Changelog, create a new file in
382-
[`content/_changelogs`](/content/_changelogs) named as the version number. Be
383-
sure to follow the category structure defined below (in this order). Each bullet
384-
point in the list should _always_ be associated to an issue on the
385-
[`cypress`](https://github.com/cypress-io/cypress) repo and link to that issue
386-
(except for Documentation changes).
365+
### Deleting Pages
387366

388-
#### Categories
367+
To delete a page:
389368

390-
- **Summary** - If it is a large release, you may write a summary explaining
391-
what the point of this release is (mostly used for breaking releases)
392-
- **Breaking Changes** - The users current implementation of Cypress may break
393-
after updating.
394-
- **Deprecations** - Features have been deprecated, but will not break after
395-
updating.
396-
- **Features** - A new feature
397-
- **Bugfixes** - A bug existed in Cypress and a PR fixed the issue
398-
- **Misc** - Not a feature or bugfix, but work that was done. May be internal
399-
work that was done and associated with an issue
400-
- **Documentation Changes** - our docs were updated based on behavior changes in
401-
release
369+
- Delete the page from the relevant directory under [`content`](/content).
370+
- Remove the link from the the [`sidebar.json`](/content/_data/sidebar.json).
371+
- **REQUIRED**: Commit the change using git - we auto-remove the doc within each
372+
supported language, this auto-generation depends on the file being deleted in
373+
git, the build will not work until this is commited.
374+
- Build the documentation site locally so that you can visually inspect and make
375+
sure it was properly deleted.
402376

403377
## Committing Code
404378

405-
### Linting
406-
407-
Javascript code is linted with [ESLint](https://eslint.org/).
408-
409379
### Pull Requests
410380

411381
You should push your local changes to your forked GitHub repository and then
412382
open a pull request (PR) from your repo to the
413383
`cypress-io/cypress-documentation` repo.
414384

415-
- The PR should be from your repository to the `master` branch in
416-
`cypress-io/cypress-documentation`
385+
- The PR should be from your repository to the appropriate branch in the
386+
`cypress-io/cypress-documentation` repository.
387+
- For documation changes that are not tied to a feature release, open a PRs
388+
against the `master` branch.
389+
- For documentation additions for unreleased features, open a PR against the
390+
corrsponding `X.Y.Z-release` branch. Once the release it performed, this
391+
branch will be merged into master by the releaser.
417392
- When opening a PR for a specific issue already open, please use the
418393
`closes #issueNumber` syntax in the pull request description&mdash;for
419394
example, `closes #138`&mdash;so that the issue will be
@@ -436,6 +411,30 @@ open a pull request (PR) from your repo to the
436411
git branch name. For example, if my branch was named `my-branch`, my branch
437412
preview will be available at `https://my-branch--cypress-docs.netlify.app`.
438413

414+
### Writing the Changelog
415+
416+
When adding to the Changelog, create a new file in
417+
[`content/_changelogs`](/content/_changelogs) named as the version number. Be
418+
sure to follow the category structure defined below (in this order). Each bullet
419+
point in the list should _always_ be associated to an issue on the
420+
[`cypress`](https://github.com/cypress-io/cypress) repo and link to that issue
421+
(except for Documentation changes).
422+
423+
#### Categories
424+
425+
- **Summary** - If it is a large release, you may write a summary explaining
426+
what the point of this release is (mostly used for breaking releases)
427+
- **Breaking Changes** - The users current implementation of Cypress may break
428+
after updating.
429+
- **Deprecations** - Features have been deprecated, but will not break after
430+
updating.
431+
- **Features** - A new feature
432+
- **Bugfixes** - A bug existed in Cypress and a PR fixed the issue
433+
- **Misc** - Not a feature or bugfix, but work that was done. May be internal
434+
work that was done and associated with an issue
435+
- **Documentation Changes** - our docs were updated based on behavior changes in
436+
release
437+
439438
### Contributor License Agreement
440439

441440
We use a [`cla-assistant.io`](https://cla-assistant.io/) web hook to make sure

content/_changelogs/8.5.0.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,4 +27,6 @@ _Released 09/27/2021_
2727
Windows 32-bit OS. See
2828
[#17962](https://github.com/cypress-io/cypress/issues/17962) for more detail.
2929
Addresses [#18094](https://github.com/cypress-io/cypress/issues/18094).
30-
- Improved the error messages when an invalid argument type is passed to the [`.select()`](/api/commands/select) command. Addressed in [#18234](https://github.com/cypress-io/cypress/pull/18234).
30+
- Improved the error messages when an invalid argument type is passed to the
31+
[`.select()`](/api/commands/select) command. Addressed in
32+
[#18234](https://github.com/cypress-io/cypress/pull/18234).

content/_changelogs/8.6.0.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,9 @@ _Released 10/11/2021_
2626
- The Cypress App will no longer crash when passed a `--spec: {}` from the CLI
2727
and instead error when passed an invalid object argument. Fixes
2828
[#3957](https://github.com/cypress-io/cypress/issues/3957).
29-
- Logging a plain object no longer results in the error "Cannot convert object
30-
to primitive value". Fixes [#18143](https://github.com/cypress-io/cypress/issues/18143).
29+
- Logging a plain object no longer results in the error "Cannot convert object
30+
to primitive value". Fixes
31+
[#18143](https://github.com/cypress-io/cypress/issues/18143).
3132

3233
**Misc:**
3334

content/_data/webinars.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,4 +163,4 @@
163163
"slides": "https://slides.com/bahmutov/cy-parallelization"
164164
}
165165
]
166-
}
166+
}

0 commit comments

Comments
 (0)