config_tools: open scenario document in new window

open scenario document in new window

Tracked-On: #6691
Signed-off-by: Weiyi Feng <weiyix.feng@intel.com>
This commit is contained in:
Weiyi Feng 2022-06-17 10:10:46 +08:00 committed by acrnsi-robot
parent c99717d83d
commit b816a5ca09
2 changed files with 4 additions and 3 deletions

View File

@ -20,6 +20,7 @@
<p class="d-flex justify-content-between">
<b>Choose a scenario type:</b>
<a class="fs-6"
target="_blank"
:href="'https://projectacrn.github.io/'+version+'/introduction/index.html#static-configuration-based-on-scenarios'">
Learn about scenarios
</a>

View File

@ -9,7 +9,7 @@ let versionMatcher = /release_([\d.]+)/;
let branchVersion = child_process.execSync('git rev-parse --abbrev-ref HEAD').toString()
if (versionMatcher.test(branchVersion)) {
branchVersion = versionMatcher.exec(branchVersion)[1]
branchVersion = versionMatcher.exec(branchVersion)[1].toString()
} else {
branchVersion = 'latest'
}
@ -30,7 +30,7 @@ export default defineConfig({
outDir: path.resolve(__dirname, 'build')
},
define: {
packageVersion: JSON.stringify(packageVersion.toString()),
branchVersion
branchVersion: JSON.stringify(branchVersion),
packageVersion: JSON.stringify(packageVersion.toString())
}
})