You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: contributing/1-GET-STARTED.md
+15-14Lines changed: 15 additions & 14 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,33 +8,34 @@ See below for details on how you can contribute to our technical documentation.
8
8
9
9
## Sign a CLA
10
10
11
-
Before you can contribute to any PowerShell repositories, you must sign a[Microsoft Contribution Licensing Agreement (CLA)][cla].
12
-
If you've already contributed to PowerShell repositories in the past, congratulations! You've
13
-
already completed this step.
11
+
Before you can contribute to any PowerShell repositories, you must sign a
12
+
[Microsoft Contribution Licensing Agreement (CLA)][cla]. If you've already contributed to PowerShell
13
+
repositories in the past, congratulations! You've already completed this step.
14
14
15
15
## Providing feedback on PowerShell documentation
16
16
17
-
Point out errors, suggest changes, or request new topics by [creating an issue][new-issue] on the [PowerShell-Docs repository issues page][doc-issues].
17
+
Report errors, suggest changes, or request new topics by [creating an issue][new-issue] on the
This article provides some style guidance specific to the PowerShell-Docs content.
4
-
There is some limited guidance on specific Markdown formatting.
5
-
Markdown specifics are covered in the [Next steps](#next-steps).
6
4
7
5
For other writing style guidance, see the [Microsoft Style Guide](https://docs.microsoft.com/style-guide/welcome/).
8
6
@@ -11,86 +9,24 @@ For other writing style guidance, see the [Microsoft Style Guide](https://docs.m
11
9
There are several variants of PowerShell.
12
10
This table defines some of the different terms used to discuss PowerShell.
13
11
14
-
| Terminology | Definition |
15
-
| ----- | ----- |
16
-
| PowerShell | This is the default. We are shipping PowerShell. The term PowerShell can be legitimately used to indicate any of the particular editions. This can be used to refer to the language, framework and default cmdlets, etc. |
17
-
| PowerShell Core (PSCore) | PowerShell built on .NET Core Common Language Runtime (CoreCLR) for any of the platforms. |
18
-
| Windows PowerShell | PowerShell built on .NET Common Language Runtime (CLR). Windows PowerShell ships only on Windows and requires the complete CLR. |
12
+
-**PowerShell** - This is the default. We are shipping PowerShell. The term PowerShell can be
13
+
legitimately used to describe any edition of the product. This name can refer to the language,
14
+
framework, default cmdlets, etc.
15
+
-**PowerShell Core** - PowerShell built on .NET Core Common Language Runtime (CoreCLR) for any of
16
+
the platforms.
17
+
-**Windows PowerShell** - PowerShell built on .NET Common Language Runtime (CLR). Windows
18
+
PowerShell ships only on Windows and requires the complete CLR.
19
19
20
20
In general, references to "Windows PowerShell" in documentation can be changed to "PowerShell".
21
21
"Windows PowerShell" should **not** be changed when Windows-specific technology is being discussed.
22
22
23
-
## Use semantic line breaks
24
-
25
-
Add a single newline after each sentence or a clause boundary near the 100 character limit.
26
-
This simplifies the command-line output of diffs and history.
27
-
28
-
- You must include semantic line breaks
29
-
- Limit lines to 100 characters
30
-
- If a sentence is longer than 100 characters, break the line at a clause boundary
31
-
near the 100 character limit
32
-
33
-
For a good explanation of semantic line breaks, see [Semantic Linefeeds by Rhodes Mill][semantics].
34
-
35
-
This is not currently adopted across all of PowerShell-Docs, but we will be working towards it over time.
36
-
Feel free to help out.
37
-
38
-
## Formatting syntax elements
39
-
40
-
- PowerShell cmdlet names are [Pascal Cased][pascal-case].
41
-
Verbs are separated from nouns by a hyphen.
42
-
Always use the full Pascal Case name for cmdlets and parameters.
43
-
Avoid using aliases unless you are specifically talking about an alias.
44
-
45
-
- Property, parameter, and class names should be **bold**
46
-
47
-
- Within a paragraph, language keywords, cmdlet names, and variable references should be wrapped in
48
-
backtick (\`) characters. For example:
49
-
50
-
The following code assigns the output of `Get-ChildItem` to the `$files` variable.
51
-
52
-
```powershell
53
-
$files = Get-ChildItem C:\Windows
54
-
```
55
-
56
-
- When writing an article (as opposed to reference content), the first instance of a cmdlet name
57
-
should be a link to the cmdlet documentation.
58
-
59
-
For example:
60
-
61
-
This [Write-Host](..\reference\6\Microsoft.PowerShell.Utility\Write-Host.md) cmdlet uses the
62
-
**Object** parameter to ...
63
-
64
-
> [!NOTE]
65
-
> Never use backticks or bold inside the brackets of a hyperlink. This is an exception to the previous
66
-
> rule.
67
-
68
-
- When referring to a parameter by name, the name should be **bold**. When illustrating the use of
69
-
a parameter with the hyphen prefix, the parameter should be wrapped in backticks. For example:
70
-
71
-
> The parameter's name is **Name**, but it is typed as `-Name` when used on the command line as a
72
-
> parameter.
73
-
74
-
- When referring to external commands (EXEs, scripts, etc.), the command name should be bold, all
75
-
lowercase (or capitalized if at the beginning of a sentence), and include the appropriate file
76
-
extension. For example:
77
-
78
-
> For example, on Windows systems, you can use the `net start` and `net stop` commands to start
79
-
> and stop a service. **Sc.exe** is another service control tool for Windows. That name does not
80
-
> fit into the naming pattern for the **net.exe** service commands.
81
-
82
-
- When showing example usage of an external command, the example should be wrapped in backticks.
83
-
When there is a name collisions with an alias you must include the file extension in the command
84
-
example. For example:
85
-
86
-
> To start the spooler service on a remote computer named DC01, you type `sc.exe \\DC01 start spooler`.
87
-
88
-
## Links
23
+
## Hyperlinks
89
24
90
25
- Avoid using bare URLs. Links should use Markdown syntax `[friendlyname](url-or-path)`
91
26
- Links must have a friendly name, usually the title of the linked topic
92
27
- All items in the "related links" section at the bottom should be hyperlinked.
93
28
- Use relative links when linking to other content that is hosted on **docs.microsoft.com**.
29
+
- Do not use backticks, bold, or other markup inside the brackets of a hyperlink.
94
30
95
31
### Understanding Docsets
96
32
@@ -100,7 +36,6 @@ PowerShell-Docs repo contains the following docsets:
100
36
- developer - conceptual docs the PowerShell SDK
101
37
- dsc - conceptual docs for DSC
102
38
- gallery - conceptual docs for the PowerShell Gallery
103
-
- jea - conceptual docs for Just-in-Enough Administration
104
39
- reference - conceptual docs for using PowerShell and cmdlet reference docs
105
40
- wmf - conceptual docs and release notes for WMF
106
41
@@ -169,7 +104,3 @@ This link only works on the webpage published to **docs.microsoft.com**.
169
104
## Next Steps
170
105
171
106
See [Markdown Specifics](4-MARKDOWN-SPECIFICS.md).
0 commit comments