mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-06-20 12:42:54 +00:00
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">
|
<p class="d-flex justify-content-between">
|
||||||
<b>Choose a scenario type:</b>
|
<b>Choose a scenario type:</b>
|
||||||
<a class="fs-6"
|
<a class="fs-6"
|
||||||
|
target="_blank"
|
||||||
:href="'https://projectacrn.github.io/'+version+'/introduction/index.html#static-configuration-based-on-scenarios'">
|
:href="'https://projectacrn.github.io/'+version+'/introduction/index.html#static-configuration-based-on-scenarios'">
|
||||||
Learn about scenarios
|
Learn about scenarios
|
||||||
</a>
|
</a>
|
||||||
|
@ -9,7 +9,7 @@ let versionMatcher = /release_([\d.]+)/;
|
|||||||
|
|
||||||
let branchVersion = child_process.execSync('git rev-parse --abbrev-ref HEAD').toString()
|
let branchVersion = child_process.execSync('git rev-parse --abbrev-ref HEAD').toString()
|
||||||
if (versionMatcher.test(branchVersion)) {
|
if (versionMatcher.test(branchVersion)) {
|
||||||
branchVersion = versionMatcher.exec(branchVersion)[1]
|
branchVersion = versionMatcher.exec(branchVersion)[1].toString()
|
||||||
} else {
|
} else {
|
||||||
branchVersion = 'latest'
|
branchVersion = 'latest'
|
||||||
}
|
}
|
||||||
@ -30,7 +30,7 @@ export default defineConfig({
|
|||||||
outDir: path.resolve(__dirname, 'build')
|
outDir: path.resolve(__dirname, 'build')
|
||||||
},
|
},
|
||||||
define: {
|
define: {
|
||||||
packageVersion: JSON.stringify(packageVersion.toString()),
|
branchVersion: JSON.stringify(branchVersion),
|
||||||
branchVersion
|
packageVersion: JSON.stringify(packageVersion.toString())
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
Loading…
Reference in New Issue
Block a user