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:
parent
c99717d83d
commit
b816a5ca09
|
@ -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>
|
||||
|
|
|
@ -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())
|
||||
}
|
||||
})
|
||||
|
|
Loading…
Reference in New Issue