Skip to content

Commit

Permalink
fix (#3022)
Browse files Browse the repository at this point in the history
  • Loading branch information
czoido authored Feb 24, 2023
1 parent 6f1a090 commit 9554921
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .ci/publish.jenkins
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ def entry_point = """\

node('Linux') {

String prefix = 'https://docs.conan.io/' //params.prefix ?: "${BUILD_URL}artifact/gh-pages/"
String prefix = 'https://docs.conan.io' //params.prefix ?: "${BUILD_URL}artifact/gh-pages/"
stage('Check params') {

echo """
Expand Down Expand Up @@ -212,9 +212,9 @@ node('Linux') {
sh "cp -R ${latest_v2_version} ${latest_v2_folder}"

// sh 'cp src/versions.json versions.json' // TODO: File is not used, remove from 'gh-pages' branch
sh "cp ${latest_v1_folder}/404.html 404.html"
sh "cp ${latest_v2_folder}/404.html 404.html"
String content = readFile('404.html')
String prefixLatest = "${prefix}/${latest_v1_folder}"
String prefixLatest = "${prefix}/${latest_v2_folder}"
content = content.replaceAll('href="_', "href=\"${prefixLatest}/_")
content = content.replaceAll('src="_', "src=\"${prefixLatest}/_")
content = content.replaceAll('alt="_', "alt=\"${prefixLatest}/_")
Expand Down

0 comments on commit 9554921

Please sign in to comment.