Skip to content

Commit

Permalink
Fix gh-pages publish
Browse files Browse the repository at this point in the history
Fix paths/urls, and remove unnecessary files

Signed-off-by: James Taylor <jamest@uk.ibm.com>
  • Loading branch information
jt-nti authored and mbwhite committed Jan 28, 2020
1 parent b6c5b56 commit 6850de7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion ci/azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,8 @@ stages:
**/?(*.md|*.html)
!_jsdoc.json
!_jsdoc/**
!gen/**
!node_modules/**
sourceFolder: '$(Build.SourcesDirectory)/docs'
targetFolder: $(Build.ArtifactStagingDirectory)/gh-pages
cleanTargetFolder: true
Expand All @@ -236,7 +238,7 @@ stages:
mkdir -p $(Build.SourceBranchName)/api
rm -rf $(Build.SourceBranchName)/api/*
cp -r $(Build.ArtifactStagingDirectory)/jsdoc/* $(Build.SourceBranchName)/api
cp -r $(Build.ArtifactStagingDirectory)/jsdoc/gen/* $(Build.SourceBranchName)/api
if [ -d $(Build.ArtifactStagingDirectory)/gh-pages ]; then
find . -maxdepth 1 ! \( -name [.]* -o -name 'gh-pages' -o -name 'master' -o -name 'release-*' \) -exec rm -rf {} \;
cp -r $(Build.ArtifactStagingDirectory)/gh-pages/* .
Expand Down
2 changes: 1 addition & 1 deletion docs/_includes/header.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

<div class="trigger">
{%- for release in site.releases -%}
<a class="page-link" href="https://github.com/hyperledger/fabric-chaincode-java/tree/{{ release }}">{{ release | escape }}</a>
<a class="page-link" href="https://github.com/hyperledger/fabric-chaincode-node/tree/{{ release }}">{{ release | escape }}</a>
{%- endfor -%}
</div>
</nav>
Expand Down

0 comments on commit 6850de7

Please sign in to comment.