We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bf45e14 commit 9000215Copy full SHA for 9000215
Build-Toolkit-Docs.ps1
@@ -93,9 +93,15 @@ $componentsRoot = Resolve-Path $PSScriptRoot/../components/
93
94
# For each component
95
foreach ($componentFolder in Get-ChildItem -Path $componentsRoot -Directory) {
96
+ # Add component to TOC
97
$componentName = $componentFolder.Name
98
- # Add component to TOC
99
+ # Check if /samples folder exists
100
+ if (-not (Test-Path "$componentFolder/samples")) {
101
+ continue
102
+ }
103
+
104
+ # Get markdown docs from samples folder
105
$markdownFiles = Get-ChildItem -Recurse -Path "$componentFolder/samples/**/*.md" | Where-Object { $_.FullName -notlike "*\bin\*" -and $_FullName -notlike "*\obj\*" }
106
107
# If there's only one markdown file, append it to the root of the TOC
0 commit comments