Skip to content

Commit 5219151

Browse files
Copilothawkeyexl
andauthored
Review documentation for clarity and precision (#117)
* Initial plan * Improve documentation clarity per Google Developer Style Guide Co-authored-by: hawkeyexl <[email protected]> * Additional documentation clarity improvements Co-authored-by: hawkeyexl <[email protected]> --------- Co-authored-by: copilot-swe-agent[bot] <[email protected]> Co-authored-by: hawkeyexl <[email protected]>
1 parent 7090bac commit 5219151

File tree

7 files changed

+11
-11
lines changed

7 files changed

+11
-11
lines changed

docs/get-started/actions/click.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ The `click` action works in several ways:
2121

2222
If you need to find an element before clicking it, consider using the [`find`](/docs/get-started/actions/find) action, which lets you locate elements and optionally click them in a single step.
2323

24-
**Note:** If you use the `click` action without specifying a target (using element text or selector), it will click the active element or the element at the current cursor position.
24+
**Note:** If you use the `click` action without specifying a target (using element text or selector), it clicks the active element or the element at the current cursor position.
2525

2626
## Properties
2727

docs/get-started/concepts.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ A step is a portion of a test that includes a single action. Conceptually parall
2020

2121
## Action
2222

23-
An action is the task performed in a step. Doc Detective supports a variety of actions:
23+
An action performs a task in a step. Doc Detective supports a variety of actions:
2424

2525
| Name | Description |
2626
| :---------------------------------------------------------- | :-------------------------------------------------------------------------------------------------------------------------------------------------------- |
@@ -34,8 +34,8 @@ An action is the task performed in a step. Doc Detective supports a variety of a
3434
| [loadVariables](/docs/get-started/actions/loadVariables) | Load environment variables from a `.env` file. |
3535
| [saveCookie](/docs/get-started/actions/saveCookie) | Save a specific browser cookie to a file or environment variable for later reuse. |
3636
| [loadCookie](/docs/get-started/actions/loadCookie) | Load a specific cookie from a file or environment variable into the browser. |
37-
| [record](/docs/get-started/actions/record) | Capture a video of test run. |
38-
| [stopRecord](/docs/get-started/actions/stopRecord) | Stop capturing a video of test run. |
37+
| [record](/docs/get-started/actions/record) | Capture a video of the test run. |
38+
| [stopRecord](/docs/get-started/actions/stopRecord) | Stop capturing a video of the test run. |
3939
| [type](/docs/get-started/actions/type) | Type keys. To type special keys, begin and end the string with `$` and use the special key’s enum. For example, to type the Escape key, enter `$ESCAPE$`. |
4040
| [wait](/docs/get-started/actions/wait) | Pause before performing the next action. |
4141

docs/get-started/create-your-first-test.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import TabItem from '@theme/TabItem';
77

88
# Create your first test
99

10-
In this tutorial, you will create a basic test that navigates to a webpage, validates the presence of specific elements, and captures a screenshot. This will introduce you to fundamental Doc Detective actions that are essential for creating more advanced tests in the future.
10+
In this tutorial, you create a basic test that navigates to a webpage, validates the presence of specific elements, and captures a screenshot. This tutorial introduces you to fundamental Doc Detective actions that are essential for creating more advanced tests.
1111

1212
## What is a test?
1313

docs/get-started/intro.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,14 +68,14 @@ Doc Detective doesn’t scan your code or generate documentation. It verifies th
6868

6969
### Write your code
7070

71-
While Doc Detective can write tests from scanning your documentation, it can’t write code for you. Sorry.
71+
Doc Detective can't write code for you.
7272

7373
## Who is Doc Detective for?
7474

7575
As an open source and accessible project, Doc Detective is for anyone who's interested. More specifically, here are some groups who could benefit:
7676

7777
- **Small teams:** There’s often limited personnel or budget dedicated to a project, and documentation often gets deprioritized as a result. With Doc Detective, you can spend less time reviewing published documentation and trust that it's still functional and accurate for the end user.
78-
- **Large teams:** The more people you have contributing to a project, the faster it can change shape. In cases where development is outpacing documentation, Doc Detective keeps a watchful eye on the changes made and note any inconsistencies.
78+
- **Large teams:** The more people you have contributing to a project, the faster it can change shape. In cases where development is outpacing documentation, Doc Detective keeps a watchful eye on the changes made and notes any inconsistencies.
7979
- **Anything in between:** You can be a team of one or of one thousand and still find a use for Doc Detective. When it comes time to address the documentation of your project, look to Doc Detective to ease the burden and help bring consistency and accuracy to the end user.
8080

8181
## Next steps

docs/get-started/sample-tests.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ docker run -v .:/app docdetective/docdetective --input /app/doc-content-inline-t
5757
</TabItem>
5858
</Tabs>
5959

60-
If you have test files in multiple directories or want to specify multiple files, then enter them separated with commas:
60+
If you have test files in multiple directories or want to specify multiple files, enter them separated with commas:
6161

6262
<Tabs>
6363
<TabItem value="npx" label="NPX" default>
@@ -76,7 +76,7 @@ docker run -v .:/app docdetective/docdetective --input /app/doc-content-inline-t
7676
</TabItem>
7777
</Tabs>
7878

79-
To customize your test, file type, and directory options, create a `.doc-detective.json` [config](/docs/references/schemas/config) file. If a `.doc-detective.json` file exists in the directory when you run the comment, Doc Detective loads the config. Otherwise, you can specify a config path with the `--config` argument.
79+
To customize your test, file type, and directory options, create a `.doc-detective.json` [config](/docs/references/schemas/config) file. If a `.doc-detective.json` file exists in the directory when you run the command, Doc Detective loads the config. Otherwise, you can specify a config path with the `--config` argument.
8080

8181
<Tabs>
8282
<TabItem value="npx" label="NPX" default>

docs/get-started/selectors/xpath.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -574,7 +574,7 @@ $x("//button[contains(text(), 'Submit')]")[0].click()
574574
1. Open Developer Tools (F12)
575575
2. Go to the Console tab
576576
3. Type `$x("your-xpath-here")` and press Enter
577-
4. The console will show all matching elements
577+
4. The console shows all matching elements
578578
5. Hover over results to highlight them on the page
579579

580580
### Common issues

docs/get-started/tutorials/set-up-your-test-environment.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ You can use Doc Detective directly against your production site. For testing, it
4444
{/* vale on */}
4545

4646
:::info
47-
You need to set the port number to `8080` in your VSCode settings to match the Doc Detective tutorials.
47+
To match the Doc Detective tutorials, set the port number to `8080` in your VSCode settings.
4848
:::
4949
</TabItem>
5050
</Tabs>

0 commit comments

Comments
 (0)