Skip to content

Commit

Permalink
Merge pull request #12 from OneIdentity/urlrelease/1.0.0
Browse files Browse the repository at this point in the history
The URL replace strings must be in html markup so that other page formatting applies.
  • Loading branch information
taniaengel committed Oct 4, 2022
2 parents d6a44e3 + f6ae72b commit b7201a3
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,16 +43,16 @@ stages:
inputs:
targetType: 'inline'
script: |
# The README.md gets published and is what folks see on the PyPi/project/pysafeguard so the relative paths
# The README.md gets published to PyPi/project/pysafeguard so the relative paths, which work while on GitHub,
# must be updated to absolute paths.
$file = "README.md"
(Get-Content $file).replace('<a href="samples">sample projects</a>', "[sample projects](https://github.com/OneIdentity/PySafeguard/tree/release/$Env:BUILD_SOURCEBRANCHNAME/samples)") | Set-Content $file
(Get-Content $file).replace('<a href="samples\PasswordExternalExample.py">here</a>', "[here](https://github.com/OneIdentity/PySafeguard/tree/release/$Env:BUILD_SOURCEBRANCHNAME/samples/PasswordExternalExample.py)") | Set-Content $file
(Get-Content $file).replace('<a href="samples\PasswordExample.py">here</a>', "[here](https://github.com/OneIdentity/PySafeguard/tree/release/$Env:BUILD_SOURCEBRANCHNAME/samples/PasswordExample.py)") | Set-Content $file
(Get-Content $file).replace('<a href="samples\AnonymousExample.py">here</a>', "[here](https://github.com/OneIdentity/PySafeguard/tree/release/$Env:BUILD_SOURCEBRANCHNAME/samples/AnonymousExample.py)") | Set-Content $file
(Get-Content $file).replace('<a href="samples\SignalRExample.py">here</a>', "[here](https://github.com/OneIdentity/PySafeguard/tree/release/$Env:BUILD_SOURCEBRANCHNAME/samples/SignalRExample.py)") | Set-Content $file
(Get-Content $file).replace('<a href="samples\NewUserExample.py">here</a>', "[here](https://github.com/OneIdentity/PySafeguard/tree/release/$Env:BUILD_SOURCEBRANCHNAME/samples/NewUserExample.py)") | Set-Content $file
(Get-Content $file).replace('<a href="samples">sample projects</a>', "<a href='https://github.com/OneIdentity/PySafeguard/blob/$Env:BUILD_SOURCEBRANCHNAME/samples'>sample projects</a>") | Set-Content $file
(Get-Content $file).replace('<a href="samples\PasswordExternalExample.py">here</a>', "<a href='https://github.com/OneIdentity/PySafeguard/blob/$Env:BUILD_SOURCEBRANCHNAME/samples/PasswordExternalExample.py'>here</a>") | Set-Content $file
(Get-Content $file).replace('<a href="samples\PasswordExample.py">here</a>', "<a href='https://github.com/OneIdentity/PySafeguard/blob/$Env:BUILD_SOURCEBRANCHNAME/samples/PasswordExample.py'>here</a>") | Set-Content $file
(Get-Content $file).replace('<a href="samples\AnonymousExample.py">here</a>', "<a href='https://github.com/OneIdentity/PySafeguard/blob/$Env:BUILD_SOURCEBRANCHNAME/samples/AnonymousExample.py'>here</a>") | Set-Content $file
(Get-Content $file).replace('<a href="samples\SignalRExample.py">here</a>', "<a href='https://github.com/OneIdentity/PySafeguard/blob/$Env:BUILD_SOURCEBRANCHNAME/samples/SignalRExample.py'>here</a>") | Set-Content $file
(Get-Content $file).replace('<a href="samples\NewUserExample.py">here</a>', "<a href='https://github.com/OneIdentity/PySafeguard/blob/$Env:BUILD_SOURCEBRANCHNAME/samples/NewUserExample.py'>here</a>") | Set-Content $file
failOnStderr: true

- script: |
Expand Down

0 comments on commit b7201a3

Please sign in to comment.