Skip to content

Commit a333339

Browse files
authored
Merge pull request #910 from MicrosoftDocs/trying-to-fix-publishing
Trying to fix publishing
2 parents 89e289f + b80fead commit a333339

File tree

3 files changed

+216
-26
lines changed

3 files changed

+216
-26
lines changed

FromYmlToTOC-INDEX.ps1

+7-1
Original file line numberDiff line numberDiff line change
@@ -383,7 +383,8 @@ foreach ($source_folder in $source_folders) {
383383
$docfx_dir = [System.IO.Path]::GetFullPath((Join-Path $directory $source_folder))
384384
$docfx_path = [System.IO.Path]::GetFullPath((Join-Path $docfx_dir 'docfx.json'))
385385
$toc_path = [System.IO.Path]::GetFullPath((Join-Path $docfx_dir 'toc.yml'))
386-
$index_path = [System.IO.Path]::GetFullPath((Join-Path $docfx_dir 'index.html.yml'))
386+
$index_html_path = [System.IO.Path]::GetFullPath((Join-Path $docfx_dir 'index.html.yml'))
387+
$index_path = [System.IO.Path]::GetFullPath((Join-Path $docfx_dir 'index.yml'))
387388

388389
Write-Verbose "Found docfx json: $docfx_path"
389390

@@ -434,10 +435,15 @@ profiles:
434435
ForEach-Object -Begin { return $content } -Process { Format-Yaml -object $objects }
435436
| Out-File -filepath $toc_path -encoding utf8
436437

438+
# writing to Index file
439+
ForEach-Object -Begin { return $IndexFilecontent } -Process { Format-Index-Yaml -object $objects }
440+
| Out-File -filepath $index_html_path -encoding utf8
441+
437442
# writing to Index file
438443
ForEach-Object -Begin { return $IndexFilecontent } -Process { Format-Index-Yaml -object $objects }
439444
| Out-File -filepath $index_path -encoding utf8
440445

441446
Write-Verbose "Generated table of contents at $toc_path"
447+
Write-Verbose "Generated Index file at $index_html_path"
442448
Write-Verbose "Generated Index file at $index_path"
443449
}

advocates/index.html.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ profiles:
182182
twitter: "Bob1German"
183183
- uid: advocates.brian-benz
184184
name: Brian Benz
185-
tagline: Java AND AI
185+
tagline: Java / AI / DevOps / Cloud
186186
image:
187187
src: media/profiles/brian-benz.png
188188
alt: "Brian Benz Principal Cloud Developer Advocate"

0 commit comments

Comments
 (0)