From 347e94ae6f3422756b2752ba089a1fd24fb3fff3 Mon Sep 17 00:00:00 2001 From: Bernie White Date: Thu, 1 Jul 2021 10:26:42 +1000 Subject: [PATCH] Migrated to Microsoft GitHub org #145 (#169) --- .azure-pipelines/azure-pipelines.yaml | 2 +- .azure-pipelines/pipeline-deps.ps1 | 3 + .github/CODEOWNERS | 2 +- .github/ISSUE_TEMPLATE/question.md | 2 +- .github/PULL_REQUEST_TEMPLATE.md | 2 +- .github/dependabot.yml | 12 ++- .github/workflows/analyze.yaml | 21 +++++ .github/workflows/stale.yaml | 29 ++++++ .vscode/tasks.json | 22 ++++- CHANGELOG.md | 94 ++++++++++--------- CODE_OF_CONDUCT.md | 9 ++ CONTRIBUTING.md | 72 ++++++++++++++ LICENSE | 2 +- README.md | 33 +++++-- SECURITY.md | 43 +++++++++ SUPPORT.md | 16 ++++ build.ps1 | 2 + docs/commands/PSDocs/en-US/Document.md | 2 +- docs/commands/PSDocs/en-US/Get-PSDocument.md | 2 +- .../PSDocs/en-US/Get-PSDocumentHeader.md | 2 +- .../PSDocs/en-US/Invoke-PSDocument.md | 2 +- .../PSDocs/en-US/New-PSDocumentOption.md | 2 +- docs/commands/PSDocs/en-US/PSDocs.md | 2 +- .../en-US/about_PSDocs_Configuration.md | 4 +- .../PSDocs/en-US/about_PSDocs_Conventions.md | 4 +- .../PSDocs/en-US/about_PSDocs_Options.md | 6 +- .../PSDocs/en-US/about_PSDocs_Variables.md | 4 +- .../PSDocs/en-US/about_PSDocs_Keywords.md | 4 +- .../arm-template/arm-template.Doc.ps1 | 3 + pipeline.build.ps1 | 40 +------- ps-project.yaml | 2 +- ps-rule.yaml | 15 +++ src/PSDocs.Benchmark/Benchmark.Doc.ps1 | 3 + src/PSDocs.Benchmark/PSDocs.cs | 5 +- src/PSDocs.Benchmark/Program.cs | 5 +- src/PSDocs/Commands/BlockQuoteCommand.cs | 5 +- src/PSDocs/Commands/CodeCommand.cs | 4 +- src/PSDocs/Commands/DefinitionCommand.cs | 4 +- .../Commands/ExportConventionCommand.cs | 4 +- src/PSDocs/Commands/IncludeCommand.cs | 4 +- .../Commands/InvokeConventionCommand.cs | 4 +- src/PSDocs/Commands/InvokeDocumentCommand.cs | 4 +- src/PSDocs/Commands/Keyword.cs | 4 +- src/PSDocs/Commands/ListCommand.cs | 4 +- src/PSDocs/Commands/MetadataCommand.cs | 4 +- src/PSDocs/Commands/NoteCommand.cs | 4 +- src/PSDocs/Commands/SectionCommand.cs | 4 +- src/PSDocs/Commands/TableCommand.cs | 4 +- src/PSDocs/Commands/TitleCommand.cs | 4 +- src/PSDocs/Commands/WarningCommand.cs | 4 +- src/PSDocs/Common/DictionaryExtensions.cs | 4 +- src/PSDocs/Common/HashtableExtensions.cs | 4 +- src/PSDocs/Common/JsonConverters.cs | 4 +- src/PSDocs/Common/ObjectHelper.cs | 4 +- src/PSDocs/Common/PSObjectExtensions.cs | 4 +- src/PSDocs/Common/YamlConverters.cs | 4 +- src/PSDocs/Configuration/ColumnPadding.cs | 5 +- .../Configuration/ConfigurationOption.cs | 4 +- src/PSDocs/Configuration/DocumentOption.cs | 5 +- src/PSDocs/Configuration/EdgePipeOption.cs | 5 +- src/PSDocs/Configuration/ExecutionOption.cs | 4 +- src/PSDocs/Configuration/KeyMapDictionary.cs | 4 +- src/PSDocs/Configuration/LanguageMode.cs | 5 +- src/PSDocs/Configuration/MarkdownEncoding.cs | 5 +- src/PSDocs/Configuration/MarkdownOption.cs | 4 +- src/PSDocs/Configuration/OutputOption.cs | 4 +- src/PSDocs/Configuration/PSDocumentOption.cs | 4 +- src/PSDocs/Data/CodeContent.cs | 4 +- src/PSDocs/Data/IDocumentBuilder.cs | 5 +- .../Data/Internal/ScriptDocumentBuilder.cs | 4 +- .../Conventions/BaseDocumentConvention.cs | 4 +- .../Conventions/DefaultDocumentConvention.cs | 4 +- .../ScriptBlockDocumentConvention.cs | 4 +- src/PSDocs/Definitions/IDocumentConvention.cs | 4 +- src/PSDocs/Definitions/IDocumentDefinition.cs | 5 +- src/PSDocs/Models/Alignment.cs | 5 +- src/PSDocs/Models/BlockQuote.cs | 5 +- src/PSDocs/Models/Code.cs | 5 +- src/PSDocs/Models/Document.cs | 4 +- src/PSDocs/Models/DocumentFilter.cs | 5 +- src/PSDocs/Models/DocumentNode.cs | 5 +- src/PSDocs/Models/DocumentNodeType.cs | 5 +- src/PSDocs/Models/Include.cs | 4 +- src/PSDocs/Models/ModelHelper.cs | 4 +- src/PSDocs/Models/PSDocsContext.cs | 5 +- src/PSDocs/Models/PSDocsHelper.cs | 5 +- src/PSDocs/Models/Section.cs | 5 +- src/PSDocs/Models/SectionNode.cs | 4 +- src/PSDocs/Models/Table.cs | 5 +- src/PSDocs/Models/TableBuilder.cs | 4 +- src/PSDocs/Models/TableColumnHeader.cs | 5 +- src/PSDocs/Models/Text.cs | 5 +- src/PSDocs/PSDocs.csproj | 8 +- src/PSDocs/PSDocs.psd1 | 17 ++-- src/PSDocs/PSDocs.psm1 | 3 + src/PSDocs/Pipeline/Execeptions.cs | 5 +- src/PSDocs/Pipeline/GetPipeline.cs | 5 +- src/PSDocs/Pipeline/HostContext.cs | 5 +- src/PSDocs/Pipeline/InstanceNameBinder.cs | 5 +- src/PSDocs/Pipeline/InvokePipeline.cs | 4 +- .../Pipeline/Output/HostPipelineWriter.cs | 5 +- src/PSDocs/Pipeline/PipelineBuilder.cs | 2 + src/PSDocs/Pipeline/PipelineContext.cs | 4 +- src/PSDocs/Pipeline/PipelineStream.cs | 4 +- src/PSDocs/Pipeline/PipelineWriter.cs | 4 +- src/PSDocs/Pipeline/SourcePipeline.cs | 4 +- src/PSDocs/Pipeline/StreamPipeline.cs | 4 +- src/PSDocs/Processor/IDocumentProcessor.cs | 5 +- src/PSDocs/Processor/IDocumentResult.cs | 4 +- .../Processor/Markdown/MarkdownProcessor.cs | 4 +- .../Markdown/MarkdownProcessorContext.cs | 4 +- src/PSDocs/Properties/AssemblyInfo.cs | 4 +- src/PSDocs/Runtime/Configuration.cs | 4 +- src/PSDocs/Runtime/DocumentContext.cs | 4 +- src/PSDocs/Runtime/Host.cs | 4 +- src/PSDocs/Runtime/HostHelper.cs | 4 +- src/PSDocs/Runtime/HostState.cs | 4 +- src/PSDocs/Runtime/ILanguageBlock.cs | 5 +- src/PSDocs/Runtime/LanguageScriptBlock.cs | 4 +- src/PSDocs/Runtime/LocalizedData.cs | 4 +- src/PSDocs/Runtime/PSDocs.cs | 2 + src/PSDocs/Runtime/ResourceExtent.cs | 5 +- src/PSDocs/Runtime/ResourceHelper.cs | 5 +- src/PSDocs/Runtime/RunspaceContext.cs | 4 +- src/PSDocs/Runtime/ScopedItem.cs | 4 +- src/PSDocs/Runtime/ScriptDocumentBlock.cs | 4 +- src/PSDocs/Runtime/StringContent.cs | 4 +- src/PSDocs/Runtime/StringStream.cs | 4 +- src/PSDocs/en-AU/PSDocs.Resources.psd1 | 2 + src/PSDocs/en-GB/PSDocs.Resources.psd1 | 2 + src/PSDocs/en-US/PSDocs.Resources.psd1 | 2 + tests/PSDocs.Tests/FromFile.Cmdlets.Doc.ps1 | 3 + .../PSDocs.Tests/FromFile.Conventions.Doc.ps1 | 3 + tests/PSDocs.Tests/FromFile.Doc.ps1 | 2 + tests/PSDocs.Tests/FromFile.Keyword.Doc.ps1 | 3 + tests/PSDocs.Tests/FromFile.Variables.Doc.ps1 | 2 + tests/PSDocs.Tests/KeywordTests.cs | 4 +- tests/PSDocs.Tests/MarkdownProcessorTests.cs | 3 + tests/PSDocs.Tests/Models/TestModel.cs | 5 +- .../PSDocs.Tests/PSDocs.BlockQuote.Tests.ps1 | 3 + tests/PSDocs.Tests/PSDocs.Code.Tests.ps1 | 3 + tests/PSDocs.Tests/PSDocs.Common.Tests.ps1 | 3 + .../PSDocs.Tests/PSDocs.Conventions.Tests.ps1 | 3 + tests/PSDocs.Tests/PSDocs.Include.Tests.ps1 | 3 + tests/PSDocs.Tests/PSDocs.Metadata.Tests.ps1 | 3 + tests/PSDocs.Tests/PSDocs.Note.Tests.ps1 | 3 + tests/PSDocs.Tests/PSDocs.Options.Tests.ps1 | 3 + tests/PSDocs.Tests/PSDocs.Section.Tests.ps1 | 3 + tests/PSDocs.Tests/PSDocs.Table.Tests.ps1 | 3 + tests/PSDocs.Tests/PSDocs.Title.Tests.ps1 | 3 + tests/PSDocs.Tests/PSDocs.Variables.Tests.ps1 | 3 + tests/PSDocs.Tests/PSDocs.Warning.Tests.ps1 | 3 + tests/PSDocs.Tests/PipelineTests.cs | 4 +- tests/PSDocs.Tests/StringContentTests.cs | 4 +- tests/PSDocs.Tests/TestCommandRuntime.cs | 5 +- tests/PSDocs.Tests/TestModule/TestModule.psd1 | 3 + .../PSDocs.Tests/TestModule/docs/Test.Doc.ps1 | 2 + .../TestModule/en-AU/PSDocs-strings.psd1 | 3 + .../TestModule/en-US/PSDocs-strings.psd1 | 3 + .../TestModule/en-ZZ/PSDocs-strings.psd1 | 3 + .../TestModule/en/PSDocs-strings.psd1 | 3 + tests/PSDocs.Tests/WithError.Doc.ps1 | 2 + tests/PSDocs.Tests/en-US/PSDocs-strings.psd1 | 3 + 163 files changed, 769 insertions(+), 222 deletions(-) create mode 100644 .github/workflows/analyze.yaml create mode 100644 .github/workflows/stale.yaml create mode 100644 CODE_OF_CONDUCT.md create mode 100644 CONTRIBUTING.md create mode 100644 SECURITY.md create mode 100644 SUPPORT.md create mode 100644 ps-rule.yaml diff --git a/.azure-pipelines/azure-pipelines.yaml b/.azure-pipelines/azure-pipelines.yaml index e608348..725e464 100644 --- a/.azure-pipelines/azure-pipelines.yaml +++ b/.azure-pipelines/azure-pipelines.yaml @@ -230,7 +230,7 @@ stages: action: edit tag: '$(Build.SourceBranchName)' releaseNotesSource: inline - releaseNotesInline: 'See [change log](https://github.com/BernieWhite/PSDocs/blob/main/CHANGELOG.md)' + releaseNotesInline: 'See [change log](https://github.com/Microsoft/PSDocs/blob/main/CHANGELOG.md)' assetUploadMode: replace addChangeLog: false isPreRelease: $(isPreRelease) diff --git a/.azure-pipelines/pipeline-deps.ps1 b/.azure-pipelines/pipeline-deps.ps1 index 834c551..29f37a3 100644 --- a/.azure-pipelines/pipeline-deps.ps1 +++ b/.azure-pipelines/pipeline-deps.ps1 @@ -1,3 +1,6 @@ +# Copyright (c) Microsoft Corporation. +# Licensed under the MIT License. + # # Install dependencies for integration with Azure DevOps # diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 0127dea..306144a 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -1,2 +1,2 @@ # https://help.github.com/articles/about-codeowners/ -* @BernieWhite +* @microsoft/psdocs diff --git a/.github/ISSUE_TEMPLATE/question.md b/.github/ISSUE_TEMPLATE/question.md index 3b331da..496891c 100644 --- a/.github/ISSUE_TEMPLATE/question.md +++ b/.github/ISSUE_TEMPLATE/question.md @@ -8,4 +8,4 @@ We use Issues as an issue tracker; for help, discussion, and support questions, Thanks! 😁. -- https://github.com/BernieWhite/PSDocs/discussions +- https://github.com/Microsoft/PSDocs/discussions diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md index 188399e..36d6840 100644 --- a/.github/PULL_REQUEST_TEMPLATE.md +++ b/.github/PULL_REQUEST_TEMPLATE.md @@ -11,4 +11,4 @@ - **Code changes** - [ ] Have unit tests created/ updated - [ ] Link to a filed issue - - [ ] [Change log](https://github.com/BernieWhite/PSDocs/blob/main/CHANGELOG.md) has been updated with change under unreleased section + - [ ] [Change log](https://github.com/Microsoft/PSDocs/blob/main/CHANGELOG.md) has been updated with change under unreleased section diff --git a/.github/dependabot.yml b/.github/dependabot.yml index ebb677b..6dae047 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -16,8 +16,18 @@ updates: labels: - 'dependencies' reviewers: - - 'berniewhite' + - 'microsoft/psdocs' ignore: # Ignore upgrades to PS 7.1 for tool chain components at this time # Testing against PS 7.1 is already completed - dependency-name: 'Microsoft.PowerShell.SDK' + +# Maintain dependencies for GitHub Actions +- package-ecosystem: 'github-actions' + directory: '/' + schedule: + interval: 'daily' + labels: + - 'ci-quality' + reviewers: + - 'microsoft/psdocs' diff --git a/.github/workflows/analyze.yaml b/.github/workflows/analyze.yaml new file mode 100644 index 0000000..c1b604c --- /dev/null +++ b/.github/workflows/analyze.yaml @@ -0,0 +1,21 @@ +# +# Repository validation +# +name: Analyze +on: +- pull_request + +jobs: + analyze: + name: Analyze repository + runs-on: ubuntu-latest + steps: + + - name: Checkout + uses: actions/checkout@v2 + + - name: Run PSRule analysis + uses: Microsoft/ps-rule@main + with: + modules: PSRule.Rules.MSFT.OSS + prerelease: true diff --git a/.github/workflows/stale.yaml b/.github/workflows/stale.yaml new file mode 100644 index 0000000..3571a9f --- /dev/null +++ b/.github/workflows/stale.yaml @@ -0,0 +1,29 @@ +# +# Stale issues +# +name: 'Close stale issues' +on: + schedule: + - cron: '30 1 * * *' + +jobs: + stale: + runs-on: ubuntu-latest + steps: + - uses: actions/stale@v3 + with: + stale-issue-message: > + This issue has been automatically marked as stale because it has not had + recent activity. It will be closed if no further activity occurs within 7 days. + Thank you for your contributions. + + close-issue-message: 'This issue was closed because it has not had any recent activity.' + + days-before-stale: 14 + days-before-pr-stale: -1 + + days-before-close: 7 + days-before-pr-close: -1 + + any-of-labels: 'question,duplicate,incomplete' + stale-issue-label: stale diff --git a/.vscode/tasks.json b/.vscode/tasks.json index f084aef..8400ba4 100644 --- a/.vscode/tasks.json +++ b/.vscode/tasks.json @@ -11,7 +11,9 @@ "kind": "test", "isDefault": true }, - "problemMatcher": [ "$pester" ], + "problemMatcher": [ + "$pester" + ], "presentation": { "panel": "dedicated", "clear": true @@ -21,7 +23,9 @@ "label": "coverage", "type": "shell", "command": "Invoke-Build Test -CodeCoverage", - "problemMatcher": [ "$pester" ] + "problemMatcher": [ + "$pester" + ] }, { "label": "build", @@ -60,6 +64,20 @@ "clear": true, "panel": "dedicated" } + }, + { + "type": "PSRule", + "problemMatcher": [ + "$PSRule" + ], + "label": "PSRule: Run analysis", + "modules": [ + "PSRule.Rules.MSFT.OSS" + ], + "presentation": { + "panel": "dedicated", + "clear": true + } } ] } \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index b0c3414..07e00f6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,41 +2,47 @@ ## Unreleased +What's changed since pre-release v0.9.0-B2106004: + +- Engineering: + - Migrated PSDocs to Microsoft GitHub organization. [#145](https://github.com/microsoft/PSDocs/issues/145) + - Bump YamlDotNet dependency to v11.2.1. [#168](https://github.com/microsoft/PSDocs/pull/168) + ## v0.9.0-B2106004 (pre-release) What's changed since pre-release v0.9.0-B2102002: - Engineering: - - Bump YamlDotNet dependency to v11.2.0. [#165](https://github.com/BernieWhite/PSDocs/pull/165) + - Bump YamlDotNet dependency to v11.2.0. [#165](https://github.com/Microsoft/PSDocs/pull/165) ## v0.9.0-B2102002 (pre-release) What's changed since v0.8.0: - General improvements: - - Added support for document data and metadata in `end` convention blocks. [#148](https://github.com/BernieWhite/PSDocs/issues/148) + - Added support for document data and metadata in `end` convention blocks. [#148](https://github.com/Microsoft/PSDocs/issues/148) ## v0.8.0 What's changed since v0.7.0: - Engine features: - - Added support for running custom actions using conventions. [#18](https://github.com/BernieWhite/PSDocs/issues/18) - [#120](https://github.com/BernieWhite/PSDocs/issues/120) + - Added support for running custom actions using conventions. [#18](https://github.com/Microsoft/PSDocs/issues/18) + [#120](https://github.com/Microsoft/PSDocs/issues/120) - Conventions provide `Begin`, `Process` and `End` blocks to hook into the document pipeline. - Name or change the output path of documents in `Begin` and `Process` blocks. - Generate table of contents (TOC) and perform publishing actions in `End` blocks. - See [about_PSDocs_Conventions] for more details. - - Added support for custom configuration key values. [#121](https://github.com/BernieWhite/PSDocs/issues/121) + - Added support for custom configuration key values. [#121](https://github.com/Microsoft/PSDocs/issues/121) - See [about_PSDocs_Configuration] for more details. - General improvements: - - Improve handling when an empty document title is set. [#122](https://github.com/BernieWhite/PSDocs/issues/122) - - Added `-Replace` parameter to `Include` keyword to replace tokens in included file. [#134](https://github.com/BernieWhite/PSDocs/issues/134) + - Improve handling when an empty document title is set. [#122](https://github.com/Microsoft/PSDocs/issues/122) + - Added `-Replace` parameter to `Include` keyword to replace tokens in included file. [#134](https://github.com/Microsoft/PSDocs/issues/134) - A hashtable of replacement tokens can be specified to replace contents within original file. - See [about_PSDocs_Keywords] for more details. - Bug fixes: - - Fixed boolean string conversion with the `GetBoolOrDefault` configuration helper. [#140](https://github.com/BernieWhite/PSDocs/issues/140) - - Fixed use of error action preference with `Include` keyword. [#127](https://github.com/BernieWhite/PSDocs/issues/127) + - Fixed boolean string conversion with the `GetBoolOrDefault` configuration helper. [#140](https://github.com/Microsoft/PSDocs/issues/140) + - Fixed use of error action preference with `Include` keyword. [#127](https://github.com/Microsoft/PSDocs/issues/127) What's changed since pre-release v0.8.0-B2102012: @@ -47,21 +53,21 @@ What's changed since pre-release v0.8.0-B2102012: What's changed since pre-release v0.8.0-B2101011: - Engine features: - - Added support for running custom actions using conventions. [#18](https://github.com/BernieWhite/PSDocs/issues/18) - [#120](https://github.com/BernieWhite/PSDocs/issues/120) + - Added support for running custom actions using conventions. [#18](https://github.com/Microsoft/PSDocs/issues/18) + [#120](https://github.com/Microsoft/PSDocs/issues/120) - Conventions provide `Begin`, `Process` and `End` blocks to hook into the document pipeline. - Name or change the output path of documents in `Begin` and `Process` blocks. - Generate table of contents (TOC) and perform publishing actions in `End` blocks. - See [about_PSDocs_Conventions] for more details. - Bug fixes: - - Fixed boolean string conversion with the `GetBoolOrDefault` configuration helper. [#140](https://github.com/BernieWhite/PSDocs/issues/140) + - Fixed boolean string conversion with the `GetBoolOrDefault` configuration helper. [#140](https://github.com/Microsoft/PSDocs/issues/140) ## v0.8.0-B2101011 (pre-release) What's changed since pre-release v0.8.0-B2101006: - General improvements: - - Added `-Replace` parameter to `Include` keyword to replace tokens in included file. [#134](https://github.com/BernieWhite/PSDocs/issues/134) + - Added `-Replace` parameter to `Include` keyword to replace tokens in included file. [#134](https://github.com/Microsoft/PSDocs/issues/134) - A hashtable of replacement tokens can be specified to replace contents within original file. - See [about_PSDocs_Keywords] for more details. @@ -70,28 +76,28 @@ What's changed since pre-release v0.8.0-B2101006: What's changed since v0.7.0: - Engine features: - - Added support for custom configuration key values. [#121](https://github.com/BernieWhite/PSDocs/issues/121) + - Added support for custom configuration key values. [#121](https://github.com/Microsoft/PSDocs/issues/121) - See [about_PSDocs_Configuration] for more details. - General improvements: - - Improve handling when an empty document title is set. [#122](https://github.com/BernieWhite/PSDocs/issues/122) + - Improve handling when an empty document title is set. [#122](https://github.com/Microsoft/PSDocs/issues/122) - Bug fixes: - - Fixed use of error action preference with `Include` keyword. [#127](https://github.com/BernieWhite/PSDocs/issues/127) + - Fixed use of error action preference with `Include` keyword. [#127](https://github.com/Microsoft/PSDocs/issues/127) ## v0.7.0 What's changed since v0.6.3: - Engine features: - - Added support for MacOS and Linux. [#59](https://github.com/BernieWhite/PSDocs/issues/59) - - Added support for using document definitions from modules. [#81](https://github.com/BernieWhite/PSDocs/issues/81) - - Added support for localized strings using the `$LocalizedData` variable. [#91](https://github.com/BernieWhite/PSDocs/issues/91) - - Automatically serialize `Code` objects to JSON and YAML. [#93](https://github.com/BernieWhite/PSDocs/issues/93) + - Added support for MacOS and Linux. [#59](https://github.com/Microsoft/PSDocs/issues/59) + - Added support for using document definitions from modules. [#81](https://github.com/Microsoft/PSDocs/issues/81) + - Added support for localized strings using the `$LocalizedData` variable. [#91](https://github.com/Microsoft/PSDocs/issues/91) + - Automatically serialize `Code` objects to JSON and YAML. [#93](https://github.com/Microsoft/PSDocs/issues/93) - Use the `json`, `yaml`, or `yml` info strings to automatically serialize custom objects. - See [about_PSDocs_Keywords] for more details. - General improvements: - - Added configuration for setting output options. [#105](https://github.com/BernieWhite/PSDocs/issues/105) - - Added parameter alias `-MarkdownEncoding` on `New-PSDocumentOption` for `-Encoding`. [#106](https://github.com/BernieWhite/PSDocs/issues/106) - - Default the info string to `powershell` for `Code` script blocks. [#92](https://github.com/BernieWhite/PSDocs/issues/92) + - Added configuration for setting output options. [#105](https://github.com/Microsoft/PSDocs/issues/105) + - Added parameter alias `-MarkdownEncoding` on `New-PSDocumentOption` for `-Encoding`. [#106](https://github.com/Microsoft/PSDocs/issues/106) + - Default the info string to `powershell` for `Code` script blocks. [#92](https://github.com/Microsoft/PSDocs/issues/92) - See [about_PSDocs_Keywords] for more details. - Deprecations and removals: - Added [upgrade notes](docs/upgrade-notes.md) for migration from v0.6.x to v0.7.0. @@ -106,8 +112,8 @@ What's changed since v0.6.3: - Engineering: - Bump YamlDotNet dependency to v8.1.2. - Bug fixes: - - Fixed inconsistencies with default options file name. [#103](https://github.com/BernieWhite/PSDocs/issues/103) - - Fixed line break after block quote. [#104](https://github.com/BernieWhite/PSDocs/issues/104) + - Fixed inconsistencies with default options file name. [#103](https://github.com/Microsoft/PSDocs/issues/103) + - Fixed line break after block quote. [#104](https://github.com/Microsoft/PSDocs/issues/104) See [upgrade notes](docs/upgrade-notes.md) for helpful information when upgrading from previous versions. @@ -120,32 +126,32 @@ What's changed since pre-release v0.7.0-B2101015: What's changed since pre-release v0.7.0-B2008035: - Engine features: - - Added support for localized strings using the `$LocalizedData` variable. [#91](https://github.com/BernieWhite/PSDocs/issues/91) - - Automatically serialize `Code` objects to JSON and YAML. [#93](https://github.com/BernieWhite/PSDocs/issues/93) + - Added support for localized strings using the `$LocalizedData` variable. [#91](https://github.com/Microsoft/PSDocs/issues/91) + - Automatically serialize `Code` objects to JSON and YAML. [#93](https://github.com/Microsoft/PSDocs/issues/93) - Use the `json`, `yaml`, or `yml` info strings to automatically serialize custom objects. - See [about_PSDocs_Keywords] for more details. - General improvements: - - Added configuration for setting output options. [#105](https://github.com/BernieWhite/PSDocs/issues/105) - - Added parameter alias `-MarkdownEncoding` on `New-PSDocumentOption` for `-Encoding`. [#106](https://github.com/BernieWhite/PSDocs/issues/106) - - Default the info string to `powershell` for `Code` script blocks. [#92](https://github.com/BernieWhite/PSDocs/issues/92) + - Added configuration for setting output options. [#105](https://github.com/Microsoft/PSDocs/issues/105) + - Added parameter alias `-MarkdownEncoding` on `New-PSDocumentOption` for `-Encoding`. [#106](https://github.com/Microsoft/PSDocs/issues/106) + - Default the info string to `powershell` for `Code` script blocks. [#92](https://github.com/Microsoft/PSDocs/issues/92) - See [about_PSDocs_Keywords] for more details. - Bug fixes: - - Fixed inconsistencies with default options file name. [#103](https://github.com/BernieWhite/PSDocs/issues/103) - - Fixed line break after block quote. [#104](https://github.com/BernieWhite/PSDocs/issues/104) + - Fixed inconsistencies with default options file name. [#103](https://github.com/Microsoft/PSDocs/issues/103) + - Fixed line break after block quote. [#104](https://github.com/Microsoft/PSDocs/issues/104) ## v0.7.0-B2008035 (pre-release) What's changed since pre-release v0.7.0-B2008022: - Engine features: - - Added support for using document definitions from modules. [#81](https://github.com/BernieWhite/PSDocs/issues/81) + - Added support for using document definitions from modules. [#81](https://github.com/Microsoft/PSDocs/issues/81) ## v0.7.0-B2008022 (pre-release) What's changed since v0.6.3: - Engine features: - - Added support for MacOS and Linux. [#59](https://github.com/BernieWhite/PSDocs/issues/59) + - Added support for MacOS and Linux. [#59](https://github.com/Microsoft/PSDocs/issues/59) - Deprecations and removals: - Added [upgrade notes](docs/upgrade-notes.md) for migration from v0.6.x to v0.7.0. - **Breaking change**: Removed support for inline document blocks. @@ -166,22 +172,22 @@ See [upgrade notes](docs/upgrade-notes.md) for helpful information when upgradin What's changed since v0.6.2: - Bug fixes: - - Fix concatenation of multiple lines in Code section. [#69](https://github.com/BernieWhite/PSDocs/issues/69) + - Fix concatenation of multiple lines in Code section. [#69](https://github.com/Microsoft/PSDocs/issues/69) ## v0.6.2 What's changed since v0.6.1: - Bug fixes: - - Fixed PositionMessage cannot be found on this object. [#63](https://github.com/BernieWhite/PSDocs/issues/63) - - Fixed handling of null metadata hashtable. [#60](https://github.com/BernieWhite/PSDocs/issues/60) + - Fixed PositionMessage cannot be found on this object. [#63](https://github.com/Microsoft/PSDocs/issues/63) + - Fixed handling of null metadata hashtable. [#60](https://github.com/Microsoft/PSDocs/issues/60) ## v0.6.1 What's changed since v0.6.0: - Bug fixes: - - Fixed null reference for table columns with undefined properties. [#53](https://github.com/BernieWhite/PSDocs/issues/53) + - Fixed null reference for table columns with undefined properties. [#53](https://github.com/Microsoft/PSDocs/issues/53) ## v0.6.0 @@ -198,7 +204,7 @@ What's changed since v0.5.0: - Added new contextual help topic to provide details on automatic variables exposed for PSDocs for use within document definitions. - Added support for locked down environments to ensure that documents are executed as constrained code when Device Guard is used. - Use the `Execution.LanguageMode = 'ConstrainedLanguage'` option to force constrained language mode. - - **Important change**: Improved markdown formatting for tables. [#31](https://github.com/BernieWhite/PSDocs/issues/31) + - **Important change**: Improved markdown formatting for tables. [#31](https://github.com/Microsoft/PSDocs/issues/31) - Table columns are now padded by default to match header width. Set `Markdown.ColumnPadding` option to `None` to match format style from PSDocs <= 0.5.0. - Pipe characters on the start and end of a table row are not added by default. @@ -223,15 +229,15 @@ What's changed since v0.5.0: What's changed since v0.4.0: - Engine features: - - Added support for property expressions with the `Table` keyword. [#27](https://github.com/BernieWhite/PSDocs/issues/27) - - Added support for building all document definitions from a path using the `-Path` parameter. [#25](https://github.com/BernieWhite/PSDocs/issues/25) + - Added support for property expressions with the `Table` keyword. [#27](https://github.com/Microsoft/PSDocs/issues/27) + - Added support for building all document definitions from a path using the `-Path` parameter. [#25](https://github.com/Microsoft/PSDocs/issues/25) - Additionally document definitions can be filtered with the `-Name` and `-Tag` parameter. - This is the recommended way to build documents going forward. - Added support for providing options for `Invoke-PSDocument` using YAML, see `about_PSDocs_Options`. - General improvements: - **Important change**: Deprecated support for using `Invoke-PSDocument` with inline document definitions. - Improved support for using named document definitions inline, use this to call inline document definitions. - - **Breaking change**: Empty `Section` blocks are not rendered by default. [#32](https://github.com/BernieWhite/PSDocs/issues/32) + - **Breaking change**: Empty `Section` blocks are not rendered by default. [#32](https://github.com/Microsoft/PSDocs/issues/32) - Use `-Force` parameter on specific sections or `Markdown.SkipEmptySections = $False` option to force empty sections to be written. - Bug fixes: - Fixed to prevent string builder properties being outputted each time `Invoke-PSDocument` is called. @@ -246,11 +252,11 @@ What's changed since v0.3.0: - General improvements: - **Important change**: Renamed `Yaml` keyword to `Metadata`. `Yaml` keyword is still supported but deprecated, switch to using `Metadata` instead. - - **Breaking change**: Added support for encoding markdown content output. [#16](https://github.com/BernieWhite/PSDocs/issues/16) + - **Breaking change**: Added support for encoding markdown content output. [#16](https://github.com/Microsoft/PSDocs/issues/16) - To specify the encoding use the `-Encoding` parameter of `Invoke-PSDocument` and `Invoke-DscNodeDocument`. - Output now defaults to UTF-8 without byte order mark (BOM) instead of ASCII. - Bug fixes: - - Fixed handling of line break for multiline table columns using a wrap separator. [#11](https://github.com/BernieWhite/PSDocs/issues/11) + - Fixed handling of line break for multiline table columns using a wrap separator. [#11](https://github.com/Microsoft/PSDocs/issues/11) ## v0.3.0 diff --git a/CODE_OF_CONDUCT.md b/CODE_OF_CONDUCT.md new file mode 100644 index 0000000..f9ba8cf --- /dev/null +++ b/CODE_OF_CONDUCT.md @@ -0,0 +1,9 @@ +# Microsoft Open Source Code of Conduct + +This project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/). + +Resources: + +- [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/) +- [Microsoft Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) +- Contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with questions or concerns diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md new file mode 100644 index 0000000..f312910 --- /dev/null +++ b/CONTRIBUTING.md @@ -0,0 +1,72 @@ +# Contributing + +This project welcomes contributions and suggestions. Most contributions require you to +agree to a Contributor License Agreement (CLA) declaring that you have the right to, +and actually do, grant us the rights to use your contribution. For details, visit +https://cla.microsoft.com. + +When you submit a pull request, a CLA-bot will automatically determine whether you need +to provide a CLA and decorate the PR appropriately (e.g., label, comment). Simply follow the +instructions provided by the bot. You will only need to do this once across all repositories using our CLA. + +## Code of Conduct + +This project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/). +For more information see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) +or contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any additional questions or comments. + +## How to contribute + +- File or vote up issues +- Improve documentation +- Fix bugs or add features + +### Intro to Git and GitHub + +When contributing to documentation or code changes, you'll need to have a GitHub account and a basic understanding of Git. +Check out the links below to get started. + +- Make sure you have a [GitHub account][github-signup]. +- GitHub Help: + - [Git and GitHub learning resources][learn-git]. + - [GitHub Flow Guide][github-flow]. + - [Fork a repo][github-fork]. + - [About Pull Requests][github-pr]. + +## Contributing to issues + +- Check if the issue you are going to file already exists in our GitHub [issues][issue]. +- If you do not see your problem captured, please file a new issue and follow the provided template. +- If the an open issue exists for the problem you are experiencing, vote up the issue or add a comment. + +## Contributing to code + +- Before writing a fix or feature enhancement, ensure that an issue is logged. +- Be prepared to discuss a feature and take feedback. +- Include unit tests and updates documentation to complement the change. + +When you are ready to contribute a fix or feature: + +- Start by [forking the PSDocs repo][github-fork]. +- Create a new branch from main in your fork. +- Add commits in your branch. + - If you have updated module code also update `CHANGELOG.md`. + - You don't need to update the `CHANGELOG.md` for changes to unit tests or documentation. + - Try building your changes locally. See [building from source][build] for instructions. +- [Create a pull request][github-pr-create] to merge changes into the PSRule `main` branch. + - If you are _ready_ for your changes to be reviewed create a _pull request_. + - If you are _not ready_ for your changes to be reviewed, create a _draft pull request_. + - An continuous integration (CI) process will automatically build your changes. + - You changes must build successfully to be merged. + - If you have any build errors, push new commits to your branch. + - Avoid using forced pushes or squashing changes while in review, as this makes reviewing your changes harder. + +[learn-git]: https://help.github.com/en/articles/git-and-github-learning-resources +[github-flow]: https://guides.github.com/introduction/flow/ +[github-signup]: https://github.com/signup/free +[github-fork]: https://help.github.com/en/github/getting-started-with-github/fork-a-repo +[github-pr]: https://help.github.com/en/github/collaborating-with-issues-and-pull-requests/about-pull-requests +[github-pr-create]: https://help.github.com/en/github/collaborating-with-issues-and-pull-requests/creating-a-pull-request-from-a-fork +[build]: docs/scenarios/install-instructions.md#building-from-source +[issue]: https://github.com/Microsoft/PSDocs/issues +[discussion]: https://github.com/Microsoft/PSDocs/discussions diff --git a/LICENSE b/LICENSE index 03fb838..22aed37 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,6 @@ MIT License -Copyright (c) 2017 Microsoft Corporation +Copyright (c) Microsoft Corporation. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/README.md b/README.md index a5776c0..4dc9ff3 100644 --- a/README.md +++ b/README.md @@ -4,12 +4,15 @@ A PowerShell module with commands to generate markdown from objects using PowerS ![ci-badge] -## Disclaimer +## Support -This project is open source and **not a supported product**. +This project uses GitHub Issues to track bugs and feature requests. +Please search the existing issues before filing new issues to avoid duplicates. -If you are experiencing problems, have a feature request, or a question, please check for an [issue] on GitHub. -If you do not see your problem captured, please file a new issue, and follow the provided template. +- For new issues, file your bug or feature request as a new [issue]. +- For help, discussion, and support questions about using this project, join or start a [discussion]. + +Support for this project/ product is limited to the resources listed above. ## Getting the modules @@ -142,9 +145,10 @@ The following conceptual topics exist in the `PSDocs` module: The following projects use or integrate with PSDocs. -Name | Description ----- | ----------- -[PSDocs.Dsc] | Extension for PSDocs to generate markdown from Desired State Configuration. +Name | Description +---- | ----------- +[PSDocs.Azure] | Generate documentation from Azure infrastructure as code (IaC) artifacts. +[PSDocs.Dsc] | Extension for PSDocs to generate markdown from Desired State Configuration. ## Changes and versioning @@ -156,6 +160,17 @@ For a list of module changes please see the [change log](CHANGELOG.md). > Pre-release versions should be considered experimental. > Modules and change log details for pre-releases will be removed as standard releases are made available. +## Contributing + +This project welcomes contributions and suggestions. +If you are ready to contribute, please visit the [contribution guide](CONTRIBUTING.md). + +## Code of Conduct + +This project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/). +For more information see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) +or contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any additional questions or comments. + ## Maintainers - [Bernie White](https://github.com/BernieWhite) @@ -165,9 +180,11 @@ For a list of module changes please see the [change log](CHANGELOG.md). This project is [licensed under the MIT License](LICENSE). [install]: docs/install-instructions.md -[issue]: https://github.com/BernieWhite/PSDocs/issues +[issue]: https://github.com/Microsoft/PSDocs/issues +[discussion]: https://github.com/Microsoft/PSDocs/discussions [ci-badge]: https://bewhite.visualstudio.com/PSDocs/_apis/build/status/PSDocs-CI?branchName=main [psg-psdocs]: https://www.powershellgallery.com/packages/PSDocs [psg-psdocs-version-badge]: https://img.shields.io/powershellgallery/v/PSDocs.svg [psg-psdocs-installs-badge]: https://img.shields.io/powershellgallery/dt/PSDocs.svg [PSDocs.Dsc]: https://www.powershellgallery.com/packages/PSDocs.Dsc +[PSDocs.Azure]: https://azure.github.io/PSDocs.Azure/ diff --git a/SECURITY.md b/SECURITY.md new file mode 100644 index 0000000..62b7d2c --- /dev/null +++ b/SECURITY.md @@ -0,0 +1,43 @@ +# Security policy + + + +## Security + +Microsoft takes the security of our software products and services seriously, which includes all source code repositories managed through our GitHub organizations, which include [Microsoft](https://github.com/Microsoft), [Azure](https://github.com/Azure), [DotNet](https://github.com/dotnet), [AspNet](https://github.com/aspnet), [Xamarin](https://github.com/xamarin), and [our GitHub organizations](https://opensource.microsoft.com/). + +If you believe you have found a security vulnerability in any Microsoft-owned repository that meets [Microsoft's definition of a security vulnerability](https://docs.microsoft.com/en-us/previous-versions/tn-archive/cc751383(v=technet.10)), please report it to us as described below. + +## Reporting Security Issues + +**Please do not report security vulnerabilities through public GitHub issues.** + +Instead, please report them to the Microsoft Security Response Center (MSRC) at [https://msrc.microsoft.com/create-report](https://msrc.microsoft.com/create-report). + +If you prefer to submit without logging in, send email to [secure@microsoft.com](mailto:secure@microsoft.com). If possible, encrypt your message with our PGP key; please download it from the [Microsoft Security Response Center PGP Key page](https://www.microsoft.com/en-us/msrc/pgp-key-msrc). + +You should receive a response within 24 hours. If for some reason you do not, please follow up via email to ensure we received your original message. Additional information can be found at [microsoft.com/msrc](https://www.microsoft.com/msrc). + +Please include the requested information listed below (as much as you can provide) to help us better understand the nature and scope of the possible issue: + + * Type of issue (e.g. buffer overflow, SQL injection, cross-site scripting, etc.) + * Full paths of source file(s) related to the manifestation of the issue + * The location of the affected source code (tag/branch/commit or direct URL) + * Any special configuration required to reproduce the issue + * Step-by-step instructions to reproduce the issue + * Proof-of-concept or exploit code (if possible) + * Impact of the issue, including how an attacker might exploit the issue + +This information will help us triage your report more quickly. + +If you are reporting for a bug bounty, more complete reports can contribute to a higher bounty award. Please visit our [Microsoft Bug Bounty Program](https://microsoft.com/msrc/bounty) page for more details about our active programs. + +## Preferred Languages + +We prefer all communications to be in English. + +## Policy + +Microsoft follows the principle of [Coordinated Vulnerability Disclosure](https://www.microsoft.com/en-us/msrc/cvd). + + diff --git a/SUPPORT.md b/SUPPORT.md new file mode 100644 index 0000000..4bf3324 --- /dev/null +++ b/SUPPORT.md @@ -0,0 +1,16 @@ +# Support + +## How to file issues and get help + +This project uses GitHub Issues to track bugs and feature requests. +Please search the existing issues before filing new issues to avoid duplicates. + +- For new issues, file your bug or feature request as a new [issue]. +- For help, discussion, and support questions about using this project, join or start a [discussion]. + +## Microsoft Support Policy + +Support for this project/ product is limited to the resources listed above. + +[issue]: https://github.com/Microsoft/PSDocs/issues +[discussion]: https://github.com/Microsoft/PSDocs/discussions diff --git a/build.ps1 b/build.ps1 index 6547f07..bc4e178 100644 --- a/build.ps1 +++ b/build.ps1 @@ -1,3 +1,5 @@ +# Copyright (c) Microsoft Corporation. +# Licensed under the MIT License. # Note: # This manually builds the project locally diff --git a/docs/commands/PSDocs/en-US/Document.md b/docs/commands/PSDocs/en-US/Document.md index 472d359..db45931 100644 --- a/docs/commands/PSDocs/en-US/Document.md +++ b/docs/commands/PSDocs/en-US/Document.md @@ -1,7 +1,7 @@ --- external help file: PSDocs-help.xml Module Name: PSDocs -online version: https://github.com/BernieWhite/PSDocs/blob/main/docs/commands/PSDocs/en-US/Document.md +online version: https://github.com/Microsoft/PSDocs/blob/main/docs/commands/PSDocs/en-US/Document.md schema: 2.0.0 --- diff --git a/docs/commands/PSDocs/en-US/Get-PSDocument.md b/docs/commands/PSDocs/en-US/Get-PSDocument.md index 041a5b2..8122589 100644 --- a/docs/commands/PSDocs/en-US/Get-PSDocument.md +++ b/docs/commands/PSDocs/en-US/Get-PSDocument.md @@ -1,7 +1,7 @@ --- external help file: PSDocs-help.xml Module Name: PSDocs -online version: https://github.com/BernieWhite/PSDocs/blob/main/docs/commands/PSDocs/en-US/Get-PSDocument.md +online version: https://github.com/Microsoft/PSDocs/blob/main/docs/commands/PSDocs/en-US/Get-PSDocument.md schema: 2.0.0 --- diff --git a/docs/commands/PSDocs/en-US/Get-PSDocumentHeader.md b/docs/commands/PSDocs/en-US/Get-PSDocumentHeader.md index 2561983..2972870 100644 --- a/docs/commands/PSDocs/en-US/Get-PSDocumentHeader.md +++ b/docs/commands/PSDocs/en-US/Get-PSDocumentHeader.md @@ -1,7 +1,7 @@ --- external help file: PSDocs-help.xml Module Name: PSDocs -online version: https://github.com/BernieWhite/PSDocs/blob/main/docs/commands/PSDocs/en-US/Get-PSDocumentHeader.md +online version: https://github.com/Microsoft/PSDocs/blob/main/docs/commands/PSDocs/en-US/Get-PSDocumentHeader.md schema: 2.0.0 --- diff --git a/docs/commands/PSDocs/en-US/Invoke-PSDocument.md b/docs/commands/PSDocs/en-US/Invoke-PSDocument.md index e7c1674..72a6361 100644 --- a/docs/commands/PSDocs/en-US/Invoke-PSDocument.md +++ b/docs/commands/PSDocs/en-US/Invoke-PSDocument.md @@ -1,7 +1,7 @@ --- external help file: PSDocs-help.xml Module Name: PSDocs -online version: https://github.com/BernieWhite/PSDocs/blob/main/docs/commands/PSDocs/en-US/Invoke-PSDocument.md +online version: https://github.com/Microsoft/PSDocs/blob/main/docs/commands/PSDocs/en-US/Invoke-PSDocument.md schema: 2.0.0 --- diff --git a/docs/commands/PSDocs/en-US/New-PSDocumentOption.md b/docs/commands/PSDocs/en-US/New-PSDocumentOption.md index d8fe90b..4d4ba8c 100644 --- a/docs/commands/PSDocs/en-US/New-PSDocumentOption.md +++ b/docs/commands/PSDocs/en-US/New-PSDocumentOption.md @@ -1,7 +1,7 @@ --- external help file: PSDocs-help.xml Module Name: PSDocs -online version: https://github.com/BernieWhite/PSDocs/blob/main/docs/commands/PSDocs/en-US/New-PSDocumentOption.md +online version: https://github.com/Microsoft/PSDocs/blob/main/docs/commands/PSDocs/en-US/New-PSDocumentOption.md schema: 2.0.0 --- diff --git a/docs/commands/PSDocs/en-US/PSDocs.md b/docs/commands/PSDocs/en-US/PSDocs.md index d49c9c3..b6895ba 100644 --- a/docs/commands/PSDocs/en-US/PSDocs.md +++ b/docs/commands/PSDocs/en-US/PSDocs.md @@ -1,7 +1,7 @@ --- Module Name: PSDocs Module Guid: 1f6df554-c081-40d8-9aca-32c1abe4a1b6 -Download Help Link: https://github.com/BernieWhite/PSDocs +Download Help Link: https://github.com/Microsoft/PSDocs Help Version: 0.1.0.0 Locale: en-US --- diff --git a/docs/concepts/PSDocs/en-US/about_PSDocs_Configuration.md b/docs/concepts/PSDocs/en-US/about_PSDocs_Configuration.md index b05f98c..d2975e8 100644 --- a/docs/concepts/PSDocs/en-US/about_PSDocs_Configuration.md +++ b/docs/concepts/PSDocs/en-US/about_PSDocs_Configuration.md @@ -82,11 +82,11 @@ if ($PSDocs.Configuration.GetBoolOrDefault('SAMPLE_USE_PARAMETERS_SNIPPET', $Tru ## NOTE -An online version of this document is available at https://github.com/BernieWhite/PSDocs/blob/main/docs/concepts/PSDocs/en-US/about_PSDocs_Configuration.md. +An online version of this document is available at https://github.com/Microsoft/PSDocs/blob/main/docs/concepts/PSDocs/en-US/about_PSDocs_Configuration.md. ## SEE ALSO -- [Invoke-PSDocument](https://github.com/BernieWhite/PSDocs/blob/main/docs/commands/PSDocs/en-US/Invoke-PSDocument.md) +- [Invoke-PSDocument](https://github.com/Microsoft/PSDocs/blob/main/docs/commands/PSDocs/en-US/Invoke-PSDocument.md) ## KEYWORDS diff --git a/docs/concepts/PSDocs/en-US/about_PSDocs_Conventions.md b/docs/concepts/PSDocs/en-US/about_PSDocs_Conventions.md index d28c67e..f206e3a 100644 --- a/docs/concepts/PSDocs/en-US/about_PSDocs_Conventions.md +++ b/docs/concepts/PSDocs/en-US/about_PSDocs_Conventions.md @@ -126,11 +126,11 @@ Export-PSDocumentConvention 'TestNamingConvention1' { ## NOTE -An online version of this document is available at https://github.com/BernieWhite/PSDocs/blob/main/docs/concepts/PSDocs/en-US/about_PSDocs_Conventions.md. +An online version of this document is available at https://github.com/Microsoft/PSDocs/blob/main/docs/concepts/PSDocs/en-US/about_PSDocs_Conventions.md. ## SEE ALSO -- [Invoke-PSDocument](https://github.com/BernieWhite/PSDocs/blob/main/docs/commands/PSDocs/en-US/Invoke-PSDocument.md) +- [Invoke-PSDocument](https://github.com/Microsoft/PSDocs/blob/main/docs/commands/PSDocs/en-US/Invoke-PSDocument.md) ## KEYWORDS diff --git a/docs/concepts/PSDocs/en-US/about_PSDocs_Options.md b/docs/concepts/PSDocs/en-US/about_PSDocs_Options.md index 7ce0618..3cbbade 100644 --- a/docs/concepts/PSDocs/en-US/about_PSDocs_Options.md +++ b/docs/concepts/PSDocs/en-US/about_PSDocs_Options.md @@ -382,12 +382,12 @@ output: ## NOTE -An online version of this document is available at https://github.com/BernieWhite/PSDocs/blob/main/docs/concepts/PSDocs/en-US/about_PSDocs_Options.md. +An online version of this document is available at https://github.com/Microsoft/PSDocs/blob/main/docs/concepts/PSDocs/en-US/about_PSDocs_Options.md. ## SEE ALSO -- [Invoke-PSDocument](https://github.com/BernieWhite/PSDocs/blob/main/docs/commands/PSDocs/en-US/Invoke-PSDocument.md) -- [New-PSDocumentOption](https://github.com/BernieWhite/PSDocs/blob/main/docs/commands/PSDocs/en-US/New-PSDocumentOption.md) +- [Invoke-PSDocument](https://github.com/Microsoft/PSDocs/blob/main/docs/commands/PSDocs/en-US/Invoke-PSDocument.md) +- [New-PSDocumentOption](https://github.com/Microsoft/PSDocs/blob/main/docs/commands/PSDocs/en-US/New-PSDocumentOption.md) ## KEYWORDS diff --git a/docs/concepts/PSDocs/en-US/about_PSDocs_Variables.md b/docs/concepts/PSDocs/en-US/about_PSDocs_Variables.md index 476f65d..c0c0e31 100644 --- a/docs/concepts/PSDocs/en-US/about_PSDocs_Variables.md +++ b/docs/concepts/PSDocs/en-US/about_PSDocs_Variables.md @@ -231,11 +231,11 @@ The current section title is Introduction. ## NOTE -An online version of this document is available at https://github.com/BernieWhite/PSDocs/blob/main/docs/concepts/PSDocs/en-US/about_PSDocs_Variables.md. +An online version of this document is available at https://github.com/Microsoft/PSDocs/blob/main/docs/concepts/PSDocs/en-US/about_PSDocs_Variables.md. ## SEE ALSO -- [Invoke-PSDocument](https://github.com/BernieWhite/PSDocs/blob/main/docs/commands/PSDocs/en-US/Invoke-PSDocument.md) +- [Invoke-PSDocument](https://github.com/Microsoft/PSDocs/blob/main/docs/commands/PSDocs/en-US/Invoke-PSDocument.md) ## KEYWORDS diff --git a/docs/keywords/PSDocs/en-US/about_PSDocs_Keywords.md b/docs/keywords/PSDocs/en-US/about_PSDocs_Keywords.md index ac161be..497ffe9 100644 --- a/docs/keywords/PSDocs/en-US/about_PSDocs_Keywords.md +++ b/docs/keywords/PSDocs/en-US/about_PSDocs_Keywords.md @@ -633,11 +633,11 @@ Document 'Sample' { ## NOTE -An online version of this document is available at https://github.com/BernieWhite/PSDocs/blob/main/docs/keywords/PSDocs/en-US/about_PSDocs_Keywords.md. +An online version of this document is available at https://github.com/Microsoft/PSDocs/blob/main/docs/keywords/PSDocs/en-US/about_PSDocs_Keywords.md. ## SEE ALSO -- [Invoke-PSDocument](https://github.com/BernieWhite/PSDocs/blob/main/docs/commands/PSDocs/en-US/Invoke-PSDocument.md) +- [Invoke-PSDocument](https://github.com/Microsoft/PSDocs/blob/main/docs/commands/PSDocs/en-US/Invoke-PSDocument.md) ## KEYWORDS diff --git a/docs/scenarios/arm-template/arm-template.Doc.ps1 b/docs/scenarios/arm-template/arm-template.Doc.ps1 index e60764b..cf76c04 100644 --- a/docs/scenarios/arm-template/arm-template.Doc.ps1 +++ b/docs/scenarios/arm-template/arm-template.Doc.ps1 @@ -1,3 +1,6 @@ +# Copyright (c) Microsoft Corporation. +# Licensed under the MIT License. + # # Azure Resource Manager documentation definitions # diff --git a/pipeline.build.ps1 b/pipeline.build.ps1 index d2dc865..801168e 100644 --- a/pipeline.build.ps1 +++ b/pipeline.build.ps1 @@ -1,3 +1,5 @@ +# Copyright (c) Microsoft Corporation. +# Licensed under the MIT License. [CmdletBinding()] param ( @@ -85,44 +87,6 @@ function CopyModuleFiles { } } -function Get-RepoRuleData { - [CmdletBinding()] - param ( - [Parameter(Position = 0, Mandatory = $False)] - [String]$Path = $PWD - ) - process { - GetPathInfo -Path $Path -Verbose:$VerbosePreference; - } -} - -function GetPathInfo { - [CmdletBinding()] - param ( - [Parameter(Mandatory = $True)] - [String]$Path - ) - begin { - $items = New-Object -TypeName System.Collections.ArrayList; - } - process { - $Null = $items.Add((Get-Item -Path $Path)); - $files = @(Get-ChildItem -Path $Path -File -Recurse -Include *.ps1,*.psm1,*.psd1,*.cs | Where-Object { - !($_.FullName -like "*.Designer.cs") -and - !($_.FullName -like "*/bin/*") -and - !($_.FullName -like "*/obj/*") -and - !($_.FullName -like "*\obj\*") -and - !($_.FullName -like "*\bin\*") -and - !($_.FullName -like "*\out\*") -and - !($_.FullName -like "*/out/*") - }); - $Null = $items.AddRange($files); - } - end { - $items; - } -} - task BuildDotNet { exec { dotnet restore diff --git a/ps-project.yaml b/ps-project.yaml index 0c35782..be3921f 100644 --- a/ps-project.yaml +++ b/ps-project.yaml @@ -7,7 +7,7 @@ info: repository: type: git - url: https://github.com/BernieWhite/PSDocs.git + url: https://github.com/Microsoft/PSDocs.git tasks: clear: diff --git a/ps-rule.yaml b/ps-rule.yaml new file mode 100644 index 0000000..1026d99 --- /dev/null +++ b/ps-rule.yaml @@ -0,0 +1,15 @@ +# +# PSRule configuration +# + +# Please see the documentation for all configuration options: +# https://microsoft.github.io/PSRule/ + +output: + culture: + - 'en-US' + +input: + pathIgnore: + - '*.Designer.cs' + - '*.md' diff --git a/src/PSDocs.Benchmark/Benchmark.Doc.ps1 b/src/PSDocs.Benchmark/Benchmark.Doc.ps1 index bf91db2..8c302a7 100644 --- a/src/PSDocs.Benchmark/Benchmark.Doc.ps1 +++ b/src/PSDocs.Benchmark/Benchmark.Doc.ps1 @@ -1,3 +1,6 @@ +# Copyright (c) Microsoft Corporation. +# Licensed under the MIT License. + # # Document defintions for benchmarks # diff --git a/src/PSDocs.Benchmark/PSDocs.cs b/src/PSDocs.Benchmark/PSDocs.cs index 809d554..b873895 100644 --- a/src/PSDocs.Benchmark/PSDocs.cs +++ b/src/PSDocs.Benchmark/PSDocs.cs @@ -1,4 +1,7 @@ -using BenchmarkDotNet.Attributes; +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +using BenchmarkDotNet.Attributes; using PSDocs.Configuration; using PSDocs.Models; using PSDocs.Pipeline; diff --git a/src/PSDocs.Benchmark/Program.cs b/src/PSDocs.Benchmark/Program.cs index 48d04a4..74a9cb8 100644 --- a/src/PSDocs.Benchmark/Program.cs +++ b/src/PSDocs.Benchmark/Program.cs @@ -1,4 +1,7 @@ -using BenchmarkDotNet.Analysers; +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +using BenchmarkDotNet.Analysers; using BenchmarkDotNet.Columns; using BenchmarkDotNet.Configs; using BenchmarkDotNet.Loggers; diff --git a/src/PSDocs/Commands/BlockQuoteCommand.cs b/src/PSDocs/Commands/BlockQuoteCommand.cs index 531d9ea..3a1dfa1 100644 --- a/src/PSDocs/Commands/BlockQuoteCommand.cs +++ b/src/PSDocs/Commands/BlockQuoteCommand.cs @@ -1,4 +1,7 @@ -using PSDocs.Models; +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +using PSDocs.Models; using System.Collections.Generic; using System.Management.Automation; diff --git a/src/PSDocs/Commands/CodeCommand.cs b/src/PSDocs/Commands/CodeCommand.cs index e3c9543..0085953 100644 --- a/src/PSDocs/Commands/CodeCommand.cs +++ b/src/PSDocs/Commands/CodeCommand.cs @@ -1,4 +1,6 @@ - +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + using Newtonsoft.Json; using PSDocs.Models; using PSDocs.Runtime; diff --git a/src/PSDocs/Commands/DefinitionCommand.cs b/src/PSDocs/Commands/DefinitionCommand.cs index b512ad4..d79cbdf 100644 --- a/src/PSDocs/Commands/DefinitionCommand.cs +++ b/src/PSDocs/Commands/DefinitionCommand.cs @@ -1,4 +1,6 @@ - +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + using PSDocs.Runtime; using System.Management.Automation; diff --git a/src/PSDocs/Commands/ExportConventionCommand.cs b/src/PSDocs/Commands/ExportConventionCommand.cs index c0aec77..b7740e2 100644 --- a/src/PSDocs/Commands/ExportConventionCommand.cs +++ b/src/PSDocs/Commands/ExportConventionCommand.cs @@ -1,4 +1,6 @@ - +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + using PSDocs.Definitions.Conventions; using PSDocs.Runtime; using System; diff --git a/src/PSDocs/Commands/IncludeCommand.cs b/src/PSDocs/Commands/IncludeCommand.cs index 5621595..d0b71ba 100644 --- a/src/PSDocs/Commands/IncludeCommand.cs +++ b/src/PSDocs/Commands/IncludeCommand.cs @@ -1,4 +1,6 @@ - +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + using PSDocs.Models; using PSDocs.Resources; using PSDocs.Runtime; diff --git a/src/PSDocs/Commands/InvokeConventionCommand.cs b/src/PSDocs/Commands/InvokeConventionCommand.cs index 01a637f..3d1b3b6 100644 --- a/src/PSDocs/Commands/InvokeConventionCommand.cs +++ b/src/PSDocs/Commands/InvokeConventionCommand.cs @@ -1,4 +1,6 @@ - +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + using System.Management.Automation; namespace PSDocs.Commands diff --git a/src/PSDocs/Commands/InvokeDocumentCommand.cs b/src/PSDocs/Commands/InvokeDocumentCommand.cs index 7f3eb18..4ec47fd 100644 --- a/src/PSDocs/Commands/InvokeDocumentCommand.cs +++ b/src/PSDocs/Commands/InvokeDocumentCommand.cs @@ -1,4 +1,6 @@ - +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + using System.Management.Automation; namespace PSDocs.Commands diff --git a/src/PSDocs/Commands/Keyword.cs b/src/PSDocs/Commands/Keyword.cs index 732db7f..6853842 100644 --- a/src/PSDocs/Commands/Keyword.cs +++ b/src/PSDocs/Commands/Keyword.cs @@ -1,4 +1,6 @@ - +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + using PSDocs.Data.Internal; using PSDocs.Pipeline; using PSDocs.Runtime; diff --git a/src/PSDocs/Commands/ListCommand.cs b/src/PSDocs/Commands/ListCommand.cs index 6ba1370..6192a50 100644 --- a/src/PSDocs/Commands/ListCommand.cs +++ b/src/PSDocs/Commands/ListCommand.cs @@ -1,4 +1,6 @@ - +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + using System.Management.Automation; namespace PSDocs.Commands diff --git a/src/PSDocs/Commands/MetadataCommand.cs b/src/PSDocs/Commands/MetadataCommand.cs index bb483f8..78af562 100644 --- a/src/PSDocs/Commands/MetadataCommand.cs +++ b/src/PSDocs/Commands/MetadataCommand.cs @@ -1,4 +1,6 @@ - +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + using System.Collections; using System.Management.Automation; diff --git a/src/PSDocs/Commands/NoteCommand.cs b/src/PSDocs/Commands/NoteCommand.cs index 42094f7..4fe583b 100644 --- a/src/PSDocs/Commands/NoteCommand.cs +++ b/src/PSDocs/Commands/NoteCommand.cs @@ -1,4 +1,6 @@ - +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + using System.Management.Automation; namespace PSDocs.Commands diff --git a/src/PSDocs/Commands/SectionCommand.cs b/src/PSDocs/Commands/SectionCommand.cs index 36536e1..160958d 100644 --- a/src/PSDocs/Commands/SectionCommand.cs +++ b/src/PSDocs/Commands/SectionCommand.cs @@ -1,4 +1,6 @@ - +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + using PSDocs.Configuration; using PSDocs.Runtime; using System.Management.Automation; diff --git a/src/PSDocs/Commands/TableCommand.cs b/src/PSDocs/Commands/TableCommand.cs index dda7ed8..3e43b0c 100644 --- a/src/PSDocs/Commands/TableCommand.cs +++ b/src/PSDocs/Commands/TableCommand.cs @@ -1,4 +1,6 @@ - +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + using PSDocs.Models; using System; using System.Collections; diff --git a/src/PSDocs/Commands/TitleCommand.cs b/src/PSDocs/Commands/TitleCommand.cs index 0198419..39ed729 100644 --- a/src/PSDocs/Commands/TitleCommand.cs +++ b/src/PSDocs/Commands/TitleCommand.cs @@ -1,4 +1,6 @@ - +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + using PSDocs.Pipeline; using System.Management.Automation; diff --git a/src/PSDocs/Commands/WarningCommand.cs b/src/PSDocs/Commands/WarningCommand.cs index 2ea5dcf..e16f2ea 100644 --- a/src/PSDocs/Commands/WarningCommand.cs +++ b/src/PSDocs/Commands/WarningCommand.cs @@ -1,4 +1,6 @@ - +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + using System.Management.Automation; namespace PSDocs.Commands diff --git a/src/PSDocs/Common/DictionaryExtensions.cs b/src/PSDocs/Common/DictionaryExtensions.cs index 0520cf6..5ed2a76 100644 --- a/src/PSDocs/Common/DictionaryExtensions.cs +++ b/src/PSDocs/Common/DictionaryExtensions.cs @@ -1,4 +1,6 @@ - +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + using System; using System.Collections.Generic; using System.Diagnostics; diff --git a/src/PSDocs/Common/HashtableExtensions.cs b/src/PSDocs/Common/HashtableExtensions.cs index 1745122..936702c 100644 --- a/src/PSDocs/Common/HashtableExtensions.cs +++ b/src/PSDocs/Common/HashtableExtensions.cs @@ -1,4 +1,6 @@ - +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + using System.Collections; using System.Diagnostics; diff --git a/src/PSDocs/Common/JsonConverters.cs b/src/PSDocs/Common/JsonConverters.cs index 81dd7f2..bda6814 100644 --- a/src/PSDocs/Common/JsonConverters.cs +++ b/src/PSDocs/Common/JsonConverters.cs @@ -1,4 +1,6 @@ - +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + using Newtonsoft.Json; using PSDocs.Pipeline; using PSDocs.Resources; diff --git a/src/PSDocs/Common/ObjectHelper.cs b/src/PSDocs/Common/ObjectHelper.cs index 2f064cb..e4872e1 100644 --- a/src/PSDocs/Common/ObjectHelper.cs +++ b/src/PSDocs/Common/ObjectHelper.cs @@ -1,4 +1,6 @@ - +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + using System.Management.Automation; namespace PSDocs diff --git a/src/PSDocs/Common/PSObjectExtensions.cs b/src/PSDocs/Common/PSObjectExtensions.cs index 64d4034..3b98bb1 100644 --- a/src/PSDocs/Common/PSObjectExtensions.cs +++ b/src/PSDocs/Common/PSObjectExtensions.cs @@ -1,4 +1,6 @@ - +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + using System.Management.Automation; namespace PSDocs diff --git a/src/PSDocs/Common/YamlConverters.cs b/src/PSDocs/Common/YamlConverters.cs index a81fbb9..147958a 100644 --- a/src/PSDocs/Common/YamlConverters.cs +++ b/src/PSDocs/Common/YamlConverters.cs @@ -1,4 +1,6 @@ - +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + using System; using System.Collections.Generic; using System.Management.Automation; diff --git a/src/PSDocs/Configuration/ColumnPadding.cs b/src/PSDocs/Configuration/ColumnPadding.cs index a796e17..b774f62 100644 --- a/src/PSDocs/Configuration/ColumnPadding.cs +++ b/src/PSDocs/Configuration/ColumnPadding.cs @@ -1,4 +1,7 @@ -namespace PSDocs.Configuration +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +namespace PSDocs.Configuration { public enum ColumnPadding { diff --git a/src/PSDocs/Configuration/ConfigurationOption.cs b/src/PSDocs/Configuration/ConfigurationOption.cs index d7fc618..357e40b 100644 --- a/src/PSDocs/Configuration/ConfigurationOption.cs +++ b/src/PSDocs/Configuration/ConfigurationOption.cs @@ -1,4 +1,6 @@ - +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + using System.Collections; using System.Collections.Generic; diff --git a/src/PSDocs/Configuration/DocumentOption.cs b/src/PSDocs/Configuration/DocumentOption.cs index 550a272..aba3513 100644 --- a/src/PSDocs/Configuration/DocumentOption.cs +++ b/src/PSDocs/Configuration/DocumentOption.cs @@ -1,4 +1,7 @@ -namespace PSDocs.Configuration +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +namespace PSDocs.Configuration { public sealed class DocumentOption { diff --git a/src/PSDocs/Configuration/EdgePipeOption.cs b/src/PSDocs/Configuration/EdgePipeOption.cs index ddee75f..7f99922 100644 --- a/src/PSDocs/Configuration/EdgePipeOption.cs +++ b/src/PSDocs/Configuration/EdgePipeOption.cs @@ -1,4 +1,7 @@ -namespace PSDocs.Configuration +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +namespace PSDocs.Configuration { public enum EdgePipeOption { diff --git a/src/PSDocs/Configuration/ExecutionOption.cs b/src/PSDocs/Configuration/ExecutionOption.cs index bf8d3cc..f592d65 100644 --- a/src/PSDocs/Configuration/ExecutionOption.cs +++ b/src/PSDocs/Configuration/ExecutionOption.cs @@ -1,4 +1,6 @@ - +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + using System.ComponentModel; namespace PSDocs.Configuration diff --git a/src/PSDocs/Configuration/KeyMapDictionary.cs b/src/PSDocs/Configuration/KeyMapDictionary.cs index f43ea1b..5863b42 100644 --- a/src/PSDocs/Configuration/KeyMapDictionary.cs +++ b/src/PSDocs/Configuration/KeyMapDictionary.cs @@ -1,4 +1,6 @@ - +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + using System; using System.Collections; using System.Collections.Generic; diff --git a/src/PSDocs/Configuration/LanguageMode.cs b/src/PSDocs/Configuration/LanguageMode.cs index 4717584..ea81c0e 100644 --- a/src/PSDocs/Configuration/LanguageMode.cs +++ b/src/PSDocs/Configuration/LanguageMode.cs @@ -1,4 +1,7 @@ -namespace PSDocs.Configuration +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +namespace PSDocs.Configuration { public enum LanguageMode { diff --git a/src/PSDocs/Configuration/MarkdownEncoding.cs b/src/PSDocs/Configuration/MarkdownEncoding.cs index 56b2852..e3b11d7 100644 --- a/src/PSDocs/Configuration/MarkdownEncoding.cs +++ b/src/PSDocs/Configuration/MarkdownEncoding.cs @@ -1,4 +1,7 @@ -namespace PSDocs.Configuration +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +namespace PSDocs.Configuration { public enum MarkdownEncoding { diff --git a/src/PSDocs/Configuration/MarkdownOption.cs b/src/PSDocs/Configuration/MarkdownOption.cs index d824eb8..9fda0a6 100644 --- a/src/PSDocs/Configuration/MarkdownOption.cs +++ b/src/PSDocs/Configuration/MarkdownOption.cs @@ -1,4 +1,6 @@ - +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + using System.ComponentModel; namespace PSDocs.Configuration diff --git a/src/PSDocs/Configuration/OutputOption.cs b/src/PSDocs/Configuration/OutputOption.cs index 8f7af20..fede1fc 100644 --- a/src/PSDocs/Configuration/OutputOption.cs +++ b/src/PSDocs/Configuration/OutputOption.cs @@ -1,4 +1,6 @@ - +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + using System.ComponentModel; namespace PSDocs.Configuration diff --git a/src/PSDocs/Configuration/PSDocumentOption.cs b/src/PSDocs/Configuration/PSDocumentOption.cs index 51e3b5f..612b9dc 100644 --- a/src/PSDocs/Configuration/PSDocumentOption.cs +++ b/src/PSDocs/Configuration/PSDocumentOption.cs @@ -1,4 +1,6 @@ - +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + using PSDocs.Resources; using System; using System.Collections; diff --git a/src/PSDocs/Data/CodeContent.cs b/src/PSDocs/Data/CodeContent.cs index 7362e57..67cb546 100644 --- a/src/PSDocs/Data/CodeContent.cs +++ b/src/PSDocs/Data/CodeContent.cs @@ -1,4 +1,6 @@ - +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + using System.Management.Automation; namespace PSDocs.Data diff --git a/src/PSDocs/Data/IDocumentBuilder.cs b/src/PSDocs/Data/IDocumentBuilder.cs index b2ef410..fcabe25 100644 --- a/src/PSDocs/Data/IDocumentBuilder.cs +++ b/src/PSDocs/Data/IDocumentBuilder.cs @@ -1,4 +1,7 @@ -using PSDocs.Models; +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +using PSDocs.Models; using PSDocs.Processor; using PSDocs.Runtime; using System; diff --git a/src/PSDocs/Data/Internal/ScriptDocumentBuilder.cs b/src/PSDocs/Data/Internal/ScriptDocumentBuilder.cs index b8584e2..43b30f6 100644 --- a/src/PSDocs/Data/Internal/ScriptDocumentBuilder.cs +++ b/src/PSDocs/Data/Internal/ScriptDocumentBuilder.cs @@ -1,4 +1,6 @@ - +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + using PSDocs.Definitions; using PSDocs.Models; using PSDocs.Processor; diff --git a/src/PSDocs/Definitions/Conventions/BaseDocumentConvention.cs b/src/PSDocs/Definitions/Conventions/BaseDocumentConvention.cs index 14a3cf4..8cbc5ba 100644 --- a/src/PSDocs/Definitions/Conventions/BaseDocumentConvention.cs +++ b/src/PSDocs/Definitions/Conventions/BaseDocumentConvention.cs @@ -1,4 +1,6 @@ - +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + using PSDocs.Runtime; using System.Collections; diff --git a/src/PSDocs/Definitions/Conventions/DefaultDocumentConvention.cs b/src/PSDocs/Definitions/Conventions/DefaultDocumentConvention.cs index 52fa4e7..6cbdb1a 100644 --- a/src/PSDocs/Definitions/Conventions/DefaultDocumentConvention.cs +++ b/src/PSDocs/Definitions/Conventions/DefaultDocumentConvention.cs @@ -1,4 +1,6 @@ - +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + using PSDocs.Configuration; using PSDocs.Runtime; using System.Collections; diff --git a/src/PSDocs/Definitions/Conventions/ScriptBlockDocumentConvention.cs b/src/PSDocs/Definitions/Conventions/ScriptBlockDocumentConvention.cs index 1d84db3..744d233 100644 --- a/src/PSDocs/Definitions/Conventions/ScriptBlockDocumentConvention.cs +++ b/src/PSDocs/Definitions/Conventions/ScriptBlockDocumentConvention.cs @@ -1,4 +1,6 @@ - +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + using PSDocs.Pipeline; using PSDocs.Runtime; using System.Collections; diff --git a/src/PSDocs/Definitions/IDocumentConvention.cs b/src/PSDocs/Definitions/IDocumentConvention.cs index 46fb550..4fcb542 100644 --- a/src/PSDocs/Definitions/IDocumentConvention.cs +++ b/src/PSDocs/Definitions/IDocumentConvention.cs @@ -1,4 +1,6 @@ - +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + using PSDocs.Runtime; using System.Collections; diff --git a/src/PSDocs/Definitions/IDocumentDefinition.cs b/src/PSDocs/Definitions/IDocumentDefinition.cs index d91c3c7..0b4b67f 100644 --- a/src/PSDocs/Definitions/IDocumentDefinition.cs +++ b/src/PSDocs/Definitions/IDocumentDefinition.cs @@ -1,4 +1,7 @@ -using PSDocs.Runtime; +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +using PSDocs.Runtime; namespace PSDocs.Definitions { diff --git a/src/PSDocs/Models/Alignment.cs b/src/PSDocs/Models/Alignment.cs index 4670680..d9da912 100644 --- a/src/PSDocs/Models/Alignment.cs +++ b/src/PSDocs/Models/Alignment.cs @@ -1,4 +1,7 @@ -namespace PSDocs.Models +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +namespace PSDocs.Models { public enum Alignment { diff --git a/src/PSDocs/Models/BlockQuote.cs b/src/PSDocs/Models/BlockQuote.cs index dc8bd2b..eb7d1e0 100644 --- a/src/PSDocs/Models/BlockQuote.cs +++ b/src/PSDocs/Models/BlockQuote.cs @@ -1,4 +1,7 @@ -namespace PSDocs.Models +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +namespace PSDocs.Models { public sealed class BlockQuote : DocumentNode { diff --git a/src/PSDocs/Models/Code.cs b/src/PSDocs/Models/Code.cs index abe4a98..e4c0ec4 100644 --- a/src/PSDocs/Models/Code.cs +++ b/src/PSDocs/Models/Code.cs @@ -1,4 +1,7 @@ -namespace PSDocs.Models +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +namespace PSDocs.Models { public sealed class Code : DocumentNode { diff --git a/src/PSDocs/Models/Document.cs b/src/PSDocs/Models/Document.cs index 83443e1..43f5b23 100644 --- a/src/PSDocs/Models/Document.cs +++ b/src/PSDocs/Models/Document.cs @@ -1,4 +1,6 @@ - +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + using PSDocs.Runtime; using System.Collections; using System.Collections.Specialized; diff --git a/src/PSDocs/Models/DocumentFilter.cs b/src/PSDocs/Models/DocumentFilter.cs index 4363591..13449e4 100644 --- a/src/PSDocs/Models/DocumentFilter.cs +++ b/src/PSDocs/Models/DocumentFilter.cs @@ -1,4 +1,7 @@ -using System; +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +using System; using System.Collections.Generic; namespace PSDocs.Models diff --git a/src/PSDocs/Models/DocumentNode.cs b/src/PSDocs/Models/DocumentNode.cs index c7c47ae..953e133 100644 --- a/src/PSDocs/Models/DocumentNode.cs +++ b/src/PSDocs/Models/DocumentNode.cs @@ -1,4 +1,7 @@ -namespace PSDocs.Models +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +namespace PSDocs.Models { public abstract class DocumentNode { diff --git a/src/PSDocs/Models/DocumentNodeType.cs b/src/PSDocs/Models/DocumentNodeType.cs index ba6460d..4315b9b 100644 --- a/src/PSDocs/Models/DocumentNodeType.cs +++ b/src/PSDocs/Models/DocumentNodeType.cs @@ -1,4 +1,7 @@ -namespace PSDocs.Models +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +namespace PSDocs.Models { public enum DocumentNodeType { diff --git a/src/PSDocs/Models/Include.cs b/src/PSDocs/Models/Include.cs index 79d85e8..428a23f 100644 --- a/src/PSDocs/Models/Include.cs +++ b/src/PSDocs/Models/Include.cs @@ -1,4 +1,6 @@ - +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + using System.IO; namespace PSDocs.Models diff --git a/src/PSDocs/Models/ModelHelper.cs b/src/PSDocs/Models/ModelHelper.cs index f81292b..7ba7465 100644 --- a/src/PSDocs/Models/ModelHelper.cs +++ b/src/PSDocs/Models/ModelHelper.cs @@ -1,4 +1,6 @@ - +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + using PSDocs.Configuration; using System.Collections; using System.IO; diff --git a/src/PSDocs/Models/PSDocsContext.cs b/src/PSDocs/Models/PSDocsContext.cs index 6809250..8199cf0 100644 --- a/src/PSDocs/Models/PSDocsContext.cs +++ b/src/PSDocs/Models/PSDocsContext.cs @@ -1,4 +1,7 @@ -using PSDocs.Configuration; +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +using PSDocs.Configuration; using System.IO; namespace PSDocs.Models diff --git a/src/PSDocs/Models/PSDocsHelper.cs b/src/PSDocs/Models/PSDocsHelper.cs index 65e4e22..332a641 100644 --- a/src/PSDocs/Models/PSDocsHelper.cs +++ b/src/PSDocs/Models/PSDocsHelper.cs @@ -1,4 +1,7 @@ -using System; +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +using System; using System.Collections.Generic; namespace PSDocs.Models diff --git a/src/PSDocs/Models/Section.cs b/src/PSDocs/Models/Section.cs index 9aa9db7..551c8fd 100644 --- a/src/PSDocs/Models/Section.cs +++ b/src/PSDocs/Models/Section.cs @@ -1,4 +1,7 @@ -namespace PSDocs.Models +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +namespace PSDocs.Models { public sealed class Section : SectionNode { diff --git a/src/PSDocs/Models/SectionNode.cs b/src/PSDocs/Models/SectionNode.cs index 4beabf1..2b39152 100644 --- a/src/PSDocs/Models/SectionNode.cs +++ b/src/PSDocs/Models/SectionNode.cs @@ -1,4 +1,6 @@ - +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + using System.Collections.Generic; using System.Collections.ObjectModel; using System.Management.Automation; diff --git a/src/PSDocs/Models/Table.cs b/src/PSDocs/Models/Table.cs index 6c9ffb4..b9e66e1 100644 --- a/src/PSDocs/Models/Table.cs +++ b/src/PSDocs/Models/Table.cs @@ -1,4 +1,7 @@ -using System.Collections.Generic; +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +using System.Collections.Generic; namespace PSDocs.Models { diff --git a/src/PSDocs/Models/TableBuilder.cs b/src/PSDocs/Models/TableBuilder.cs index 50ede0c..a103ab0 100644 --- a/src/PSDocs/Models/TableBuilder.cs +++ b/src/PSDocs/Models/TableBuilder.cs @@ -1,4 +1,6 @@ - +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + using PSDocs.Pipeline; using PSDocs.Resources; using System; diff --git a/src/PSDocs/Models/TableColumnHeader.cs b/src/PSDocs/Models/TableColumnHeader.cs index 1da01d7..1c54c8b 100644 --- a/src/PSDocs/Models/TableColumnHeader.cs +++ b/src/PSDocs/Models/TableColumnHeader.cs @@ -1,4 +1,7 @@ -namespace PSDocs.Models +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +namespace PSDocs.Models { public sealed class TableColumnHeader { diff --git a/src/PSDocs/Models/Text.cs b/src/PSDocs/Models/Text.cs index 9b80844..490f5ca 100644 --- a/src/PSDocs/Models/Text.cs +++ b/src/PSDocs/Models/Text.cs @@ -1,4 +1,7 @@ -namespace PSDocs.Models +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +namespace PSDocs.Models { public sealed class Text : DocumentNode { diff --git a/src/PSDocs/PSDocs.csproj b/src/PSDocs/PSDocs.csproj index 843e447..4516f93 100644 --- a/src/PSDocs/PSDocs.csproj +++ b/src/PSDocs/PSDocs.csproj @@ -12,13 +12,13 @@ Bernie White PSDocs - https://github.com/BernieWhite/PSDocs - https://github.com/BernieWhite/PSDocs/blob/main/LICENSE + https://github.com/Microsoft/PSDocs + https://github.com/Microsoft/PSDocs/blob/main/LICENSE 0.0.1 - (c) Bernie White. All rights reserved. + Copyright (c) Microsoft Corporation. Licensed under the MIT License. Generate markdown from objects using PowerShell syntax. -This project is to be considered a proof-of-concept and not a supported product. +This project uses GitHub Issues to track bugs and feature requests. See GitHub project for more information. diff --git a/src/PSDocs/PSDocs.psd1 b/src/PSDocs/PSDocs.psd1 index 8bc93c5..b228512 100644 --- a/src/PSDocs/PSDocs.psd1 +++ b/src/PSDocs/PSDocs.psd1 @@ -1,3 +1,6 @@ +# Copyright (c) Microsoft Corporation. +# Licensed under the MIT License. + # # PSDocs module # @@ -17,18 +20,18 @@ CompatiblePSEditions = 'Core', 'Desktop' GUID = '1f6df554-c081-40d8-9aca-32c1abe4a1b6' # Author of this module -Author = 'Bernie White' +Author = 'Microsoft Corporation' # Company or vendor of this module -CompanyName = 'Bernie White' +CompanyName = 'Microsoft Corporation' # Copyright statement for this module -Copyright = '(c) Bernie White. All rights reserved.' +Copyright = '(c) Microsoft Corporation. All rights reserved.' # Description of the functionality provided by this module Description = 'Generate markdown from PowerShell. -This project is to be considered a proof-of-concept and not a supported product.' +This project uses GitHub Issues to track bugs and feature requests. See GitHub project for more information.' # Minimum version of the Windows PowerShell engine required by this module PowerShellVersion = '5.1' @@ -117,16 +120,16 @@ PrivateData = @{ Tags = @('Markdown', 'PSDocs', 'DevOps', 'CI') # A URL to the license for this module. - LicenseUri = 'https://github.com/BernieWhite/PSDocs/blob/main/LICENSE' + LicenseUri = 'https://github.com/Microsoft/PSDocs/blob/main/LICENSE' # A URL to the main website for this project. - ProjectUri = 'https://github.com/BernieWhite/PSDocs' + ProjectUri = 'https://github.com/Microsoft/PSDocs' # A URL to an icon representing this module. # IconUri = '' # ReleaseNotes of this module - ReleaseNotes = 'https://github.com/BernieWhite/PSDocs/releases' + ReleaseNotes = 'https://github.com/Microsoft/PSDocs/releases' } # End of PSData hashtable diff --git a/src/PSDocs/PSDocs.psm1 b/src/PSDocs/PSDocs.psm1 index 9ac8ecd..55170b8 100644 --- a/src/PSDocs/PSDocs.psm1 +++ b/src/PSDocs/PSDocs.psm1 @@ -1,3 +1,6 @@ +# Copyright (c) Microsoft Corporation. +# Licensed under the MIT License. + # # PSDocs module # diff --git a/src/PSDocs/Pipeline/Execeptions.cs b/src/PSDocs/Pipeline/Execeptions.cs index 1ff4cb8..27c8f4c 100644 --- a/src/PSDocs/Pipeline/Execeptions.cs +++ b/src/PSDocs/Pipeline/Execeptions.cs @@ -1,4 +1,7 @@ -using System; +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +using System; using System.Runtime.Serialization; using System.Security.Permissions; diff --git a/src/PSDocs/Pipeline/GetPipeline.cs b/src/PSDocs/Pipeline/GetPipeline.cs index 1a43dbc..2c3bc08 100644 --- a/src/PSDocs/Pipeline/GetPipeline.cs +++ b/src/PSDocs/Pipeline/GetPipeline.cs @@ -1,4 +1,7 @@ -using PSDocs.Runtime; +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +using PSDocs.Runtime; namespace PSDocs.Pipeline { diff --git a/src/PSDocs/Pipeline/HostContext.cs b/src/PSDocs/Pipeline/HostContext.cs index 8a6b185..812f35d 100644 --- a/src/PSDocs/Pipeline/HostContext.cs +++ b/src/PSDocs/Pipeline/HostContext.cs @@ -1,4 +1,7 @@ -using System.Management.Automation; +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +using System.Management.Automation; namespace PSDocs.Pipeline { diff --git a/src/PSDocs/Pipeline/InstanceNameBinder.cs b/src/PSDocs/Pipeline/InstanceNameBinder.cs index 755b2af..6f4489a 100644 --- a/src/PSDocs/Pipeline/InstanceNameBinder.cs +++ b/src/PSDocs/Pipeline/InstanceNameBinder.cs @@ -1,4 +1,7 @@ -using System.Collections.Generic; +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +using System.Collections.Generic; namespace PSDocs.Pipeline { diff --git a/src/PSDocs/Pipeline/InvokePipeline.cs b/src/PSDocs/Pipeline/InvokePipeline.cs index 731d308..7a520f0 100644 --- a/src/PSDocs/Pipeline/InvokePipeline.cs +++ b/src/PSDocs/Pipeline/InvokePipeline.cs @@ -1,4 +1,6 @@ - +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + using PSDocs.Data; using PSDocs.Models; using PSDocs.Processor; diff --git a/src/PSDocs/Pipeline/Output/HostPipelineWriter.cs b/src/PSDocs/Pipeline/Output/HostPipelineWriter.cs index 57a5dd2..44a1e0c 100644 --- a/src/PSDocs/Pipeline/Output/HostPipelineWriter.cs +++ b/src/PSDocs/Pipeline/Output/HostPipelineWriter.cs @@ -1,4 +1,7 @@ -using System.Management.Automation; +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +using System.Management.Automation; namespace PSDocs.Pipeline.Output { diff --git a/src/PSDocs/Pipeline/PipelineBuilder.cs b/src/PSDocs/Pipeline/PipelineBuilder.cs index dd1f74e..f81fc62 100644 --- a/src/PSDocs/Pipeline/PipelineBuilder.cs +++ b/src/PSDocs/Pipeline/PipelineBuilder.cs @@ -1,3 +1,5 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. using PSDocs.Configuration; using PSDocs.Pipeline.Output; diff --git a/src/PSDocs/Pipeline/PipelineContext.cs b/src/PSDocs/Pipeline/PipelineContext.cs index a7e8351..5f5b197 100644 --- a/src/PSDocs/Pipeline/PipelineContext.cs +++ b/src/PSDocs/Pipeline/PipelineContext.cs @@ -1,4 +1,6 @@ - +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + using PSDocs.Configuration; using PSDocs.Models; using PSDocs.Processor; diff --git a/src/PSDocs/Pipeline/PipelineStream.cs b/src/PSDocs/Pipeline/PipelineStream.cs index 1c50940..c9111f1 100644 --- a/src/PSDocs/Pipeline/PipelineStream.cs +++ b/src/PSDocs/Pipeline/PipelineStream.cs @@ -1,4 +1,6 @@ - +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + using System.Collections.Concurrent; using System.Management.Automation; diff --git a/src/PSDocs/Pipeline/PipelineWriter.cs b/src/PSDocs/Pipeline/PipelineWriter.cs index 9f7d93d..781bb8d 100644 --- a/src/PSDocs/Pipeline/PipelineWriter.cs +++ b/src/PSDocs/Pipeline/PipelineWriter.cs @@ -1,4 +1,6 @@ - +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + using PSDocs.Resources; using System; using System.Collections.Generic; diff --git a/src/PSDocs/Pipeline/SourcePipeline.cs b/src/PSDocs/Pipeline/SourcePipeline.cs index 6108360..b3b877b 100644 --- a/src/PSDocs/Pipeline/SourcePipeline.cs +++ b/src/PSDocs/Pipeline/SourcePipeline.cs @@ -1,4 +1,6 @@ - +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + using PSDocs.Configuration; using PSDocs.Pipeline.Output; using PSDocs.Resources; diff --git a/src/PSDocs/Pipeline/StreamPipeline.cs b/src/PSDocs/Pipeline/StreamPipeline.cs index 786d449..276fe36 100644 --- a/src/PSDocs/Pipeline/StreamPipeline.cs +++ b/src/PSDocs/Pipeline/StreamPipeline.cs @@ -1,4 +1,6 @@ - +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + using System.Management.Automation; namespace PSDocs.Pipeline diff --git a/src/PSDocs/Processor/IDocumentProcessor.cs b/src/PSDocs/Processor/IDocumentProcessor.cs index 9522daa..a1d74ee 100644 --- a/src/PSDocs/Processor/IDocumentProcessor.cs +++ b/src/PSDocs/Processor/IDocumentProcessor.cs @@ -1,4 +1,7 @@ -using PSDocs.Configuration; +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +using PSDocs.Configuration; using PSDocs.Models; namespace PSDocs.Processor diff --git a/src/PSDocs/Processor/IDocumentResult.cs b/src/PSDocs/Processor/IDocumentResult.cs index 5997bfa..af3f110 100644 --- a/src/PSDocs/Processor/IDocumentResult.cs +++ b/src/PSDocs/Processor/IDocumentResult.cs @@ -1,4 +1,6 @@ - +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + using System.Collections; using System.Collections.Specialized; diff --git a/src/PSDocs/Processor/Markdown/MarkdownProcessor.cs b/src/PSDocs/Processor/Markdown/MarkdownProcessor.cs index 0e7e524..37453dc 100644 --- a/src/PSDocs/Processor/Markdown/MarkdownProcessor.cs +++ b/src/PSDocs/Processor/Markdown/MarkdownProcessor.cs @@ -1,4 +1,6 @@ - +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + using PSDocs.Configuration; using PSDocs.Models; using PSDocs.Runtime; diff --git a/src/PSDocs/Processor/Markdown/MarkdownProcessorContext.cs b/src/PSDocs/Processor/Markdown/MarkdownProcessorContext.cs index 3a53acc..7482b31 100644 --- a/src/PSDocs/Processor/Markdown/MarkdownProcessorContext.cs +++ b/src/PSDocs/Processor/Markdown/MarkdownProcessorContext.cs @@ -1,4 +1,6 @@ - +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + using PSDocs.Configuration; using PSDocs.Models; using System; diff --git a/src/PSDocs/Properties/AssemblyInfo.cs b/src/PSDocs/Properties/AssemblyInfo.cs index 7e7252c..b23f9a8 100644 --- a/src/PSDocs/Properties/AssemblyInfo.cs +++ b/src/PSDocs/Properties/AssemblyInfo.cs @@ -1,4 +1,6 @@ - +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + using System.Runtime.CompilerServices; [assembly: InternalsVisibleTo("PSDocs.Benchmark")] diff --git a/src/PSDocs/Runtime/Configuration.cs b/src/PSDocs/Runtime/Configuration.cs index cc64fca..da399df 100644 --- a/src/PSDocs/Runtime/Configuration.cs +++ b/src/PSDocs/Runtime/Configuration.cs @@ -1,4 +1,6 @@ - +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + using System.Collections; using System.Collections.Generic; using System.Dynamic; diff --git a/src/PSDocs/Runtime/DocumentContext.cs b/src/PSDocs/Runtime/DocumentContext.cs index 3d5bd23..0b9a26e 100644 --- a/src/PSDocs/Runtime/DocumentContext.cs +++ b/src/PSDocs/Runtime/DocumentContext.cs @@ -1,4 +1,6 @@ - +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + using System.Collections; using System.Collections.Specialized; diff --git a/src/PSDocs/Runtime/Host.cs b/src/PSDocs/Runtime/Host.cs index 886e6d6..4b9827f 100644 --- a/src/PSDocs/Runtime/Host.cs +++ b/src/PSDocs/Runtime/Host.cs @@ -1,4 +1,6 @@ -using System; +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +using System; using System.Globalization; using System.Management.Automation.Host; diff --git a/src/PSDocs/Runtime/HostHelper.cs b/src/PSDocs/Runtime/HostHelper.cs index 4401297..fbfd0e5 100644 --- a/src/PSDocs/Runtime/HostHelper.cs +++ b/src/PSDocs/Runtime/HostHelper.cs @@ -1,4 +1,6 @@ - +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + using PSDocs.Data; using PSDocs.Data.Internal; using PSDocs.Definitions; diff --git a/src/PSDocs/Runtime/HostState.cs b/src/PSDocs/Runtime/HostState.cs index b7c4b7a..9044712 100644 --- a/src/PSDocs/Runtime/HostState.cs +++ b/src/PSDocs/Runtime/HostState.cs @@ -1,4 +1,6 @@ - +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + using PSDocs.Commands; using System; using System.Management.Automation; diff --git a/src/PSDocs/Runtime/ILanguageBlock.cs b/src/PSDocs/Runtime/ILanguageBlock.cs index 87c6e9b..d7389e2 100644 --- a/src/PSDocs/Runtime/ILanguageBlock.cs +++ b/src/PSDocs/Runtime/ILanguageBlock.cs @@ -1,4 +1,7 @@ -namespace PSDocs.Runtime +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +namespace PSDocs.Runtime { public interface ILanguageBlock { diff --git a/src/PSDocs/Runtime/LanguageScriptBlock.cs b/src/PSDocs/Runtime/LanguageScriptBlock.cs index 1ff2777..ea81d7f 100644 --- a/src/PSDocs/Runtime/LanguageScriptBlock.cs +++ b/src/PSDocs/Runtime/LanguageScriptBlock.cs @@ -1,4 +1,6 @@ - +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + using System.Collections; using System.Management.Automation; diff --git a/src/PSDocs/Runtime/LocalizedData.cs b/src/PSDocs/Runtime/LocalizedData.cs index 820cfa3..79de589 100644 --- a/src/PSDocs/Runtime/LocalizedData.cs +++ b/src/PSDocs/Runtime/LocalizedData.cs @@ -1,4 +1,6 @@ - +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + using System.Dynamic; namespace PSDocs.Runtime diff --git a/src/PSDocs/Runtime/PSDocs.cs b/src/PSDocs/Runtime/PSDocs.cs index 547951e..fb779bf 100644 --- a/src/PSDocs/Runtime/PSDocs.cs +++ b/src/PSDocs/Runtime/PSDocs.cs @@ -1,3 +1,5 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. using System.Collections; using System.Management.Automation; diff --git a/src/PSDocs/Runtime/ResourceExtent.cs b/src/PSDocs/Runtime/ResourceExtent.cs index db3a278..ac58dfa 100644 --- a/src/PSDocs/Runtime/ResourceExtent.cs +++ b/src/PSDocs/Runtime/ResourceExtent.cs @@ -1,4 +1,7 @@ -namespace PSDocs.Runtime +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +namespace PSDocs.Runtime { internal interface IResourceExtent { diff --git a/src/PSDocs/Runtime/ResourceHelper.cs b/src/PSDocs/Runtime/ResourceHelper.cs index 5933296..2342e41 100644 --- a/src/PSDocs/Runtime/ResourceHelper.cs +++ b/src/PSDocs/Runtime/ResourceHelper.cs @@ -1,4 +1,7 @@ -namespace PSDocs.Runtime +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +namespace PSDocs.Runtime { internal static class ResourceHelper { diff --git a/src/PSDocs/Runtime/RunspaceContext.cs b/src/PSDocs/Runtime/RunspaceContext.cs index bd51c91..0e823a1 100644 --- a/src/PSDocs/Runtime/RunspaceContext.cs +++ b/src/PSDocs/Runtime/RunspaceContext.cs @@ -1,4 +1,6 @@ - +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + using PSDocs.Configuration; using PSDocs.Data.Internal; using PSDocs.Pipeline; diff --git a/src/PSDocs/Runtime/ScopedItem.cs b/src/PSDocs/Runtime/ScopedItem.cs index b95496b..b999dde 100644 --- a/src/PSDocs/Runtime/ScopedItem.cs +++ b/src/PSDocs/Runtime/ScopedItem.cs @@ -1,4 +1,6 @@ - +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + using PSDocs.Pipeline; namespace PSDocs.Runtime diff --git a/src/PSDocs/Runtime/ScriptDocumentBlock.cs b/src/PSDocs/Runtime/ScriptDocumentBlock.cs index 75765a2..dc7c2e4 100644 --- a/src/PSDocs/Runtime/ScriptDocumentBlock.cs +++ b/src/PSDocs/Runtime/ScriptDocumentBlock.cs @@ -1,4 +1,6 @@ - +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + using PSDocs.Definitions; using PSDocs.Pipeline; using System; diff --git a/src/PSDocs/Runtime/StringContent.cs b/src/PSDocs/Runtime/StringContent.cs index 236535d..45975bc 100644 --- a/src/PSDocs/Runtime/StringContent.cs +++ b/src/PSDocs/Runtime/StringContent.cs @@ -1,4 +1,6 @@ - +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + using System; using System.Collections.Generic; diff --git a/src/PSDocs/Runtime/StringStream.cs b/src/PSDocs/Runtime/StringStream.cs index 33212e1..c60ac9d 100644 --- a/src/PSDocs/Runtime/StringStream.cs +++ b/src/PSDocs/Runtime/StringStream.cs @@ -1,4 +1,6 @@ - +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + namespace PSDocs.Runtime { internal sealed class StringStream diff --git a/src/PSDocs/en-AU/PSDocs.Resources.psd1 b/src/PSDocs/en-AU/PSDocs.Resources.psd1 index b1fb39c..c5df32e 100644 --- a/src/PSDocs/en-AU/PSDocs.Resources.psd1 +++ b/src/PSDocs/en-AU/PSDocs.Resources.psd1 @@ -1,3 +1,5 @@ +# Copyright (c) Microsoft Corporation. +# Licensed under the MIT License. ConvertFrom-StringData @' ###PSLOC diff --git a/src/PSDocs/en-GB/PSDocs.Resources.psd1 b/src/PSDocs/en-GB/PSDocs.Resources.psd1 index b1fb39c..c5df32e 100644 --- a/src/PSDocs/en-GB/PSDocs.Resources.psd1 +++ b/src/PSDocs/en-GB/PSDocs.Resources.psd1 @@ -1,3 +1,5 @@ +# Copyright (c) Microsoft Corporation. +# Licensed under the MIT License. ConvertFrom-StringData @' ###PSLOC diff --git a/src/PSDocs/en-US/PSDocs.Resources.psd1 b/src/PSDocs/en-US/PSDocs.Resources.psd1 index a02769e..2b0966e 100644 --- a/src/PSDocs/en-US/PSDocs.Resources.psd1 +++ b/src/PSDocs/en-US/PSDocs.Resources.psd1 @@ -1,3 +1,5 @@ +# Copyright (c) Microsoft Corporation. +# Licensed under the MIT License. ConvertFrom-StringData @' ###PSLOC diff --git a/tests/PSDocs.Tests/FromFile.Cmdlets.Doc.ps1 b/tests/PSDocs.Tests/FromFile.Cmdlets.Doc.ps1 index bf15652..d7ea18f 100644 --- a/tests/PSDocs.Tests/FromFile.Cmdlets.Doc.ps1 +++ b/tests/PSDocs.Tests/FromFile.Cmdlets.Doc.ps1 @@ -1,3 +1,6 @@ +# Copyright (c) Microsoft Corporation. +# Licensed under the MIT License. + # # Document definitions for unit testing # diff --git a/tests/PSDocs.Tests/FromFile.Conventions.Doc.ps1 b/tests/PSDocs.Tests/FromFile.Conventions.Doc.ps1 index dcc4f48..0a8139c 100644 --- a/tests/PSDocs.Tests/FromFile.Conventions.Doc.ps1 +++ b/tests/PSDocs.Tests/FromFile.Conventions.Doc.ps1 @@ -1,3 +1,6 @@ +# Copyright (c) Microsoft Corporation. +# Licensed under the MIT License. + # # Conventions for unit testing # diff --git a/tests/PSDocs.Tests/FromFile.Doc.ps1 b/tests/PSDocs.Tests/FromFile.Doc.ps1 index c03a360..777223b 100644 --- a/tests/PSDocs.Tests/FromFile.Doc.ps1 +++ b/tests/PSDocs.Tests/FromFile.Doc.ps1 @@ -1,3 +1,5 @@ +# Copyright (c) Microsoft Corporation. +# Licensed under the MIT License. Export-PSDocumentConvention 'FromFileTest1' { diff --git a/tests/PSDocs.Tests/FromFile.Keyword.Doc.ps1 b/tests/PSDocs.Tests/FromFile.Keyword.Doc.ps1 index bafdfdf..9d2f928 100644 --- a/tests/PSDocs.Tests/FromFile.Keyword.Doc.ps1 +++ b/tests/PSDocs.Tests/FromFile.Keyword.Doc.ps1 @@ -1,3 +1,6 @@ +# Copyright (c) Microsoft Corporation. +# Licensed under the MIT License. + # # Document defintions for keyword unit tests # diff --git a/tests/PSDocs.Tests/FromFile.Variables.Doc.ps1 b/tests/PSDocs.Tests/FromFile.Variables.Doc.ps1 index 8c6d7ff..f199a3b 100644 --- a/tests/PSDocs.Tests/FromFile.Variables.Doc.ps1 +++ b/tests/PSDocs.Tests/FromFile.Variables.Doc.ps1 @@ -1,3 +1,5 @@ +# Copyright (c) Microsoft Corporation. +# Licensed under the MIT License. # Synopsis: Document for unit testing Document 'PSAutomaticVariables' { diff --git a/tests/PSDocs.Tests/KeywordTests.cs b/tests/PSDocs.Tests/KeywordTests.cs index d13ec65..8e5b67c 100644 --- a/tests/PSDocs.Tests/KeywordTests.cs +++ b/tests/PSDocs.Tests/KeywordTests.cs @@ -1,4 +1,6 @@ - +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + using PSDocs.Configuration; using PSDocs.Models; using PSDocs.Pipeline; diff --git a/tests/PSDocs.Tests/MarkdownProcessorTests.cs b/tests/PSDocs.Tests/MarkdownProcessorTests.cs index cdba8d9..b1a2e59 100644 --- a/tests/PSDocs.Tests/MarkdownProcessorTests.cs +++ b/tests/PSDocs.Tests/MarkdownProcessorTests.cs @@ -1,3 +1,6 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + using PSDocs.Configuration; using PSDocs.Models; using PSDocs.Processor.Markdown; diff --git a/tests/PSDocs.Tests/Models/TestModel.cs b/tests/PSDocs.Tests/Models/TestModel.cs index 369c200..42e5718 100644 --- a/tests/PSDocs.Tests/Models/TestModel.cs +++ b/tests/PSDocs.Tests/Models/TestModel.cs @@ -1,4 +1,7 @@ -using System.ComponentModel; +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +using System.ComponentModel; namespace PSDocs.Models { diff --git a/tests/PSDocs.Tests/PSDocs.BlockQuote.Tests.ps1 b/tests/PSDocs.Tests/PSDocs.BlockQuote.Tests.ps1 index d52d238..3a4b2b1 100644 --- a/tests/PSDocs.Tests/PSDocs.BlockQuote.Tests.ps1 +++ b/tests/PSDocs.Tests/PSDocs.BlockQuote.Tests.ps1 @@ -1,3 +1,6 @@ +# Copyright (c) Microsoft Corporation. +# Licensed under the MIT License. + # # Unit tests for the BlockQuote keyword # diff --git a/tests/PSDocs.Tests/PSDocs.Code.Tests.ps1 b/tests/PSDocs.Tests/PSDocs.Code.Tests.ps1 index bd62f93..a64a7ad 100644 --- a/tests/PSDocs.Tests/PSDocs.Code.Tests.ps1 +++ b/tests/PSDocs.Tests/PSDocs.Code.Tests.ps1 @@ -1,3 +1,6 @@ +# Copyright (c) Microsoft Corporation. +# Licensed under the MIT License. + # # Unit tests for the Code keyword # diff --git a/tests/PSDocs.Tests/PSDocs.Common.Tests.ps1 b/tests/PSDocs.Tests/PSDocs.Common.Tests.ps1 index a958763..a33aff4 100644 --- a/tests/PSDocs.Tests/PSDocs.Common.Tests.ps1 +++ b/tests/PSDocs.Tests/PSDocs.Common.Tests.ps1 @@ -1,3 +1,6 @@ +# Copyright (c) Microsoft Corporation. +# Licensed under the MIT License. + # # Unit tests for core PSDocs functionality # diff --git a/tests/PSDocs.Tests/PSDocs.Conventions.Tests.ps1 b/tests/PSDocs.Tests/PSDocs.Conventions.Tests.ps1 index 1397332..df7ea13 100644 --- a/tests/PSDocs.Tests/PSDocs.Conventions.Tests.ps1 +++ b/tests/PSDocs.Tests/PSDocs.Conventions.Tests.ps1 @@ -1,3 +1,6 @@ +# Copyright (c) Microsoft Corporation. +# Licensed under the MIT License. + # # Unit tests for the PSDocs conventions # diff --git a/tests/PSDocs.Tests/PSDocs.Include.Tests.ps1 b/tests/PSDocs.Tests/PSDocs.Include.Tests.ps1 index 788d2a4..9be1f0d 100644 --- a/tests/PSDocs.Tests/PSDocs.Include.Tests.ps1 +++ b/tests/PSDocs.Tests/PSDocs.Include.Tests.ps1 @@ -1,3 +1,6 @@ +# Copyright (c) Microsoft Corporation. +# Licensed under the MIT License. + # # Unit tests for the Include keyword # diff --git a/tests/PSDocs.Tests/PSDocs.Metadata.Tests.ps1 b/tests/PSDocs.Tests/PSDocs.Metadata.Tests.ps1 index bca3b2f..74523a3 100644 --- a/tests/PSDocs.Tests/PSDocs.Metadata.Tests.ps1 +++ b/tests/PSDocs.Tests/PSDocs.Metadata.Tests.ps1 @@ -1,3 +1,6 @@ +# Copyright (c) Microsoft Corporation. +# Licensed under the MIT License. + # # Unit tests for the Metadata keyword # diff --git a/tests/PSDocs.Tests/PSDocs.Note.Tests.ps1 b/tests/PSDocs.Tests/PSDocs.Note.Tests.ps1 index c450ba5..82a182d 100644 --- a/tests/PSDocs.Tests/PSDocs.Note.Tests.ps1 +++ b/tests/PSDocs.Tests/PSDocs.Note.Tests.ps1 @@ -1,3 +1,6 @@ +# Copyright (c) Microsoft Corporation. +# Licensed under the MIT License. + # # Unit tests for the Note keyword # diff --git a/tests/PSDocs.Tests/PSDocs.Options.Tests.ps1 b/tests/PSDocs.Tests/PSDocs.Options.Tests.ps1 index 02cb188..280c24a 100644 --- a/tests/PSDocs.Tests/PSDocs.Options.Tests.ps1 +++ b/tests/PSDocs.Tests/PSDocs.Options.Tests.ps1 @@ -1,3 +1,6 @@ +# Copyright (c) Microsoft Corporation. +# Licensed under the MIT License. + # # Unit tests for the options handling # diff --git a/tests/PSDocs.Tests/PSDocs.Section.Tests.ps1 b/tests/PSDocs.Tests/PSDocs.Section.Tests.ps1 index a59b7d6..3dd438f 100644 --- a/tests/PSDocs.Tests/PSDocs.Section.Tests.ps1 +++ b/tests/PSDocs.Tests/PSDocs.Section.Tests.ps1 @@ -1,3 +1,6 @@ +# Copyright (c) Microsoft Corporation. +# Licensed under the MIT License. + # # Unit tests for the Section keyword # diff --git a/tests/PSDocs.Tests/PSDocs.Table.Tests.ps1 b/tests/PSDocs.Tests/PSDocs.Table.Tests.ps1 index 7a8da35..8e321cd 100644 --- a/tests/PSDocs.Tests/PSDocs.Table.Tests.ps1 +++ b/tests/PSDocs.Tests/PSDocs.Table.Tests.ps1 @@ -1,3 +1,6 @@ +# Copyright (c) Microsoft Corporation. +# Licensed under the MIT License. + # # Unit tests for the Table keyword # diff --git a/tests/PSDocs.Tests/PSDocs.Title.Tests.ps1 b/tests/PSDocs.Tests/PSDocs.Title.Tests.ps1 index 23c89f3..7d7bf4f 100644 --- a/tests/PSDocs.Tests/PSDocs.Title.Tests.ps1 +++ b/tests/PSDocs.Tests/PSDocs.Title.Tests.ps1 @@ -1,3 +1,6 @@ +# Copyright (c) Microsoft Corporation. +# Licensed under the MIT License. + # # Unit tests for the Title keyword # diff --git a/tests/PSDocs.Tests/PSDocs.Variables.Tests.ps1 b/tests/PSDocs.Tests/PSDocs.Variables.Tests.ps1 index 87ce7e2..0886fa0 100644 --- a/tests/PSDocs.Tests/PSDocs.Variables.Tests.ps1 +++ b/tests/PSDocs.Tests/PSDocs.Variables.Tests.ps1 @@ -1,3 +1,6 @@ +# Copyright (c) Microsoft Corporation. +# Licensed under the MIT License. + # # Unit tests for the PSDocs automatic variables # diff --git a/tests/PSDocs.Tests/PSDocs.Warning.Tests.ps1 b/tests/PSDocs.Tests/PSDocs.Warning.Tests.ps1 index 6d0d24c..d1c2820 100644 --- a/tests/PSDocs.Tests/PSDocs.Warning.Tests.ps1 +++ b/tests/PSDocs.Tests/PSDocs.Warning.Tests.ps1 @@ -1,3 +1,6 @@ +# Copyright (c) Microsoft Corporation. +# Licensed under the MIT License. + # # Unit tests for the Warning keyword # diff --git a/tests/PSDocs.Tests/PipelineTests.cs b/tests/PSDocs.Tests/PipelineTests.cs index 736919e..99557b7 100644 --- a/tests/PSDocs.Tests/PipelineTests.cs +++ b/tests/PSDocs.Tests/PipelineTests.cs @@ -1,4 +1,6 @@ - +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + using PSDocs.Configuration; using PSDocs.Models; using PSDocs.Pipeline; diff --git a/tests/PSDocs.Tests/StringContentTests.cs b/tests/PSDocs.Tests/StringContentTests.cs index afa6cbe..0a14a1b 100644 --- a/tests/PSDocs.Tests/StringContentTests.cs +++ b/tests/PSDocs.Tests/StringContentTests.cs @@ -1,4 +1,6 @@ - +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + using PSDocs.Runtime; using Xunit; diff --git a/tests/PSDocs.Tests/TestCommandRuntime.cs b/tests/PSDocs.Tests/TestCommandRuntime.cs index c0b45d7..08de162 100644 --- a/tests/PSDocs.Tests/TestCommandRuntime.cs +++ b/tests/PSDocs.Tests/TestCommandRuntime.cs @@ -1,4 +1,7 @@ -using System.Collections; +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +using System.Collections; using System.Collections.Generic; using System.Management.Automation; using System.Management.Automation.Host; diff --git a/tests/PSDocs.Tests/TestModule/TestModule.psd1 b/tests/PSDocs.Tests/TestModule/TestModule.psd1 index 5ab70ba..3860a2e 100644 --- a/tests/PSDocs.Tests/TestModule/TestModule.psd1 +++ b/tests/PSDocs.Tests/TestModule/TestModule.psd1 @@ -1,3 +1,6 @@ +# Copyright (c) Microsoft Corporation. +# Licensed under the MIT License. + # # A module for testing # diff --git a/tests/PSDocs.Tests/TestModule/docs/Test.Doc.ps1 b/tests/PSDocs.Tests/TestModule/docs/Test.Doc.ps1 index 1ac0e88..94002bd 100644 --- a/tests/PSDocs.Tests/TestModule/docs/Test.Doc.ps1 +++ b/tests/PSDocs.Tests/TestModule/docs/Test.Doc.ps1 @@ -1,3 +1,5 @@ +# Copyright (c) Microsoft Corporation. +# Licensed under the MIT License. Document 'TestDocument1' { "Culture=$($LocalizedData.Culture)"; diff --git a/tests/PSDocs.Tests/TestModule/en-AU/PSDocs-strings.psd1 b/tests/PSDocs.Tests/TestModule/en-AU/PSDocs-strings.psd1 index 119dad7..b03e6b7 100644 --- a/tests/PSDocs.Tests/TestModule/en-AU/PSDocs-strings.psd1 +++ b/tests/PSDocs.Tests/TestModule/en-AU/PSDocs-strings.psd1 @@ -1,3 +1,6 @@ +# Copyright (c) Microsoft Corporation. +# Licensed under the MIT License. + @{ Culture = 'en-AU' } diff --git a/tests/PSDocs.Tests/TestModule/en-US/PSDocs-strings.psd1 b/tests/PSDocs.Tests/TestModule/en-US/PSDocs-strings.psd1 index 6befe0b..72f45e9 100644 --- a/tests/PSDocs.Tests/TestModule/en-US/PSDocs-strings.psd1 +++ b/tests/PSDocs.Tests/TestModule/en-US/PSDocs-strings.psd1 @@ -1,3 +1,6 @@ +# Copyright (c) Microsoft Corporation. +# Licensed under the MIT License. + @{ Culture = 'en-US' } diff --git a/tests/PSDocs.Tests/TestModule/en-ZZ/PSDocs-strings.psd1 b/tests/PSDocs.Tests/TestModule/en-ZZ/PSDocs-strings.psd1 index 4ba4190..400e948 100644 --- a/tests/PSDocs.Tests/TestModule/en-ZZ/PSDocs-strings.psd1 +++ b/tests/PSDocs.Tests/TestModule/en-ZZ/PSDocs-strings.psd1 @@ -1,3 +1,6 @@ +# Copyright (c) Microsoft Corporation. +# Licensed under the MIT License. + @{ # No strings } diff --git a/tests/PSDocs.Tests/TestModule/en/PSDocs-strings.psd1 b/tests/PSDocs.Tests/TestModule/en/PSDocs-strings.psd1 index 7033558..1a111b4 100644 --- a/tests/PSDocs.Tests/TestModule/en/PSDocs-strings.psd1 +++ b/tests/PSDocs.Tests/TestModule/en/PSDocs-strings.psd1 @@ -1,3 +1,6 @@ +# Copyright (c) Microsoft Corporation. +# Licensed under the MIT License. + @{ Culture = 'en' } diff --git a/tests/PSDocs.Tests/WithError.Doc.ps1 b/tests/PSDocs.Tests/WithError.Doc.ps1 index 7780a19..4b818fc 100644 --- a/tests/PSDocs.Tests/WithError.Doc.ps1 +++ b/tests/PSDocs.Tests/WithError.Doc.ps1 @@ -1,3 +1,5 @@ +# Copyright (c) Microsoft Corporation. +# Licensed under the MIT License. document 'InvalidCommand' { New-PSDocsInvalidCommand; diff --git a/tests/PSDocs.Tests/en-US/PSDocs-strings.psd1 b/tests/PSDocs.Tests/en-US/PSDocs-strings.psd1 index 2ddff8e..048410e 100644 --- a/tests/PSDocs.Tests/en-US/PSDocs-strings.psd1 +++ b/tests/PSDocs.Tests/en-US/PSDocs-strings.psd1 @@ -1,3 +1,6 @@ +# Copyright (c) Microsoft Corporation. +# Licensed under the MIT License. + @{ Key1 = 'Value1' }