Skip to content

Commit

Permalink
azure-pipelines.yml: Fix gh-pages deploy folder and sphinx doc path.
Browse files Browse the repository at this point in the history
Signed-off-by: Alexandra Trifan <[email protected]>
  • Loading branch information
AlexandraTrifan committed Sep 7, 2021
1 parent c2eecf5 commit 94cab17
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CI/travis/doxygen.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,14 @@ then
pushd ${TOP_DIR}
git fetch --depth 1 origin +refs/heads/gh-pages:gh-pages
git checkout gh-pages
mkdir -p ${TOP_DIR}/python

cp -R ${TOP_DIR}/build/doc/doxygen_doc/html/* ${TOP_DIR}
cp -R ${TOP_DIR}/build/doc/doxygen_doc/python/* ${TOP_DIR}/python

sudo rm -rf ${TOP_DIR}/doc
sudo rm -rf ${TOP_DIR}/glog
sudo rm -rf ${TOP_DIR}/build

# Need to create a .nojekyll file to allow filenames starting with an underscore
# to be seen on the gh-pages site. Therefore creating an empty .nojekyll file.
Expand Down
3 changes: 2 additions & 1 deletion azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,12 +77,13 @@ jobs:
- script: ./CI/travis/make_linux
displayName: "Build"
- task: CopyFiles@2
condition: ne(variables['System.JobName'], 'deploy_doxygen')
inputs:
sourceFolder: '$(Agent.BuildDirectory)/s/build/'
contents: '$(Agent.BuildDirectory)/s/build/?(*.deb|*.rpm)'
targetFolder: '$(Build.ArtifactStagingDirectory)'
- task: PublishPipelineArtifact@1
condition: and(succeeded(), ne(variables['Build.Reason'], 'PullRequest'))
condition: and(succeeded(), ne(variables['Build.Reason'], 'PullRequest'), ne(variables['System.JobName'], 'deploy_doxygen'))
inputs:
targetPath: '$(Build.ArtifactStagingDirectory)'
artifactName: '$(artifactName)'
Expand Down
2 changes: 1 addition & 1 deletion doc/mainpage.dox
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@

In order to use libm2k in Python applications please check the [libm2k Python Bindings API]

[libm2k Python Bindings API]: ../python/html/sphinx/build/html/index.html "libm2k Python Bindings API Sphinx"
[libm2k Python Bindings API]: ./python/html/sphinx/build/html/index.html "libm2k Python Bindings API Sphinx"

@section example Example
The following code shows a simple example on how to use libm2k together with the digital side of ADALM2000.
Expand Down

0 comments on commit 94cab17

Please sign in to comment.