Skip to content

Commit 889b93d

Browse files
authored
Merge pull request #4790 from MicrosoftDocs/staging
merge latest changes to live
2 parents 4ee28d9 + 2271a1e commit 889b93d

File tree

39 files changed

+3545
-2920
lines changed

39 files changed

+3545
-2920
lines changed

contributing/1-GET-STARTED.md

Lines changed: 15 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -8,33 +8,34 @@ See below for details on how you can contribute to our technical documentation.
88
99
## Sign a CLA
1010

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.
1414

1515
## Providing feedback on PowerShell documentation
1616

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
18+
[PowerShell-Docs repository issues page][doc-issues].
1819

1920
Issues are reviewed regularly by members of the PowerShell documentation team. The issues are
20-
triaged, assigned, and addressed accordingly.
21+
triaged, assigned, and addressed as appropriate.
2122

2223
## Making minor edits to existing topics
2324

2425
To [edit an existing file][edit-file], navigate to it and click the "Edit" button. GitHub will
2526
automatically create your own fork of our repository where you can make your changes. Once you are
26-
finished, save your edits and submit a [pull request][pull] to the *staging* branch of the [PowerShell-Docs][docs-repo]
27-
repository. After your pull request is created, someone on the PowerShell documentation team reviews
28-
your changes before merging them into the *staging* branch.
27+
finished, save your edits and submit a [pull request][pull] to the *staging* branch of the
28+
[PowerShell-Docs][docs-repo] repository. After your pull request is created, someone on the
29+
PowerShell documentation team reviews your changes before merging them into the *staging* branch.
2930

3031
## Making major edits to existing topics
3132

32-
If you are making substantial changes, adding or changing images, or contributing a new article, you
33-
will need to create a GitHub fork and clone it to your computer. A fork is a GitHub-based replica of
34-
the main repository, under your GitHub account, that provides you with a working copy which you can
35-
use in isolation. You will create pull requests from your fork. Similarly, a clone is a local-based
36-
replica of the repository which, in this case, will be a clone of your fork. The clone allows you to
37-
work on Git repositories offline, and using more powerful native software/tools.
33+
If you are making significant changes, adding or changing images, or contributing a new article, you
34+
need to create a GitHub fork and clone it to your computer. A fork is a GitHub-based replica of the
35+
main repository, under your GitHub account, that provides you with a working copy which you can use
36+
in isolation. You create pull requests from your fork. Similarly, a clone is a local-based replica
37+
of the repository which, in this case, is a clone of your fork. The clone allows you to work on Git
38+
repositories offline, and using more powerful native software/tools.
3839

3940
Here is the workflow for making major edits to existing documentation:
4041

contributing/2-WRITING.md

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# Writing PowerShell documentation
22

33
One of the easiest ways to contribute to PowerShell is by helping to write and edit documentation.
4-
All of our documentation hosted on GitHub is written using *Markdown*. Markdown is a lightweight
5-
markup language with plain text formatting syntax. Markdown forms the basis of our documentation's
4+
All the documentation hosted on GitHub is written using *Markdown*. Markdown is a lightweight markup
5+
language with plain text formatting syntax. Markdown forms the basis of our documentation's
66
conceptual authoring language. Creating new articles is as easy as writing a simple text file by
77
using your favorite text editor.
88

@@ -18,21 +18,21 @@ Here are some Markdown editors you can try out:
1818

1919
To get started using Markdown, see [How to use Markdown for writing Docs](https://docs.microsoft.com/contribute/how-to-write-use-markdown).
2020

21-
The Open Publishing System (OPS) is the platform used by docs.microsoft.com. OPS uses DocFX
22-
Flavored Markdown (DFM). DFM supports all GitHub Flavored Markdown (GFM) syntax and is compatible
23-
with CommonMark. There are some [differences between DFM and GFM][dfm-diffs] that can affect
24-
content preview in GitHub or your editor.
21+
The Open Publishing System (OPS) is the platform used by docs.microsoft.com. OPS uses DocFX Flavored
22+
Markdown (DFM). DFM supports all GitHub Flavored Markdown (GFM) syntax and is compatible with
23+
CommonMark. There are some [differences between DFM and GFM][dfm-diffs] that can affect content
24+
preview in GitHub or your editor.
2525

2626
The default Markdown engine in OPS is built on the top of [markdig][]. This engine is based on the
27-
CommonMark specification and supports extensions for DocFX. In the latest version of the
28-
[CommonMark][] specification, many spacing rules have changed. Spaces are significant in Markdown.
29-
Don't use hard tabs in Markdown. For more detailed information about the Markdown specification,
30-
see the [Markdown Specifics](4-MARKDOWN-SPECIFICS.md) article.
27+
CommonMark specification and supports extensions for DocFX. In the latest version of the [CommonMark][]
28+
specification, many spacing rules have changed. Spaces are significant in Markdown. Don't use hard
29+
tabs in Markdown. For more detailed information about the Markdown specification, see the
30+
[Markdown Specifics](4-MARKDOWN-SPECIFICS.md) article.
3131

3232
## Creating new topics
3333

34-
To contribute new documentation, check for issues tagged as ["in progress"][labels] to make
35-
sure you're not duplicating efforts. If no one seems to be working on what you have planned:
34+
To contribute new documentation, check for issues tagged as ["in progress"][labels] to make sure
35+
you're not duplicating efforts. If no one seems to be working on what you have planned:
3636

3737
- Open a new issue and label it as "in progress". If you don't have rights to assign labels, add "in
3838
progress" as a comment to tell others what you're working on.
@@ -59,4 +59,4 @@ Read the [Style Guide](3-STYLE-GUIDE.md).
5959
[gfm-help]: https://help.github.com/categories/writing-on-github/
6060
[labels]: https://github.com/PowerShell/PowerShell-Docs/labels/in%20progress
6161
[gfm-task]: https://github.github.com/gfm/#task-list-items-extension-
62-
[dfm-diffs]: https://dotnet.github.io/docfx/spec/docfx_flavored_markdown.html#differences-between-dfm-and-gfm
62+
[dfm-diffs]: https://dotnet.github.io/docfx/spec/docfx_flavored_markdown.html#differences-between-dfm-and-gfm

contributing/3-STYLE-GUIDE.md

Lines changed: 9 additions & 78 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
# Style guide for PowerShell-Docs
22

33
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).
64

75
For other writing style guidance, see the [Microsoft Style Guide](https://docs.microsoft.com/style-guide/welcome/).
86

@@ -11,86 +9,24 @@ For other writing style guidance, see the [Microsoft Style Guide](https://docs.m
119
There are several variants of PowerShell.
1210
This table defines some of the different terms used to discuss PowerShell.
1311

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.
1919

2020
In general, references to "Windows PowerShell" in documentation can be changed to "PowerShell".
2121
"Windows PowerShell" should **not** be changed when Windows-specific technology is being discussed.
2222

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
8924

9025
- Avoid using bare URLs. Links should use Markdown syntax `[friendlyname](url-or-path)`
9126
- Links must have a friendly name, usually the title of the linked topic
9227
- All items in the "related links" section at the bottom should be hyperlinked.
9328
- 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.
9430

9531
### Understanding Docsets
9632

@@ -100,7 +36,6 @@ PowerShell-Docs repo contains the following docsets:
10036
- developer - conceptual docs the PowerShell SDK
10137
- dsc - conceptual docs for DSC
10238
- gallery - conceptual docs for the PowerShell Gallery
103-
- jea - conceptual docs for Just-in-Enough Administration
10439
- reference - conceptual docs for using PowerShell and cmdlet reference docs
10540
- wmf - conceptual docs and release notes for WMF
10641

@@ -169,7 +104,3 @@ This link only works on the webpage published to **docs.microsoft.com**.
169104
## Next Steps
170105

171106
See [Markdown Specifics](4-MARKDOWN-SPECIFICS.md).
172-
173-
<!-- External URLs -->
174-
[pascal-case]: https://en.wikipedia.org/wiki/PascalCase
175-
[semantics]: http://rhodesmill.org/brandon/2012/one-sentence-per-line/

0 commit comments

Comments
 (0)