From c9c1c4dd62256a8b7637d3db1c73474f71f57ecc Mon Sep 17 00:00:00 2001 From: corbob <30301021+corbob@users.noreply.github.com> Date: Thu, 26 Apr 2018 19:14:19 -0700 Subject: [PATCH] Alphabetize Table of Contents Sort the Table of Contents Alphabetically. Left align the Table of Contents to make it more pleasing to the eye. --- docs/community_snippets.md | 48 +++++++++++++++++++------------------- 1 file changed, 24 insertions(+), 24 deletions(-) diff --git a/docs/community_snippets.md b/docs/community_snippets.md index 3b95eb5d88..a8bf82e357 100644 --- a/docs/community_snippets.md +++ b/docs/community_snippets.md @@ -15,34 +15,13 @@ _To contribute, check out our [guide here](#contributing)._ ## Table of contents | Table of Contents | -|:-----------------:| -| [PSCustomObject](#pscustomobject): _A simple PSCustomObject by @brettmillerb_ | +|:------------------| | [DateTimeWriteVerbose](#datetimewriteverbose): _Write-Verbose with the time and date pre-pended to your message by @ThmsRynr_ | | [Parameter-Credential](#parameter-credential): _Add a standard credential parameter to your function by @omniomi_ | +| [PSCustomObject](#pscustomobject): _A simple PSCustomObject by @brettmillerb_ | ## Snippets -### PSCustomObject - -A simple PSCustomObject by @brettmillerb. It has 4 properties that you can tab through to quickly fill in. - -#### Snippet - -```json -"PSCustomObject": { - "prefix": "PSCustomObject", - "body": [ - "[PSCustomObject]@{\r", - "\t${item1} = ${Property1}\r", - "\t${item2} = ${Property2}\r", - "\t${item3} = ${Property3}\r", - "\t${item4} = ${Property4}\r", - "}" - ], - "description": "Creates a PSCustomObject" -} -``` - ### DateTimeWriteVerbose 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. @@ -80,6 +59,27 @@ Add a `-Credential` parameter that supports a PSCredential object in a variable, } ``` +### PSCustomObject + +A simple PSCustomObject by @brettmillerb. It has 4 properties that you can tab through to quickly fill in. + +#### Snippet + +```json +"PSCustomObject": { + "prefix": "PSCustomObject", + "body": [ + "[PSCustomObject]@{\r", + "\t${item1} = ${Property1}\r", + "\t${item2} = ${Property2}\r", + "\t${item3} = ${Property3}\r", + "\t${item4} = ${Property4}\r", + "}" + ], + "description": "Creates a PSCustomObject" +} +``` + ## Contributing 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: @@ -102,7 +102,7 @@ An example looks like this (NOTE: all lowercase link): which will show up in the ToC like this: | Table of Contents | -|:-----------------:| +|:------------------| | [PSCustomObject](#pscustomobject): _A simple PSCustomObject_ | ### Body