diff --git a/docs/about.md b/docs/about.md index febda88d68..3c840ac37f 100644 --- a/docs/about.md +++ b/docs/about.md @@ -1,4 +1,5 @@ --- +title: What is PSRule and why should I use it? author: BernieWhite --- diff --git a/docs/analysis-output.md b/docs/analysis-output.md index 7857fa7ba0..7c537946f1 100644 --- a/docs/analysis-output.md +++ b/docs/analysis-output.md @@ -59,7 +59,7 @@ The output format can be configuring by setting the `Output.Format` option to on === "Options file" - ```yaml hl_lines="2-3" + ```yaml title="ps-rule.yaml" hl_lines="2-3" output: format: 'Sarif' path: reports/ps-rule-results.sarif diff --git a/docs/authoring/testing-infrastructure.md b/docs/authoring/testing-infrastructure.md index 63e703e7a2..15a0e2ddc4 100644 --- a/docs/authoring/testing-infrastructure.md +++ b/docs/authoring/testing-infrastructure.md @@ -1,4 +1,5 @@ --- +title: Testing Infrastructure as Code author: BernieWhite --- diff --git a/docs/authoring/using-expressions.md b/docs/authoring/using-expressions.md index 17844e8cf0..b453c92278 100644 --- a/docs/authoring/using-expressions.md +++ b/docs/authoring/using-expressions.md @@ -78,4 +78,4 @@ _n/a_ | NullOrEmpty _n/a_ | TypeOf WithinPath | WithinPath -[^1]: The `Equals`, `HasValue` and expression and `HasFieldValue` are similar. +[^1]: The `Equals`, `HasValue` expressions and `HasFieldValue` are similar. diff --git a/docs/creating-your-pipeline.md b/docs/creating-your-pipeline.md index b18a646352..942aabaf4c 100644 --- a/docs/creating-your-pipeline.md +++ b/docs/creating-your-pipeline.md @@ -83,7 +83,7 @@ To prevent a rule executing you can either: [:octicons-book-24: Docs][3] - ```yaml + ```yaml title="ps-rule.yaml" rule: exclude: # Ignore the following rules for all objects @@ -97,7 +97,7 @@ To prevent a rule executing you can either: [:octicons-book-24: Docs][4] - ```yaml + ```yaml title="ps-rule.yaml" suppression: Azure.AKS.AuthorizedIPs: # Exclude the following externally managed AKS clusters diff --git a/docs/expressions/functions.md b/docs/expressions/functions.md index deab0deda1..312dc77a06 100644 --- a/docs/expressions/functions.md +++ b/docs/expressions/functions.md @@ -44,7 +44,7 @@ The conditions that are supported are: ## Examples -```yaml +```yaml title="YAML" --- # Synopsis: An expression function example. apiVersion: github.com/microsoft/PSRule/v1 diff --git a/docs/expressions/sub-selectors.md b/docs/expressions/sub-selectors.md index c502f90f20..995a21a538 100644 --- a/docs/expressions/sub-selectors.md +++ b/docs/expressions/sub-selectors.md @@ -186,7 +186,7 @@ In the example: Given the example, is important to understand what happens if: -- The `resources` property doesn't exist. +- The `resources` property doesn't exist. **OR** - The `resources` property doesn't contain any items that match the sub-selector condition. In either of these two cases, the sub-selector will return `false` and fail the rule. diff --git a/docs/faq.md b/docs/faq.md index c33596d5a4..06653f3031 100644 --- a/docs/faq.md +++ b/docs/faq.md @@ -1,4 +1,5 @@ --- +title: Frequently Asked Questions author: BernieWhite --- diff --git a/docs/features.md b/docs/features.md index 9dfc4bdbc1..c4988b9e4a 100644 --- a/docs/features.md +++ b/docs/features.md @@ -1,4 +1,5 @@ --- +title: Key features of PSRule author: BernieWhite --- diff --git a/docs/install-instructions.md b/docs/install-instructions.md index 934a737868..9444803dbd 100644 --- a/docs/install-instructions.md +++ b/docs/install-instructions.md @@ -1,4 +1,5 @@ --- +title: Instructions for installing PSRule author: BernieWhite --- @@ -16,7 +17,7 @@ It is shipped as a PowerShell module which makes it easy to install and distribu [:octicons-workflow-24: GitHub Action][1] -Install and use PSRule with GitHub Actions by referencing the `Microsoft/ps-rule` action. +Install and use PSRule with GitHub Actions by referencing the `microsoft/ps-rule` action. ```yaml - name: Analyze Azure template files diff --git a/docs/license-contributing.md b/docs/license-contributing.md index e8c62efd34..7e24a164bf 100755 --- a/docs/license-contributing.md +++ b/docs/license-contributing.md @@ -1,3 +1,8 @@ +--- +title: License and contributing to PSRule +author: BernieWhite +--- + # License and contributing PSRule is licensed with an [:octicons-law-24: MIT License][1], which means it's free to use and modify. diff --git a/docs/support.md b/docs/support.md index 7458009b59..e79bfe08af 100644 --- a/docs/support.md +++ b/docs/support.md @@ -1,7 +1,11 @@ +--- +title: Support for PSRule +author: BernieWhite +--- + # Support This project uses GitHub Issues to track bugs and feature requests. - Please search the existing issues before filing new issues to avoid duplicates. @@ -14,4 +18,3 @@ Support for this project/ product is limited to the resources listed above. [issue]: https://github.com/microsoft/PSRule/issues [discussion]: https://github.com/microsoft/PSRule/discussions - diff --git a/docs/upgrade-notes.md b/docs/upgrade-notes.md index c346bca7f6..abbd1b130e 100644 --- a/docs/upgrade-notes.md +++ b/docs/upgrade-notes.md @@ -1,3 +1,8 @@ +--- +title: Notes for upgrading between PSRule versions +author: BernieWhite +--- + # Upgrade notes This document contains notes to help upgrade from previous versions of PSRule. diff --git a/docs/validating-locally.md b/docs/validating-locally.md index d6c589cd4e..f564b5ee3f 100644 --- a/docs/validating-locally.md +++ b/docs/validating-locally.md @@ -5,28 +5,33 @@ author: BernieWhite # Validating locally PSRule can be installed locally on MacOS, Linux, and Windows for local validation. +This allows you to test Infrastructure as Code (IaC) artifacts before pushing changes to a repository. !!! Tip If you haven't already, follow the instructions on [installing locally][1] before continuing. - [1]: install-instructions.md#installinglocally + [1]: install-instructions.md#installing-locally ## With Visual Studio Code [:octicons-download-24: Extension][2] An extension for Visual Studio Code is available for an integrated experience using PSRule. -The Visual Studio Code extension includes a built-in `PSRule: Run analysis` task. +The Visual Studio Code extension includes a built-in task _PSRule: Run analysis_ task.