Skip to content

Commit

Permalink
No more update root docs index from Azure Pipelines
Browse files Browse the repository at this point in the history
  • Loading branch information
dahlia committed Feb 7, 2019
1 parent 151eae8 commit 031951d
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions azure-pipelines.yml
Expand Up @@ -136,18 +136,5 @@ jobs:
Copy-Item -Path $buildPath -Recurse -Destination $dirName
git add "$dirName"
# The below code updates the root index.html so that it's equivalent
# to the actual index.html in the docs directory. It should be adjusted
# later so that the root index.html is update only when a new tag is
# made.
$addedTags = @"
<meta http-equiv="refresh" content="0;$dirName/">
<base href="$dirName/">
"@
Get-Content "$dirName/index.html" `
| %{$_ -replace "</title>","</title>$addedTags"} `
> index.html
git add index.html
git commit --allow-empty -m "Triggered by $commit"
git push origin gh-pages

0 comments on commit 031951d

Please sign in to comment.