Skip to content

Commit ab5ee30

Browse files
corbobTylerLeonhardt
authored andcommitted
Alphabetize Table of Contents (#1296)
Sort the Table of Contents Alphabetically. Left align the Table of Contents to make it more pleasing to the eye.
1 parent 7d6eaaf commit ab5ee30

File tree

1 file changed

+24
-24
lines changed

1 file changed

+24
-24
lines changed

docs/community_snippets.md

+24-24
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,11 @@ _To contribute, check out our [guide here](#contributing)._
1515
## Table of contents
1616

1717
| Table of Contents |
18-
|:-----------------:|
18+
|:------------------|
1919
| [CalculatedProperty](#calculatedproperty): _Create a calculated property for use in a select-object call by @corbob_ |
20-
| [PSCustomObject](#pscustomobject): _A simple PSCustomObject by @brettmillerb_ |
2120
| [DateTimeWriteVerbose](#datetimewriteverbose): _Write-Verbose with the time and date pre-pended to your message by @ThmsRynr_ |
2221
| [Parameter-Credential](#parameter-credential): _Add a standard credential parameter to your function by @omniomi_ |
22+
| [PSCustomObject](#pscustomobject): _A simple PSCustomObject by @brettmillerb_ |
2323

2424
## Snippets
2525

@@ -39,27 +39,6 @@ Create calculated property for use in Select Statements
3939
}
4040
```
4141

42-
### PSCustomObject
43-
44-
A simple PSCustomObject by @brettmillerb. It has 4 properties that you can tab through to quickly fill in.
45-
46-
#### Snippet
47-
48-
```json
49-
"PSCustomObject": {
50-
"prefix": "PSCustomObject",
51-
"body": [
52-
"[PSCustomObject]@{\r",
53-
"\t${item1} = ${Property1}\r",
54-
"\t${item2} = ${Property2}\r",
55-
"\t${item3} = ${Property3}\r",
56-
"\t${item4} = ${Property4}\r",
57-
"}"
58-
],
59-
"description": "Creates a PSCustomObject"
60-
}
61-
```
62-
6342
### DateTimeWriteVerbose
6443

6544
Quickly add a `Write-Verbose` with the current date and time inserted before the message you're going to write to the verbose stream, by @ThmsRynr.
@@ -97,6 +76,27 @@ Add a `-Credential` parameter that supports a PSCredential object in a variable,
9776
}
9877
```
9978

79+
### PSCustomObject
80+
81+
A simple PSCustomObject by @brettmillerb. It has 4 properties that you can tab through to quickly fill in.
82+
83+
#### Snippet
84+
85+
```json
86+
"PSCustomObject": {
87+
"prefix": "PSCustomObject",
88+
"body": [
89+
"[PSCustomObject]@{\r",
90+
"\t${item1} = ${Property1}\r",
91+
"\t${item2} = ${Property2}\r",
92+
"\t${item3} = ${Property3}\r",
93+
"\t${item4} = ${Property4}\r",
94+
"}"
95+
],
96+
"description": "Creates a PSCustomObject"
97+
}
98+
```
99+
100100
## Contributing
101101

102102
If you'd like to add a snippet to this list, [open a pull request](https://opensource.guide/how-to-contribute/#opening-a-pull-request) with the following changes:
@@ -119,7 +119,7 @@ An example looks like this (NOTE: all lowercase link):
119119
which will show up in the ToC like this:
120120

121121
| Table of Contents |
122-
|:-----------------:|
122+
|:------------------|
123123
| [PSCustomObject](#pscustomobject): _A simple PSCustomObject_ |
124124

125125
### Body

0 commit comments

Comments
 (0)