Skip to content

Commit

Permalink
bug:优化说明部分内容 TencentBlueKing#2643
Browse files Browse the repository at this point in the history
* bug:优化说明部分内容 TencentBlueKing#2643

* bug:优化说明部分内容 TencentBlueKing#2643

* bug:优化说明部分内容 TencentBlueKing#2643

* bug:优化说明部分内容 TencentBlueKing#2643

* bug:优化说明部分内容 TencentBlueKing#2643

* bug:优化说明部分内容 TencentBlueKing#2643
  • Loading branch information
lannoy0523 authored Oct 11, 2024
1 parent fde15e1 commit 1abcf1a
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/frontend/.eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@ module.exports = {
RELEASE_MODE: true,
DEVOPS_SITE_URL: true,
SHOW_PROJECT_CONFIG_MENU: true,
SHOW_ANALYST_MENU: true
SHOW_ANALYST_MENU: true,
DOC_URL: true
},
// add your custom rules hered
rules: {
Expand Down
3 changes: 3 additions & 0 deletions src/frontend/devops-repository/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,9 @@
var ADD_FROM_LOGOUT = '__IS_FROM_LOGOUT__' || 'not'
// 区分社区版与内部版 community -> 社区 tencent -> 内部
var RELEASE_MODE = '__BK_REPO_RELEASE_MODE__' || 'community'
// 存放文档中心的url
var DOC_URL = '__BK_REPO_DOCS_FQDN__' ? '__BK_REPO_DOCS_FQDN__/bk--docs--center' : 'bk.tencent.com/docs'

</script>
<script>
const inIframe = self !== top
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -224,9 +224,12 @@
})
},
clickHelps (id) {
const languagePath = this.language === 'zh-cn' ? 'ZH' : 'EN'
const urlHead = document.location.protocol === 'https:' ? 'https://' : 'http://'
const url = urlHead + DOC_URL + '/markdown/' + languagePath + '/Devops/3.0/UserGuide/intro/README.md'
switch (id) {
case 'documentation':
window.open('https://bk.tencent.com/docs/markdown/ZH/Devops/3.0/UserGuide/Services/Console/Console.md', '_blank')
window.open(url, '_blank')
break
case 'releaseNote':
if (this.versionLogs.length > 0) {
Expand Down

0 comments on commit 1abcf1a

Please sign in to comment.