Skip to content

Commit 776d9be

Browse files
committed
tooling: add prompts to vscode
1 parent 6fbd921 commit 776d9be

File tree

6 files changed

+216
-63
lines changed

6 files changed

+216
-63
lines changed
Lines changed: 111 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,111 @@
1+
---
2+
applyTo: '**/*.md'
3+
---
4+
# Documentation Writing Instructions
5+
6+
These are our documentation writing style guidelines.
7+
8+
## General Style tips
9+
10+
* Get to the point fast.
11+
* Talk like a person.
12+
* Simpler is better.
13+
* Be brief. Give customers just enough information to make decisions confidently. Prune every excess word.
14+
* We use Hugo to generate our docs.
15+
16+
## Grammar
17+
18+
* Use present tense verbs (is, open) instead of past tense (was, opened).
19+
* Write factual statements and direct commands. Avoid hypotheticals like "could" or "would".
20+
* Use active voice where the subject performs the action.
21+
* Write in second person (you) to speak directly to readers.
22+
* Use gender-neutral language.
23+
* Avoid multiple -ing words that can create ambiguity.
24+
* Keep prepositional phrases simple and clear.
25+
* Place modifiers close to what they modify.
26+
27+
## Capitalization
28+
29+
* Use sentence-style capitalization for everything except proper nouns.
30+
* Always capitalize proper nouns.
31+
* Don’t capitalize the spelled-out form of an acronym unless it's a proper noun.
32+
* In programming languages, follow the traditional capitalization of keywords and other special terms.
33+
* Don't use all uppercase for emphasis.
34+
35+
## Numbers
36+
37+
* Spell out numbers for zero through nine, unless space is limited. Use numerals for 10 and above.
38+
* Spell out numbers at the beginning of a sentence.
39+
* Spell out ordinal numbers such as first, second, and third. Don't add -ly to form adverbs from ordinal numbers.
40+
41+
## Punctuation
42+
43+
* Use short, simple sentences.
44+
* End all sentences with a period.
45+
* Use one space after punctuation marks.
46+
* After a colon, capitalize only proper nouns.
47+
* Avoid semicolons - use separate sentences instead.
48+
* Use question marks sparingly.
49+
* Don't use slashes (/) - use "or" instead.
50+
51+
## Text formatting
52+
53+
* UI elements, like menu items, dialog names, and names of text boxes, should be in bold text.
54+
* Use code style for:
55+
* Code elements, like method names, property names, and language keywords.
56+
* SQL commands.
57+
* Command-line commands.
58+
* Database table and column names.
59+
* Resource names (like virtual machine names) that shouldn't be localized.
60+
* URLs that you don't want to be selectable.
61+
* For code placeholders, if you want users to replace part of an input string with their own values, use angle brackets (less than < and greater than > characters) on that placeholder text.
62+
* Don't apply an inline style like italic, bold, or inline code style to headings.
63+
64+
## Alerts
65+
66+
* Alerts are a Markdown extension to create block quotes that render with colors and icons that indicate the significance of the content. The following alert types are supported:
67+
68+
* `[!NOTE]` Information the user should notice even if skimming.
69+
* `[!TIP]` Optional information to help a user be more successful.
70+
* `[!IMPORTANT]` Essential information required for user success.
71+
* `[!CAUTION]` Negative potential consequences of an action.
72+
* `[!WARNING]` Dangerous certain consequences of an action.
73+
74+
## Links
75+
76+
* Links to other documentation articles should be relative, not absolute. Include the `.md` suffix.
77+
* Links to bookmarks within the same article should be relative and start with `#`.
78+
* Link descriptions should be descriptive and make sense on their own. Don't use "click here" or "this link" or "here".
79+
80+
## Images
81+
82+
* Use images only when they add value.
83+
* Images have a descriptive and meaningful alt text that starts with "Screenshot showing" and ends with ".".
84+
* Videos have a descriptive and meaningful alt text or title that starts with "Video showing" and ends with ".".
85+
86+
## Numbered steps
87+
88+
* Write complete sentences with capitalization and periods
89+
* Use imperative verbs
90+
* Clearly indicate where actions take place (UI location)
91+
* For single steps, use a bullet instead of a number
92+
* When allowed, use angle brackets for menu sequences (File > Open)
93+
* When writing ordered lists, only use 1's.
94+
95+
## Terminology
96+
97+
* Use "Select" instead of "Click" for UI elements like buttons, menu items, links, dropdowns, and checkboxes.
98+
* Use "might" instead of "may" for conditional statements.
99+
* Avoid latin abbreviations like "e.g.". Use "for example" instead.
100+
* Use the verb "to enable" instead "to allow" unless you're referring to permissions.
101+
* Follow the terms and capitalization guidelines in #fetch [VS Code docs wiki](https://github.com/microsoft/vscode-docs/wiki/VS-Code-glossary)
102+
103+
104+
## Complete style guide
105+
106+
Find all the details of the style guide in these files:
107+
108+
- `./content/contribute/style/grammar.md` – Grammar rules
109+
- `./content/contribute/style/formatting.md` – Formatting rules
110+
- `./content/contribute/style/recommended-words.md` – Approved words and phrasing
111+
- `./content/contribute/style/voice-tone.md` – Voice and tone guidance
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
---
2+
mode: 'edit'
3+
---
4+
5+
Imagine you're an experienced technical writer. You need to review content for
6+
how fresh and up to date it is. Apply the following:
7+
8+
1. Fix spelling errors and typos
9+
2. Verify whether the markdown structure conforms to common markdown standards
10+
3. Ensure the content follows our [style guide file](../instructions/styleguide-instructions.md) as a guide.
11+
4. Make sure the titles on the page provide better context about the content (for an improved search experience).
12+
5. Ensure all the components formatted correctly.
13+
6. Improve the SEO keywords.
14+
7. If you find numbered lists, make sure their numbering only uses 1's.
15+
16+
Do your best and don't be lazy.
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
---
2+
mode: 'edit'
3+
---
4+
5+
Imagine you're an experienced technical writer. You need to review content for
6+
how fresh and up to date it is. Apply the following:
7+
8+
1. Improve the presentational layer - components, splitting up the page into smaller pages
9+
Consider the following:
10+
11+
1. Can you use tabs to display multiple variants of the same steps?
12+
2. Can you make a key item of information stand out with a call-out?
13+
3. Can you reduce a large amount of text to a series of bullet points?
14+
4. Are there other code components you could use?
15+
2. Check if any operating systems or package versions mentioned are still current and supported
16+
3. Check the accuracy of the content
17+
4. If appropriate, follow the document from start to finish to see if steps make sense in sequence
18+
5. Try to add some helpful next steps to the end of the document, but only if there are no *Next steps* or *Related pages* section, already.
19+
6. Try to clarify, shorten or improve the efficiency of some sentences.
20+
7. Check for LLM readibility.
21+
22+
Do your best and don't be lazy.

.github/prompts/review.prompt.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
mode: edit
3+
description: You are a technical writer reviewing an article for clarity, conciseness, and adherence to the documentation writing style guidelines.
4+
---
5+
Review the article for clarity, conciseness, and adherence to our documentation [style guidelines](../instructions/styleguide-instructions.md).
6+
7+
Provide concrete and practical suggestions for improvement.

content/get-started/docker-overview.md

Lines changed: 48 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -17,21 +17,20 @@ aliases:
1717
---
1818

1919
Docker is an open platform for developing, shipping, and running applications.
20-
Docker enables you to separate your applications from your infrastructure so
21-
you can deliver software quickly. With Docker, you can manage your infrastructure
22-
in the same ways you manage your applications. By taking advantage of Docker's
23-
methodologies for shipping, testing, and deploying code, you can
24-
significantly reduce the delay between writing code and running it in production.
20+
Docker separates your applications from your infrastructure, enabling faster
21+
software delivery. With Docker, you manage your infrastructure the same way you
22+
manage your applications. By using Docker's methodologies for shipping, testing,
23+
and deploying code, you can significantly reduce the time between writing code
24+
and running it in production.
2525

2626
## The Docker platform
2727

28-
Docker provides the ability to package and run an application in a loosely isolated
29-
environment called a container. The isolation and security lets you run many
30-
containers simultaneously on a given host. Containers are lightweight and contain
31-
everything needed to run the application, so you don't need to rely on what's
32-
installed on the host. You can share containers while you work,
33-
and be sure that everyone you share with gets the same container that works in the
34-
same way.
28+
Docker packages and runs applications in loosely isolated environments called
29+
containers. This isolation and security allows you to run many containers
30+
simultaneously on a single host. Containers are lightweight and contain
31+
everything needed to run the application, eliminating dependencies on the host
32+
system. When you share containers, everyone gets the same container that works
33+
identically.
3534

3635
Docker provides tooling and a platform to manage the lifecycle of your containers:
3736

@@ -47,48 +46,44 @@ Docker provides tooling and a platform to manage the lifecycle of your container
4746
### Fast, consistent delivery of your applications
4847

4948
Docker streamlines the development lifecycle by allowing developers to work in
50-
standardized environments using local containers which provide your applications
51-
and services. Containers are great for continuous integration and continuous
49+
standardized environments using local containers that provide your applications
50+
and services. Containers are ideal for continuous integration and continuous
5251
delivery (CI/CD) workflows.
5352

5453
Consider the following example scenario:
5554

56-
- Your developers write code locally and share their work with their colleagues
57-
using Docker containers.
58-
- They use Docker to push their applications into a test environment and run
59-
automated and manual tests.
60-
- When developers find bugs, they can fix them in the development environment
61-
and redeploy them to the test environment for testing and validation.
62-
- When testing is complete, getting the fix to the customer is as simple as
63-
pushing the updated image to the production environment.
55+
- Developers write code locally and share their work with colleagues using Docker containers.
56+
- They use Docker to push their applications into a test environment and run automated and manual tests.
57+
- When developers find bugs, they can fix them in the development environment and redeploy them to the test environment for testing and validation.
58+
- When testing is complete, getting the fix to the customer is as simple as pushing the updated image to the production environment.
6459

6560
### Responsive deployment and scaling
6661

67-
Docker's container-based platform allows for highly portable workloads. Docker
62+
Docker's container-based platform enables highly portable workloads. Docker
6863
containers can run on a developer's local laptop, on physical or virtual
6964
machines in a data center, on cloud providers, or in a mixture of environments.
7065

7166
Docker's portability and lightweight nature also make it easy to dynamically
7267
manage workloads, scaling up or tearing down applications and services as
73-
business needs dictate, in near real time.
68+
business needs dictate, in near real-time.
7469

7570
### Running more workloads on the same hardware
7671

7772
Docker is lightweight and fast. It provides a viable, cost-effective alternative
78-
to hypervisor-based virtual machines, so you can use more of your server
79-
capacity to achieve your business goals. Docker is perfect for high density
73+
to hypervisor-based virtual machines, allowing you to use more of your server
74+
capacity to achieve your business goals. Docker is perfect for high-density
8075
environments and for small and medium deployments where you need to do more with
8176
fewer resources.
8277

8378
## Docker architecture
8479

8580
Docker uses a client-server architecture. The Docker client talks to the
86-
Docker daemon, which does the heavy lifting of building, running, and
81+
Docker daemon, which handles the heavy lifting of building, running, and
8782
distributing your Docker containers. The Docker client and daemon can
8883
run on the same system, or you can connect a Docker client to a remote Docker
8984
daemon. The Docker client and daemon communicate using a REST API, over UNIX
9085
sockets or a network interface. Another Docker client is Docker Compose,
91-
that lets you work with applications consisting of a set of containers.
86+
which lets you work with applications consisting of a set of containers.
9287

9388
![Docker Architecture diagram](images/docker-architecture.webp)
9489

@@ -107,36 +102,36 @@ Docker API. The Docker client can communicate with more than one daemon.
107102

108103
### Docker Desktop
109104

110-
Docker Desktop is an easy-to-install application for your Mac, Windows or Linux environment that enables you to build and share containerized applications and microservices. Docker Desktop includes the Docker daemon (`dockerd`), the Docker client (`docker`), Docker Compose, Docker Content Trust, Kubernetes, and Credential Helper. For more information, see [Docker Desktop](/manuals/desktop/_index.md).
105+
Docker Desktop is an easy-to-install application for your Mac, Windows, or Linux environment that enables you to build and share containerized applications and microservices. Docker Desktop includes the Docker daemon (`dockerd`), the Docker client (`docker`), Docker Compose, Docker Content Trust, Kubernetes, and Credential Helper. For more information, see [Docker Desktop](/manuals/desktop/_index.md).
111106

112107
### Docker registries
113108

114109
A Docker registry stores Docker images. Docker Hub is a public
115110
registry that anyone can use, and Docker looks for images on
116-
Docker Hub by default. You can even run your own private registry.
111+
Docker Hub by default. You can also run your own private registry.
117112

118113
When you use the `docker pull` or `docker run` commands, Docker pulls the required images from your configured registry. When you use the `docker push` command, Docker pushes
119114
your image to your configured registry.
120115

121116
### Docker objects
122117

123-
When you use Docker, you are creating and using images, containers, networks,
124-
volumes, plugins, and other objects. This section is a brief overview of some
118+
When you use Docker, you create and use images, containers, networks,
119+
volumes, plugins, and other objects. This section provides a brief overview of some
125120
of those objects.
126121

127122
#### Images
128123

129124
An image is a read-only template with instructions for creating a Docker
130125
container. Often, an image is based on another image, with some additional
131-
customization. For example, you may build an image which is based on the `ubuntu`
126+
customization. For example, you may build an image that is based on the `ubuntu`
132127
image, but installs the Apache web server and your application, as well as the
133128
configuration details needed to make your application run.
134129

135130
You might create your own images or you might only use those created by others
136131
and published in a registry. To build your own image, you create a Dockerfile
137132
with a simple syntax for defining the steps needed to create the image and run
138133
it. Each instruction in a Dockerfile creates a layer in the image. When you
139-
change the Dockerfile and rebuild the image, only those layers which have
134+
change the Dockerfile and rebuild the image, only those layers that have
140135
changed are rebuilt. This is part of what makes images so lightweight, small,
141136
and fast, when compared to other virtualization technologies.
142137

@@ -168,28 +163,28 @@ $ docker run -i -t ubuntu /bin/bash
168163
When you run this command, the following happens (assuming you are using
169164
the default registry configuration):
170165

171-
1. If you don't have the `ubuntu` image locally, Docker pulls it from your
172-
configured registry, as though you had run `docker pull ubuntu` manually.
166+
1. If you don't have the `ubuntu` image locally, Docker pulls it from your
167+
configured registry, as though you had run `docker pull ubuntu` manually.
173168

174-
2. Docker creates a new container, as though you had run a `docker container create`
175-
command manually.
169+
2. Docker creates a new container, as though you had run a `docker container create`
170+
command manually.
176171

177-
3. Docker allocates a read-write filesystem to the container, as its final
178-
layer. This allows a running container to create or modify files and
179-
directories in its local filesystem.
172+
3. Docker allocates a read-write filesystem to the container, as its final
173+
layer. This allows a running container to create or modify files and
174+
directories in its local filesystem.
180175

181-
4. Docker creates a network interface to connect the container to the default
182-
network, since you didn't specify any networking options. This includes
183-
assigning an IP address to the container. By default, containers can
184-
connect to external networks using the host machine's network connection.
176+
4. Docker creates a network interface to connect the container to the default
177+
network, since you didn't specify any networking options. This includes
178+
assigning an IP address to the container. By default, containers can
179+
connect to external networks using the host machine's network connection.
185180

186-
5. Docker starts the container and executes `/bin/bash`. Because the container
187-
is running interactively and attached to your terminal (due to the `-i` and `-t`
188-
flags), you can provide input using your keyboard while Docker logs the output to
189-
your terminal.
181+
5. Docker starts the container and executes `/bin/bash`. Because the container
182+
is running interactively and attached to your terminal (due to the `-i` and `-t`
183+
flags), you can provide input using your keyboard while Docker logs the output to
184+
your terminal.
190185

191-
6. When you run `exit` to terminate the `/bin/bash` command, the container
192-
stops but isn't removed. You can start it again or remove it.
186+
6. When you run `exit` to terminate the `/bin/bash` command, the container
187+
stops but isn't removed. You can start it again or remove it.
193188

194189
## The underlying technology
195190

@@ -204,5 +199,7 @@ in a separate namespace and its access is limited to that namespace.
204199

205200
## Next steps
206201

202+
Ready to start using Docker? Here's what to do next:
203+
207204
- [Install Docker](/get-started/get-docker.md)
208205
- [Get started with Docker](/get-started/introduction/_index.md)

content/get-started/get-docker.md

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -14,22 +14,22 @@ aliases:
1414

1515
Docker is an open platform for developing, shipping, and running applications.
1616

17-
Docker allows you to separate your applications from your infrastructure so you
18-
can deliver software quickly. With Docker, you can manage your infrastructure in
19-
the same ways you manage your applications.
17+
Docker lets you separate your applications from your infrastructure, so you can deliver software quickly. You can manage your infrastructure the same way you manage your applications.
2018

21-
By taking advantage of Docker’s
22-
methodologies for shipping, testing, and deploying code quickly, you can
23-
significantly reduce the delay between writing code and running it in production.
19+
By using Docker’s methodologies for shipping, testing, and deploying code, you can significantly reduce the time between writing code and running it in production.
2420

25-
You can download and install Docker on multiple platforms. Refer to the following
26-
section and choose the best installation path for you.
21+
You can download and install Docker on multiple platforms:
2722

23+
- **macOS**
24+
- **Windows**
25+
- **Linux**
26+
27+
Refer to the following section and choose the best installation path for your operating system.
28+
29+
> [!IMPORTANT]
2830
> **Docker Desktop terms**
2931
>
30-
> Commercial use of Docker Desktop in larger enterprises (more than 250
31-
> employees OR more than $10 million USD in annual revenue) requires a [paid
32-
> subscription](https://www.docker.com/pricing/).
32+
> Commercial use of Docker Desktop in larger enterprises (more than 250 employees OR more than $10 million USD in annual revenue) requires a [paid subscription](https://www.docker.com/pricing/).
3333
3434
<div class="not-prose">
3535
{{< card
@@ -52,5 +52,5 @@ section and choose the best installation path for you.
5252
</div>
5353

5454
> [!NOTE]
55-
>
55+
> If you're looking for information on how to install Docker Engine, see [Docker Engine installation overview](/engine/install/).
5656
> If you're looking for information on how to install Docker Engine, see [Docker Engine installation overview](/engine/install/).

0 commit comments

Comments
 (0)