-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
173 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 4 additions & 0 deletions
4
examples/Smdn.TPSmartHomeDevices.Kasa/GettingStarted/README.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
# Notes | ||
The code in this example is to be included in the README of the NuGet package. | ||
|
||
Keep the content simple. Also, omit the license header. |
4 changes: 4 additions & 0 deletions
4
examples/Smdn.TPSmartHomeDevices.MacAddressEndPoint/GettingStarted/README.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
# Notes | ||
The code in this example is to be included in the README of the NuGet package. | ||
|
||
Keep the content simple. Also, omit the license header. |
4 changes: 4 additions & 0 deletions
4
examples/Smdn.TPSmartHomeDevices.Tapo/GettingStarted/README.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
# Notes | ||
The code in this example is to be included in the README of the NuGet package. | ||
|
||
Keep the content simple. Also, omit the license header. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
<!-- | ||
SPDX-FileCopyrightText: 2023 smdn <smdn@smdn.jp> | ||
SPDX-License-Identifier: MIT | ||
--> | ||
<Project> | ||
<Target Name="ReadReadmeFileNoticeSectionContent"> | ||
<PropertyGroup> | ||
<ReadmeFileNoticeSectionContent>$( | ||
[System.IO.File]::ReadAllText('$(MSBuildThisFileDirectory)..\README.md') | ||
)</ReadmeFileNoticeSectionContent> | ||
<!-- extract section content --> | ||
<ReadmeFileNoticeSectionContent>$([System.Text.RegularExpressions.Regex]::Replace( | ||
'$(ReadmeFileNoticeSectionContent)', | ||
'(?:.+)(?m-s:^.+-- #pragma section-start NupkgReadmeFile_Notice --.+$)(?<notice>.+)(?m-s:^.+-- #pragma section-end NupkgReadmeFile_Notice --.+$)(?:.+)', | ||
'${notice}', | ||
System.Text.RegularExpressions.RegexOptions.Singleline | ||
))</ReadmeFileNoticeSectionContent> | ||
<!-- modify heading level --> | ||
<ReadmeFileNoticeSectionContent>$([System.Text.RegularExpressions.Regex]::Replace( | ||
'$(ReadmeFileNoticeSectionContent)', | ||
'^##', | ||
'###', | ||
System.Text.RegularExpressions.RegexOptions.Multiline | ||
))</ReadmeFileNoticeSectionContent> | ||
<!-- replace relative path to absolute, and trim whitespaces --> | ||
<ReadmeFileNoticeSectionContent>$([System.Text.RegularExpressions.Regex]::Replace( | ||
'$(ReadmeFileNoticeSectionContent)', | ||
'\(\./([^\)]+)\)', | ||
'($(RepositoryUrl)tree/main/$1)' | ||
).Trim())</ReadmeFileNoticeSectionContent> | ||
</PropertyGroup> | ||
</Target> | ||
</Project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters