Compare commits

..

9 Commits

Author SHA1 Message Date
caishi 211f20eef4 config.js修改 2026-03-13 16:30:27 +08:00
caishi a074a9c25c Merge branch 'master' of https://gitlink.org.cn/Gitlink/gitlink_help_center 2026-03-12 16:50:55 +08:00
caishi a094f464ec 中英文切换 2026-03-12 16:50:40 +08:00
caishi 3422b32669 修改介绍页面,增加快捷入口 2026-03-12 16:44:34 +08:00
caishi b74b92f66e 主题引入报错+node版本更新 2026-03-10 14:54:23 +08:00
xxq250 96231da6fe Update oauth2.md 2025-10-15 14:58:21 +08:00
xxq250 8b39d43460 Update oauth2.md 2025-10-15 14:57:28 +08:00
xxq250 75ce405ca7 ADD file via upload 2025-10-15 14:57:06 +08:00
xxq250 4f085a23e2 Add oauth2.md 2025-10-15 14:56:21 +08:00
54 changed files with 14343 additions and 23870 deletions

View File

@ -16,11 +16,11 @@ workflow:
name: docker镜像构建
task: docker_image_build@1.6.0
input:
docker_username: ((likecheng.docker_user))
docker_password: ((likecheng.docker_pswd))
image_name: '"crpi-hrmn1kvspzg9vrn0.cn-hangzhou.personal.cr.aliyuncs.com/likecheng/likecheng"'
docker_username: ((nudt_devops.nudt_devops))
docker_password: ((nudt_devops.nudt_devops))
image_name: '"registry.cn-guangzhou.aliyuncs.com/nudt_devops/gitlink_help_center_group5"'
image_tag: '"latest"'
registry_address: '"crpi-hrmn1kvspzg9vrn0.cn-hangzhou.personal.cr.aliyuncs.com"'
registry_address: '"registry.cn-guangzhou.aliyuncs.com"'
docker_file: '"Dockerfile"'
docker_build_path: '"."'
workspace: git_clone_0.git_path
@ -32,9 +32,9 @@ workflow:
name: git clone
task: git_clone@1.2.9
input:
username: ((likecheng.user))
password: ((likecheng.pswd))
remote_url: '"https://gitlink.org.cn/likecheng22/gitlink_help_center.git"'
username: ((ganshihao21.ganshihao21_user))
password: ((ganshihao21.ganshihao21))
remote_url: '"https://gitlink.org.cn/shuaihao/gitlink_help_center.git"'
ref: '"refs/heads/master"'
commit_id: '""'
depth: 1
@ -44,14 +44,14 @@ workflow:
name: ssh执行命令
task: ssh_cmd@1.1.1
input:
ssh_pass: ((likecheng.ssh_pswd))
ssh_ip: '"116.62.22.98"'
ssh_pass: ((ssh_key.ssh_key))
ssh_ip: '"47.96.164.145"'
ssh_port: '"22"'
ssh_user: '"root"'
ssh_cmd: '" docker stop group10_helpcenter ; docker rm group10_helpcenter && docker pull
crpi-hrmn1kvspzg9vrn0.cn-hangzhou.personal.cr.aliyuncs.com/likecheng/likecheng:latest
&& docker run -d -p 3000:3000 --name group10_helpcenter
crpi-hrmn1kvspzg9vrn0.cn-hangzhou.personal.cr.aliyuncs.com/likecheng/likecheng:latest"'
ssh_cmd: '"docker stop ghc_group5 && docker rm ghc_group5 && docker pull
registry.cn-guangzhou.aliyuncs.com/nudt_devops/gitlink_help_center_group5:latest
&& docker run -d -p 3000:3000 --name ghc_group5
registry.cn-guangzhou.aliyuncs.com/nudt_devops/gitlink_help_center_group5:latest"'
needs:
- docker_image_build_0
- ref: end
@ -59,3 +59,4 @@ workflow:
task: end
needs:
- ssh_cmd_0

View File

@ -0,0 +1,62 @@
version: 2
name: 未命名项目
description: ""
global:
concurrent: 1
trigger:
webhook: gitlink@1.0.0
event:
- ref: push
ruleset-operator: AND
workflow:
- ref: start
name: 开始
task: start
- ref: git_clone_0
name: git clone
task: git_clone@1.2.9
input:
username: ((ganshihao21.ganshihao21_user))
password: ((ganshihao21.ganshihao21))
remote_url: '"https://gitlink.org.cn/ganshihao21/reposync.git"'
ref: '"refs/heads/master"'
commit_id: '""'
depth: 1
needs:
- start
- ref: docker_image_build_0
name: docker镜像构建
task: docker_image_build@1.6.0
input:
docker_username: ((nudt_devops.nudt_devops))
docker_password: ((nudt_devops.nudt_devops))
image_name: '"registry.cn-guangzhou.aliyuncs.com/nudt_devops/reposync_group5"'
image_tag: '"latest"'
registry_address: '"registry.cn-guangzhou.aliyuncs.com"'
docker_file: '"Dockerfile"'
docker_build_path: '"."'
workspace: git_clone_0.git_path
image_push: true
build_args: '""'
needs:
- git_clone_0
- ref: ssh_cmd_0
name: ssh执行命令
task: ssh_cmd@1.1.1
input:
ssh_pass: ((ssh_key.ssh_key))
ssh_ip: '"47.96.164.145"'
ssh_port: '"22"'
ssh_user: '"root"'
ssh_cmd: '"docker stop abc_group5 && docker rm abc_group5 && docker pull
registry.cn-guangzhou.aliyuncs.com/nudt_devops/reposync_group5:latest &&
docker run -d -p 3000:3000 --name abc_group5
registry.cn-guangzhou.aliyuncs.com/nudt_devops/reposync_group5:latest"'
needs:
- docker_image_build_0
- ref: end
name: 结束
task: end
needs:
- ssh_cmd_0

View File

@ -84,7 +84,8 @@
![gitlink logo](/img/gitlink_logo.png)
```
初始化项目
node v20.x npm install --force
## 前端build成中文 i18n中可编辑对应中文内容
```
npm run build -- --locale zh-CN

View File

@ -1,5 +1,8 @@
const lightCodeTheme = require('prism-react-renderer/themes/github');
const darkCodeTheme = require('prism-react-renderer/themes/dracula');
//Docusaurus v3写法
// const { themes } = require('prism-react-renderer');
// import { themes } from 'prism-react-renderer';
import("@easyops-cn/docusaurus-search-local").PluginOptions;
/** @type {import('@docusaurus/types').DocusaurusConfig} */
@ -8,15 +11,14 @@ module.exports = {
tagline:'gitlink帮助中心',
url: 'https://help.gitlink.org.cn/',
baseUrl: '/',
onBrokenLinks: 'ignore',
onBrokenMarkdownLinks: 'ignore',
onBrokenLinks: 'warn',
onBrokenMarkdownLinks: 'warn',
favicon: 'img/icon.ico',
organizationName: 'luffyZh', // Usually your GitHub org/user name.
projectName: 'docusaurus-luffyzh-website', // Usually your repo name.
scripts: [],
// stylesheets: ['styles/dark-mode.css'],
themeConfig: {
docs:{
sidebar:{
hideable:true,
@ -29,7 +31,7 @@ module.exports = {
{property:"og:image:alt",content:"GitLink确实开源是中国计算机学会CCF官方指定的开源创新服务平台 - Gitlink/forgeplusGitLink确实开源是中国计算机学会CCF官方指定的开源创新服务平台 for gitlink Gitlink/forgeplus for git"}
],
prism: {
theme: lightCodeTheme,
theme:lightCodeTheme,
darkTheme: darkCodeTheme,
},
zoom: {
@ -70,12 +72,26 @@ module.exports = {
position: 'left',
dropdownActiveClassDisabled: true
},
// 收藏按钮已移除
// {
// type: 'html',
// type: 'localeDropdown',
// position: 'right',
// value: '<span id="favorite-btn-placeholder"></span>',
// },
// {
// position: 'right',
// component:'./src/components/LanguageSwitcher',
// label:"language",
// to:"#"
// items: [
// {
// label: 'English',
// onClick: () => handleLocaleChange('en')
// },
// {
// label: '简体中文',
// onClick: () => handleLocaleChange('zh-Hans')
// }
// ]
// }
// {
// href: 'https://github.com/boxyhq',
// position: 'right',
@ -158,7 +174,7 @@ module.exports = {
{
docs: {
// sidebarPath: require.resolve('./sidebars.js'),
editUrl:'https://www.gitlink.org.cn/likecheng22/gitlink_help_center/tree/master/',
editUrl:'https://www.gitlink.org.cn/Gitlink/gitlink_help_center/tree/master/',
routeBasePath: "/",
},
theme: {
@ -173,25 +189,30 @@ module.exports = {
require.resolve("@easyops-cn/docusaurus-search-local"),
{
// ... Your options.
// `hashed` is recommended as long-term-cache of index file is possible.
hashed: true,
language: ["en", "zh"],
highlightSearchTermsOnTargetPage: true,
blogRouteBasePath: "/",
explicitSearchResultPath: true,
// For Docs using Chinese, The `language` is recommended to set to:
// ```
// language: ["en", "zh"],
// ```
},
],
],
i18n: {
defaultLocale: 'zh-cn',
locales: ['zh-cn', 'en'],
locales: ['zh-cn','en'],
localeConfigs: {
'zh-cn': {
label: '简体中文',
direction: 'ltr',
},
en: {
label: 'English',
direction: 'ltr',
htmlLang: 'en',
},
'zh-cn': {
label: '简体中文',
htmlLang: 'zh-CN',
},
},
},

@ -1 +0,0 @@
Subproject commit 5a1a2a3d79a17d53d396f2264b2c9c23cda7eb43

View File

@ -1,308 +0,0 @@
{
"theme.ErrorPageContent.title": {
"message": "This page crashed.",
"description": "The title of the fallback page when the page crashed"
},
"theme.NotFound.title": {
"message": "Page Not Found",
"description": "The title of the 404 page"
},
"theme.NotFound.p1": {
"message": "We could not find what you were looking for.",
"description": "The first paragraph of the 404 page"
},
"theme.NotFound.p2": {
"message": "Please contact the owner of the site that linked you to the original URL and let them know their link is broken.",
"description": "The 2nd paragraph of the 404 page"
},
"theme.admonition.note": {
"message": "note",
"description": "The default label used for the Note admonition (:::note)"
},
"theme.admonition.tip": {
"message": "tip",
"description": "The default label used for the Tip admonition (:::tip)"
},
"theme.admonition.danger": {
"message": "danger",
"description": "The default label used for the Danger admonition (:::danger)"
},
"theme.admonition.info": {
"message": "info",
"description": "The default label used for the Info admonition (:::info)"
},
"theme.admonition.caution": {
"message": "caution",
"description": "The default label used for the Caution admonition (:::caution)"
},
"theme.blog.archive.title": {
"message": "Archive",
"description": "The page & hero title of the blog archive page"
},
"theme.blog.archive.description": {
"message": "Archive",
"description": "The page & hero description of the blog archive page"
},
"theme.BackToTopButton.buttonAriaLabel": {
"message": "Scroll back to top",
"description": "The ARIA label for the back to top button"
},
"theme.blog.paginator.navAriaLabel": {
"message": "Blog list page navigation",
"description": "The ARIA label for the blog pagination"
},
"theme.blog.paginator.newerEntries": {
"message": "Newer Entries",
"description": "The label used to navigate to the newer blog posts page (previous page)"
},
"theme.blog.paginator.olderEntries": {
"message": "Older Entries",
"description": "The label used to navigate to the older blog posts page (next page)"
},
"theme.blog.post.paginator.navAriaLabel": {
"message": "Blog post page navigation",
"description": "The ARIA label for the blog posts pagination"
},
"theme.blog.post.paginator.newerPost": {
"message": "Newer Post",
"description": "The blog post button label to navigate to the newer/previous post"
},
"theme.blog.post.paginator.olderPost": {
"message": "Older Post",
"description": "The blog post button label to navigate to the older/next post"
},
"theme.blog.post.plurals": {
"message": "One post|{count} posts",
"description": "Pluralized label for \"{count} posts\". Use as much plural forms (separated by \"|\") as your language support (see https://www.unicode.org/cldr/cldr-aux/charts/34/supplemental/language_plural_rules.html)"
},
"theme.blog.tagTitle": {
"message": "{nPosts} tagged with \"{tagName}\"",
"description": "The title of the page for a blog tag"
},
"theme.tags.tagsPageLink": {
"message": "View All Tags",
"description": "The label of the link targeting the tag list page"
},
"theme.colorToggle.ariaLabel": {
"message": "Switch between dark and light mode (currently {mode})",
"description": "The ARIA label for the navbar color mode toggle"
},
"theme.colorToggle.ariaLabel.mode.dark": {
"message": "dark mode",
"description": "The name for the dark color mode"
},
"theme.colorToggle.ariaLabel.mode.light": {
"message": "light mode",
"description": "The name for the light color mode"
},
"theme.docs.breadcrumbs.navAriaLabel": {
"message": "Breadcrumbs",
"description": "The ARIA label for the breadcrumbs"
},
"theme.docs.DocCard.categoryDescription": {
"message": "{count} items",
"description": "The default description for a category card in the generated index about how many items this category includes"
},
"theme.docs.paginator.navAriaLabel": {
"message": "Docs pages",
"description": "The ARIA label for the docs pagination"
},
"theme.docs.paginator.previous": {
"message": "Previous",
"description": "The label used to navigate to the previous doc"
},
"theme.docs.paginator.next": {
"message": "Next",
"description": "The label used to navigate to the next doc"
},
"theme.docs.tagDocListPageTitle.nDocsTagged": {
"message": "One doc tagged|{count} docs tagged",
"description": "Pluralized label for \"{count} docs tagged\". Use as much plural forms (separated by \"|\") as your language support (see https://www.unicode.org/cldr/cldr-aux/charts/34/supplemental/language_plural_rules.html)"
},
"theme.docs.tagDocListPageTitle": {
"message": "{nDocsTagged} with \"{tagName}\"",
"description": "The title of the page for a docs tag"
},
"theme.docs.versionBadge.label": {
"message": "Version: {versionLabel}"
},
"theme.docs.versions.unreleasedVersionLabel": {
"message": "This is unreleased documentation for {siteTitle} {versionLabel} version.",
"description": "The label used to tell the user that he's browsing an unreleased doc version"
},
"theme.docs.versions.unmaintainedVersionLabel": {
"message": "This is documentation for {siteTitle} {versionLabel}, which is no longer actively maintained.",
"description": "The label used to tell the user that he's browsing an unmaintained doc version"
},
"theme.docs.versions.latestVersionSuggestionLabel": {
"message": "For up-to-date documentation, see the {latestVersionLink} ({versionLabel}).",
"description": "The label used to tell the user to check the latest version"
},
"theme.docs.versions.latestVersionLinkLabel": {
"message": "latest version",
"description": "The label used for the latest version suggestion link label"
},
"theme.common.editThisPage": {
"message": "Edit this page",
"description": "The link label to edit the current page"
},
"theme.common.headingLinkTitle": {
"message": "Direct link to {heading}",
"description": "Title for link to heading"
},
"theme.lastUpdated.atDate": {
"message": " on {date}",
"description": "The words used to describe on which date a page has been last updated"
},
"theme.lastUpdated.byUser": {
"message": " by {user}",
"description": "The words used to describe by who the page has been last updated"
},
"theme.lastUpdated.lastUpdatedAtBy": {
"message": "Last updated{atDate}{byUser}",
"description": "The sentence used to display when a page has been last updated, and by who"
},
"theme.navbar.mobileVersionsDropdown.label": {
"message": "Versions",
"description": "The label for the navbar versions dropdown on mobile view"
},
"theme.tags.tagsListLabel": {
"message": "Tags:",
"description": "The label alongside a tag list"
},
"theme.AnnouncementBar.closeButtonAriaLabel": {
"message": "Close",
"description": "The ARIA label for close button of announcement bar"
},
"theme.blog.sidebar.navAriaLabel": {
"message": "Blog recent posts navigation",
"description": "The ARIA label for recent posts in the blog sidebar"
},
"theme.CodeBlock.copied": {
"message": "Copied",
"description": "The copied button label on code blocks"
},
"theme.CodeBlock.copyButtonAriaLabel": {
"message": "Copy code to clipboard",
"description": "The ARIA label for copy code blocks button"
},
"theme.CodeBlock.copy": {
"message": "Copy",
"description": "The copy button label on code blocks"
},
"theme.CodeBlock.wordWrapToggle": {
"message": "Toggle word wrap",
"description": "The title attribute for toggle word wrapping button of code block lines"
},
"theme.DocSidebarItem.toggleCollapsedCategoryAriaLabel": {
"message": "Toggle the collapsible sidebar category '{label}'",
"description": "The ARIA label to toggle the collapsible sidebar category"
},
"theme.NavBar.navAriaLabel": {
"message": "Main",
"description": "The ARIA label for the main navigation"
},
"theme.navbar.mobileLanguageDropdown.label": {
"message": "Languages",
"description": "The label for the mobile language switcher dropdown"
},
"theme.TOCCollapsible.toggleButtonLabel": {
"message": "On this page",
"description": "The label used by the button on the collapsible TOC component"
},
"theme.blog.post.readMore": {
"message": "Read More",
"description": "The label used in blog post item excerpts to link to full blog posts"
},
"theme.blog.post.readMoreLabel": {
"message": "Read more about {title}",
"description": "The ARIA label for the link to full blog posts from excerpts"
},
"theme.docs.breadcrumbs.home": {
"message": "Home page",
"description": "The ARIA label for the home page in the breadcrumbs"
},
"theme.blog.post.readingTime.plurals": {
"message": "One min read|{readingTime} min read",
"description": "Pluralized label for \"{readingTime} min read\". Use as much plural forms (separated by \"|\") as your language support (see https://www.unicode.org/cldr/cldr-aux/charts/34/supplemental/language_plural_rules.html)"
},
"theme.docs.sidebar.collapseButtonTitle": {
"message": "Collapse sidebar",
"description": "The title attribute for collapse button of doc sidebar"
},
"theme.docs.sidebar.collapseButtonAriaLabel": {
"message": "Collapse sidebar",
"description": "The title attribute for collapse button of doc sidebar"
},
"theme.docs.sidebar.navAriaLabel": {
"message": "Docs sidebar",
"description": "The ARIA label for the sidebar navigation"
},
"theme.docs.sidebar.closeSidebarButtonAriaLabel": {
"message": "Close navigation bar",
"description": "The ARIA label for close button of mobile sidebar"
},
"theme.docs.sidebar.expandButtonTitle": {
"message": "Expand sidebar",
"description": "The ARIA label and title attribute for expand button of doc sidebar"
},
"theme.docs.sidebar.expandButtonAriaLabel": {
"message": "Expand sidebar",
"description": "The ARIA label and title attribute for expand button of doc sidebar"
},
"theme.navbar.mobileSidebarSecondaryMenu.backButtonLabel": {
"message": "← Back to main menu",
"description": "The label of the back button to return to main menu, inside the mobile navbar sidebar secondary menu (notably used to display the docs sidebar)"
},
"theme.docs.sidebar.toggleSidebarButtonAriaLabel": {
"message": "Toggle navigation bar",
"description": "The ARIA label for hamburger menu button of mobile navigation"
},
"theme.SearchBar.noResultsText": {
"message": "No results"
},
"theme.SearchBar.seeAll": {
"message": "See all results"
},
"theme.SearchBar.seeAllOutsideContext": {
"message": "See results outside {context}"
},
"theme.SearchBar.searchInContext": {
"message": "See all results in {context}"
},
"theme.SearchBar.label": {
"message": "Search",
"description": "The ARIA label and placeholder for search button"
},
"theme.SearchPage.existingResultsTitle": {
"message": "Search results for \"{query}\"",
"description": "The search page title for non-empty query"
},
"theme.SearchPage.emptyResultsTitle": {
"message": "Search the documentation",
"description": "The search page title for empty query"
},
"theme.SearchPage.searchContext.everywhere": {
"message": "everywhere"
},
"theme.SearchPage.documentsFound.plurals": {
"message": "1 document found|{count} documents found",
"description": "Pluralized label for \"{count} documents found\". Use as much plural forms (separated by \"|\") as your language support (see https://www.unicode.org/cldr/cldr-aux/charts/34/supplemental/language_plural_rules.html)"
},
"theme.SearchPage.noResultsText": {
"message": "No documents were found",
"description": "The paragraph for empty search result"
},
"theme.ErrorPageContent.tryAgain": {
"message": "Try again",
"description": "The label of the button to try again rendering when the React error boundary captures an error"
},
"theme.common.skipToMainContent": {
"message": "Skip to main content",
"description": "The skip to content label used for accessibility, allowing to rapidly navigate to main content with keyboard tab/enter navigation"
},
"theme.tags.tagsPageTitle": {
"message": "Tags",
"description": "The title of the tag list page"
}
}

View File

@ -1,14 +0,0 @@
{
"title": {
"message": "Blog",
"description": "The title for the blog used in SEO"
},
"description": {
"message": "Blog",
"description": "The description for the blog used in SEO"
},
"sidebar.title": {
"message": "Recent posts",
"description": "The label for the left sidebar"
}
}

View File

@ -1,54 +0,0 @@
{
"version.label": {
"message": "Next",
"description": "The label for version current"
},
"sidebar.defaultSidebar.category.快速开始": {
"message": "快速开始",
"description": "The label for category 快速开始 in sidebar defaultSidebar"
},
"sidebar.defaultSidebar.category.代码库管理": {
"message": "代码库管理",
"description": "The label for category 代码库管理 in sidebar defaultSidebar"
},
"sidebar.defaultSidebar.category.组织管理": {
"message": "组织管理",
"description": "The label for category 组织管理 in sidebar defaultSidebar"
},
"sidebar.defaultSidebar.category.疑修(Issue)": {
"message": "疑修(Issue)",
"description": "The label for category 疑修(Issue) in sidebar defaultSidebar"
},
"sidebar.defaultSidebar.category.合并请求(PR)": {
"message": "合并请求(PR)",
"description": "The label for category 合并请求(PR) in sidebar defaultSidebar"
},
"sidebar.defaultSidebar.category.DevOps引擎(Engine)": {
"message": "DevOps引擎(Engine)",
"description": "The label for category DevOps引擎(Engine) in sidebar defaultSidebar"
},
"sidebar.defaultSidebar.category.维基(Wiki)": {
"message": "维基(Wiki)",
"description": "The label for category 维基(Wiki) in sidebar defaultSidebar"
},
"sidebar.defaultSidebar.category.机器人(Bot)": {
"message": "机器人(Bot)",
"description": "The label for category 机器人(Bot) in sidebar defaultSidebar"
},
"sidebar.defaultSidebar.category.第三方服务": {
"message": "第三方服务",
"description": "The label for category 第三方服务 in sidebar defaultSidebar"
},
"sidebar.defaultSidebar.category.通知": {
"message": "通知",
"description": "The label for category 通知 in sidebar defaultSidebar"
},
"sidebar.defaultSidebar.category.个人主页建站": {
"message": "个人主页建站",
"description": "The label for category 个人主页建站 in sidebar defaultSidebar"
},
"sidebar.defaultSidebar.category.服务协议": {
"message": "服务协议",
"description": "The label for category 服务协议 in sidebar defaultSidebar"
}
}

View File

@ -1,54 +0,0 @@
{
"version.label": {
"message": "1.1.0",
"description": "The label for version 1.1.0"
},
"sidebar.defaultSidebar.category.快速开始": {
"message": "快速开始",
"description": "The label for category 快速开始 in sidebar defaultSidebar"
},
"sidebar.defaultSidebar.category.代码库管理": {
"message": "代码库管理",
"description": "The label for category 代码库管理 in sidebar defaultSidebar"
},
"sidebar.defaultSidebar.category.组织管理": {
"message": "组织管理",
"description": "The label for category 组织管理 in sidebar defaultSidebar"
},
"sidebar.defaultSidebar.category.疑修(Issue)": {
"message": "疑修(Issue)",
"description": "The label for category 疑修(Issue) in sidebar defaultSidebar"
},
"sidebar.defaultSidebar.category.合并请求(PR)": {
"message": "合并请求(PR)",
"description": "The label for category 合并请求(PR) in sidebar defaultSidebar"
},
"sidebar.defaultSidebar.category.DevOps引擎(Engine)": {
"message": "DevOps引擎(Engine)",
"description": "The label for category DevOps引擎(Engine) in sidebar defaultSidebar"
},
"sidebar.defaultSidebar.category.维基(Wiki)": {
"message": "维基(Wiki)",
"description": "The label for category 维基(Wiki) in sidebar defaultSidebar"
},
"sidebar.defaultSidebar.category.机器人(Bot)": {
"message": "机器人(Bot)",
"description": "The label for category 机器人(Bot) in sidebar defaultSidebar"
},
"sidebar.defaultSidebar.category.第三方服务": {
"message": "第三方服务",
"description": "The label for category 第三方服务 in sidebar defaultSidebar"
},
"sidebar.defaultSidebar.category.通知": {
"message": "通知",
"description": "The label for category 通知 in sidebar defaultSidebar"
},
"sidebar.defaultSidebar.category.个人主页建站": {
"message": "个人主页建站",
"description": "The label for category 个人主页建站 in sidebar defaultSidebar"
},
"sidebar.defaultSidebar.category.服务协议": {
"message": "服务协议",
"description": "The label for category 服务协议 in sidebar defaultSidebar"
}
}

View File

@ -1,62 +0,0 @@
{
"link.title.社区": {
"message": "社区",
"description": "The title of the footer links column with title=社区 in the footer"
},
"link.title.支持与服务": {
"message": "支持与服务",
"description": "The title of the footer links column with title=支持与服务 in the footer"
},
"link.title.加入我们": {
"message": "加入我们",
"description": "The title of the footer links column with title=加入我们 in the footer"
},
"link.item.label.网站首页": {
"message": "网站首页",
"description": "The label of footer link with label=网站首页 linking to https://www.gitlink.org.cn"
},
"link.item.label.关于我们": {
"message": "关于我们",
"description": "The label of footer link with label=关于我们 linking to https://www.gitlink.org.cn/aboutus"
},
"link.item.label.教学实践": {
"message": "教学实践",
"description": "The label of footer link with label=教学实践 linking to https://www.gitlink.org.cn/educoder"
},
"link.item.label.合作伙伴": {
"message": "合作伙伴",
"description": "The label of footer link with label=合作伙伴 linking to https://forum.trustie.net/forums/5030/detail"
},
"link.item.label.API文档": {
"message": "API文档",
"description": "The label of footer link with label=API文档 linking to https://forgeplus.trustie.net/docs/api"
},
"link.item.label.Git常用命令": {
"message": "Git常用命令",
"description": "The label of footer link with label=Git常用命令 linking to https://git-scm.com"
},
"link.item.label.引擎使用手册": {
"message": "引擎使用手册",
"description": "The label of footer link with label=引擎使用手册 linking to https://forum.gitlink.org.cn/forums/7487/detail"
},
"link.item.label.服务协议": {
"message": "服务协议",
"description": "The label of footer link with label=服务协议 linking to https://forum.trustie.net/forums/5029/detail"
},
"link.item.label.官网邮箱gitlink@ccf.org.cn": {
"message": "官网邮箱gitlink@ccf.org.cn",
"description": "The label of footer link with label=官网邮箱gitlink@ccf.org.cn linking to https://www.gitlink.org.cn"
},
"link.item.label.QQ群": {
"message": "QQ群",
"description": "The label of footer link with label=QQ群 linking to https://www.gitlink.org.cn"
},
"link.item.label.公众号": {
"message": "公众号",
"description": "The label of footer link with label=公众号 linking to https://www.gitlink.org.cn"
},
"copyright": {
"message": "<p>©Copyright 2025 CCF 开源发展委员会</p><p>Powered by Trustie& IntelliDE 京ICP备13000930号</p>",
"description": "The footer copyright"
}
}

View File

@ -1,10 +0,0 @@
{
"logo.alt": {
"message": "gitlink",
"description": "The alt text of navbar logo"
},
"item.label.帮助中心": {
"message": "帮助中心",
"description": "Navbar item with label 帮助中心"
}
}

47
oauth2.md Normal file
View File

@ -0,0 +1,47 @@
为了构建更好的平台生态环境我们推出了基于OAuth2的API版本。
API 接口使用方式以及Url都参照GitHub为了各位开发者更好的兼容已经存在的第三方应用。
# API 使用条款
未经用户允许,不准爬取或存储用户的资源。
禁止滥用 API请求频率过快将导致请求终止。
OAuth2 认证基本流程
![image](./oauth2.png)
# OAuth2 获取 AccessToken 认证步骤
### 1. 授权码模式
* 应用通过 浏览器 或 Webview 将用户引导到平台三方认证页面上( GET请求
`https://gitlink.org.cn/oauth/authorize?client_id={client_id}&redirect_uri={redirect_uri}&response_type=code`
* 用户对应用进行授权
注意: 如果之前已经授权过的需要跳过授权页面,需要在上面第一步的 URL 加上 scope 参数,且 scope 的值需要和用户上次授权的勾选的一致。如用户在上次授权了user_info。则步骤A 中 GET 请求应为:
`https://gitlink.org.cn/oauth/authorize?client_id={client_id}&redirect_uri={redirect_uri}&response_type=code&scope=user_info`
* 平台认证服务器通过回调地址`{redirect_uri}`将 用户授权码 传递给 应用服务器 或者直接在 Webview 中跳转到携带 用户授权码的回调地址上Webview 直接获取code即可`{redirect_uri}?code=abc&state=xyz`)
* 应用服务器 或 Webview 使用 access_token API 向平台认证服务器发送post请求传入 用户授权码 以及 回调地址( POST请求
注:请求过程建议将 client_secret 放在 Body 中传值,以保证数据安全。
`https://gitlink.org.cn/oauth/token?grant_type=authorization_code&code={code}&client_id={client_id}&redirect_uri={redirect_uri}&client_secret={client_secret}`
* 平台认证服务器返回 access_token
应用通过 access_token 访问 Open API 使用用户数据。
当 access_token 过期后(有效期为一天),你可以通过以下 refresh_token 方式重新获取 access_token POST请求
`https://gitlink.org.cn/oauth/token?grant_type=refresh_token&refresh_token={refresh_token}`
> 注意:如果获取 access_token 返回 403可能是没有设置User-Agent的原因。
详见获取Token时服务端响应状态403是什么情况
### 2. 密码模式
* 用户向客户端提供邮箱地址和密码。客户端将邮箱地址和密码发给平台认证服务器,并向平台认证服务器请求令牌。( POST请求。Content-Type: application/x-www-form-urlencoded
`curl -X POST --data-urlencode "grant_type=password" --data-urlencode "username={email}" --data-urlencode "password={password}" --data-urlencode "client_id={client_id}" --data-urlencode "client_secret={client_secret}" --data-urlencode "scope=user_info" https://gitlink.org.cn/oauth/token`
scope表示权限范围有以下选项请求时使用空格隔开
`user_info` `projects` `pull_requests` `issues` `notes` `keys` `hook groups` `gists` `enterprises`
* 认证服务器返回 access_token
应用通过 access_token 访问 Open API 使用用户数据。

BIN
oauth2.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 135 KiB

28294
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -1,6 +1,6 @@
{
"name": "docusaurus",
"version": "0.0.0",
"version": "3.0.0",
"private": true,
"scripts": {
"docusaurus": "docusaurus",
@ -15,20 +15,20 @@
},
"dependencies": {
"@cmfcmf/docusaurus-search-local": "1.1.0",
"@docusaurus/core": "2.4.1",
"@docusaurus/plugin-client-redirects": "2.4.1",
"@docusaurus/preset-classic": "2.4.1",
"@docusaurus/core": "3.9.2",
"@docusaurus/plugin-client-redirects": "3.9.2",
"@docusaurus/preset-classic": "3.9.2",
"@easyops-cn/docusaurus-search-local": "^0.35.0",
"@mdx-js/react": "1.6.22",
"@mdx-js/react": "^3.1.1",
"@node-rs/jieba": "^1.7.0",
"clsx": "1.2.1",
"docusaurus-gtm-plugin": "0.0.2",
"docusaurus-plugin-image-zoom": "1.0.1",
"html2canvas": "^1.4.1",
"html2pdf.js": "^0.10.3",
"jspdf": "^3.0.1",
"react": "17.0.2",
"react-dom": "17.0.2",
"or": "^0.2.0",
"prism-react-renderer": "^1.3.5",
"prismjs": "^1.30.0",
"react": "18.2.0",
"react-dom": "18.2.0",
"react-modal": "3.16.1"
},
"browserslist": {
@ -44,6 +44,6 @@
]
},
"engines": {
"node": ">=14.18.1 <=18.x"
"node": ">=18.x"
}
}

View File

@ -1,29 +0,0 @@
import React, { useEffect, useState } from 'react';
import Link from '@docusaurus/Link';
import styles from './styles.module.css';
export default function FavoriteDocsFloating() {
const [docs, setDocs] = useState([]);
useEffect(() => {
const favs = JSON.parse(localStorage.getItem('favoriteDocs') || '[]');
setDocs(favs);
const handler = () => {
setDocs(JSON.parse(localStorage.getItem('favoriteDocs') || '[]'));
};
window.addEventListener('storage', handler);
return () => window.removeEventListener('storage', handler);
}, []);
if (!docs.length) return null;
return (
<div className={styles.favFloatingBox}>
<div className={styles.title}>常用文档</div>
<div className={styles.list}>
{docs.map(doc => (
<Link key={doc.permalink} to={doc.permalink} className={styles.link}>
{doc.title}
</Link>
))}
</div>
</div>
);
}

View File

@ -1,43 +0,0 @@
.favFloatingBox {
position: fixed;
right: 20px;
bottom: 140px; /* 比反馈按钮高60px */
z-index: 1001;
min-width: 160px;
max-width: 240px;
background: #fff;
border-radius: 10px;
box-shadow: 0 2px 12px rgba(70,106,255,0.13);
padding: 12px 16px 10px 16px;
font-size: 14px;
color: #222;
display: flex;
flex-direction: column;
align-items: flex-start;
}
.title {
font-weight: 600;
color: #466aff;
margin-bottom: 8px;
font-size: 15px;
}
.list {
display: flex;
flex-direction: column;
gap: 6px;
width: 100%;
}
.link {
color: #466aff;
text-decoration: underline;
cursor: pointer;
word-break: break-all;
transition: color 0.2s;
}
.link:hover {
color: #3355cc;
}

View File

@ -1,79 +0,0 @@
import React, { useState, useEffect } from 'react';
import styles from './styles.module.css';
import { useLocation } from '@docusaurus/router';
export default function Feedback() {
const location = useLocation();
const [likes, setLikes] = useState(0);
const [dislikes, setDislikes] = useState(0);
const [userVote, setUserVote] = useState(null);
// 在组件加载时从localStorage获取数据
useEffect(() => {
const pageKey = location.pathname;
const savedData = localStorage.getItem(`feedback_${pageKey}`);
if (savedData) {
const data = JSON.parse(savedData);
setLikes(data.likes || 0);
setDislikes(data.dislikes || 0);
setUserVote(data.userVote || null);
}
}, [location.pathname]);
// 保存数据到localStorage
const saveData = (newLikes, newDislikes, newUserVote) => {
const pageKey = location.pathname;
localStorage.setItem(`feedback_${pageKey}`, JSON.stringify({
likes: newLikes,
dislikes: newDislikes,
userVote: newUserVote
}));
};
const handleVote = (isLike) => {
if (userVote === null) {
// 第一次投票
const newLikes = isLike ? likes + 1 : likes;
const newDislikes = isLike ? dislikes : dislikes + 1;
setLikes(newLikes);
setDislikes(newDislikes);
setUserVote(isLike);
saveData(newLikes, newDislikes, isLike);
} else if (userVote !== isLike) {
// 改变投票
const newLikes = isLike ? likes + 1 : likes - 1;
const newDislikes = isLike ? dislikes - 1 : dislikes + 1;
setLikes(newLikes);
setDislikes(newDislikes);
setUserVote(isLike);
saveData(newLikes, newDislikes, isLike);
}
};
return (
<div className={styles.feedbackContainer}>
<button
className={`${styles.feedbackButton} ${styles.likeButton} ${userVote === true ? styles.active : ''}`}
onClick={() => handleVote(true)}
title="好评"
aria-label="好评"
>
<svg viewBox="0 0 24 24" width="24" height="24" fill="currentColor">
<path d="M1 21h4V9H1v12zm22-11c0-1.1-.9-2-2-2h-6.31l.95-4.57.03-.32c0-.41-.17-.79-.44-1.06L14.17 1 7.59 7.59C7.22 7.95 7 8.45 7 9v10c0 1.1.9 2 2 2h9c.83 0 1.54-.5 1.84-1.22l3.02-7.05c.09-.23.14-.47.14-.73v-2z"/>
</svg>
<span className={styles.count}>{likes}</span>
</button>
<button
className={`${styles.feedbackButton} ${styles.dislikeButton} ${userVote === false ? styles.active : ''}`}
onClick={() => handleVote(false)}
title="差评"
aria-label="差评"
>
<svg viewBox="0 0 24 24" width="24" height="24" fill="currentColor">
<path d="M15 3H6c-.83 0-1.54.5-1.84 1.22l-3.02 7.05c-.09.23-.14.47-.14.73v2c0 1.1.9 2 2 2h6.31l-.95 4.57-.03.32c0 .41.17.79.44 1.06L9.83 23l6.59-6.59c.36-.36.58-.86.58-1.41V5c0-1.1-.9-2-2-2zm4 0v12h4V3h-4z"/>
</svg>
<span className={styles.count}>{dislikes}</span>
</button>
</div>
);
}

View File

@ -1,76 +0,0 @@
.feedbackContainer {
position: fixed;
left: 50%;
bottom: 20px;
transform: translateX(-50%);
display: flex;
flex-direction: row;
gap: 16px;
z-index: 1000;
}
.feedbackButton {
position: relative;
background-color: var(--ifm-color-primary);
color: white;
border: none;
border-radius: 8px;
width: 44px;
height: 44px;
display: flex;
align-items: center;
justify-content: center;
cursor: pointer;
transition: all 0.3s ease;
padding: 0;
}
.feedbackButton:hover {
background-color: var(--ifm-color-primary-darker);
transform: scale(1.1);
}
.feedbackButton:focus {
outline: none;
box-shadow: 0 0 0 3px rgba(var(--ifm-color-primary-rgb), 0.4);
}
.feedbackButton svg {
width: 24px;
height: 24px;
}
.count {
position: absolute;
bottom: -20px;
left: 50%;
transform: translateX(-50%);
background-color: var(--ifm-color-primary);
color: white;
padding: 2px 6px;
border-radius: 10px;
font-size: 12px;
min-width: 20px;
text-align: center;
}
.likeButton.active {
background-color: #4CAF50;
}
.dislikeButton.active {
background-color: #f44336;
}
/* 暗色主题适配 */
[data-theme='dark'] .feedbackButton {
background-color: var(--ifm-color-primary-darker);
}
[data-theme='dark'] .feedbackButton:hover {
background-color: var(--ifm-color-primary-darkest);
}
[data-theme='dark'] .count {
background-color: var(--ifm-color-primary-darker);
}

View File

@ -1,208 +0,0 @@
import React, { useState } from 'react';
import styles from './styles.module.css';
const MAX_LENGTH = 500;
const AI_API_ENDPOINT = 'https://api.moonshot.cn/v1/chat/completions';
const AI_API_KEY = 'sk-qIIXV0G8hLyXRku8848tL4n2bwx8rf1jrok4LFramQiZQOQ8';
// 处理文本格式,移除 Markdown 符号
const formatText = (text) => {
return text
.replace(/`/g, '') // 移除所有反引号
.replace(/^#+\s*/gm, '') // 移除标题符号
.replace(/\*\*(.*?)\*\*/g, '$1') // 移除加粗符号
.replace(/\*(.*?)\*/g, '$1') // 移除斜体符号
.replace(/\[(.*?)\]\((.*?)\)/g, '$1') // 移除链接符号
.replace(/^\s*[-*+]\s*/gm, '• ') // 将列表符号统一为圆点
.replace(/^\s*\d+\.\s*/gm, '• ') // 将数字列表转换为圆点
.replace(/\n{3,}/g, '\n\n') // 将多个空行替换为两个空行
.trim();
};
const FloatingButtons = () => {
const [showModal, setShowModal] = useState(false);
const [showAIModal, setShowAIModal] = useState(false);
const [feedback, setFeedback] = useState('');
const [aiQuestion, setAiQuestion] = useState('');
const [aiAnswer, setAiAnswer] = useState('');
const [isLoading, setIsLoading] = useState(false);
const handleFeedback = () => {
setShowModal(true);
};
const handleCustomerService = () => {
setShowAIModal(true);
};
const handleClose = () => {
setShowModal(false);
setFeedback('');
};
const handleAIClose = () => {
setShowAIModal(false);
setAiQuestion('');
setAiAnswer('');
};
const handleChange = (e) => {
if (e.target.value.length <= MAX_LENGTH) {
setFeedback(e.target.value);
}
};
const handleAIQuestionChange = (e) => {
setAiQuestion(e.target.value);
};
const handleAISubmit = async (e) => {
e.preventDefault();
if (!aiQuestion.trim()) return;
setIsLoading(true);
try {
const response = await fetch(AI_API_ENDPOINT, {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'Authorization': `Bearer ${AI_API_KEY}`
},
body: JSON.stringify({
model: "moonshot-v1-8k",
messages: [
{
role: "system",
content: "你是一个专业的 GitLink 帮助助手。请用简洁专业的语言回答用户的问题,不要使用任何 Markdown 格式符号(如 #、*、` 等)。"
},
{
role: "user",
content: aiQuestion
}
],
temperature: 0.7,
max_tokens: 2000
})
});
if (!response.ok) {
const errorData = await response.json();
throw new Error(errorData.error?.message || `HTTP error! status: ${response.status}`);
}
const data = await response.json();
const answer = data.choices[0].message.content;
setAiAnswer(formatText(answer));
} catch (error) {
console.error('AI 问答出错:', error);
setAiAnswer('抱歉,处理您的问题时出现错误,请稍后重试。');
} finally {
setIsLoading(false);
}
};
const handleSubmit = (e) => {
e.preventDefault();
const feedbacks = JSON.parse(localStorage.getItem('feedbacks') || '[]');
feedbacks.push({
content: feedback,
time: new Date().toISOString()
});
localStorage.setItem('feedbacks', JSON.stringify(feedbacks));
alert('感谢您的反馈!');
handleClose();
};
const scrollToBottom = () => {
window.scrollTo({
top: document.documentElement.scrollHeight,
behavior: 'smooth'
});
};
return (
<div className={styles.floatingButtons}>
<button
className={styles.button}
onClick={scrollToBottom}
title="滚动到底部"
aria-label="滚动到底部"
style={{ marginBottom: '10px' }}
>
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M12 20V4M12 20L6 14M12 20L18 14" stroke="#666" strokeWidth="2" strokeLinecap="round" strokeLinejoin="round"/>
</svg>
</button>
<button
className={styles.button}
onClick={handleFeedback}
title="问题反馈"
aria-label="问题反馈"
>
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M4 19V5a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2H7l-3 3z" stroke="#666" strokeWidth="2" fill="none" strokeLinecap="round" strokeLinejoin="round"/>
</svg>
</button>
<button
className={styles.button}
onClick={handleCustomerService}
title="AI 助手"
aria-label="AI 助手"
>
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8zm-1-13h2v6h-2zm0 8h2v2h-2z" fill="#666"/>
</svg>
</button>
{showModal && (
<div className={styles.modalOverlay}>
<div className={styles.modal}>
<button className={styles.closeBtn} onClick={handleClose} title="关闭">×</button>
<h2 className={styles.modalTitle}>意见反馈</h2>
<form onSubmit={handleSubmit} className={styles.form}>
<textarea
className={styles.textarea}
placeholder="请在此处填写您的宝贵意见,若经采纳,我们将通过邮件与您沟通"
value={feedback}
onChange={handleChange}
maxLength={MAX_LENGTH}
rows={7}
/>
<div className={styles.footer}>
<span className={styles.counter}>{feedback.length}/{MAX_LENGTH}</span>
<button type="submit" className={styles.submitBtn}>提交</button>
</div>
</form>
</div>
</div>
)}
{showAIModal && (
<div className={styles.modalOverlay}>
<div className={styles.modal}>
<button className={styles.closeBtn} onClick={handleAIClose} title="关闭">×</button>
<h2 className={styles.modalTitle}>AI 助手</h2>
{aiAnswer && (
<div className={styles.aiAnswerFixed}>
<h3>AI 回答</h3>
<p>{aiAnswer}</p>
</div>
)}
<form onSubmit={handleAISubmit} className={styles.formWithAIFixed}>
<textarea
className={styles.textarea}
placeholder="请输入您的问题AI 助手将为您解答"
value={aiQuestion}
onChange={handleAIQuestionChange}
rows={4}
/>
<button type="submit" className={styles.submitBtn} disabled={isLoading}>
{isLoading ? '思考中...' : '发送问题'}
</button>
</form>
</div>
</div>
)}
</div>
);
};
export default FloatingButtons;

View File

@ -1,214 +0,0 @@
.floatingButtons {
position: fixed;
right: 20px;
bottom: 80px;
z-index: 1000;
display: flex;
flex-direction: row;
gap: 12px;
}
.button {
width: 50px;
height: 50px;
padding: 0;
background-color: #f2f3f5;
color: #666;
border: none;
border-radius: 50%;
cursor: pointer;
font-size: 14px;
transition: all 0.3s ease;
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.12);
display: flex;
align-items: center;
justify-content: center;
line-height: 1;
}
.button:hover {
background-color: #e4e6eb;
transform: translateY(-2px);
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.16);
}
.button:active {
transform: translateY(0);
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.12);
}
.modalOverlay {
position: fixed;
top: 0;
left: 0;
width: 100vw;
height: 100vh;
background: rgba(0,0,0,0.18);
z-index: 2000;
display: flex;
align-items: center;
justify-content: center;
overflow-y: auto;
padding: 20px;
}
.modal {
background: linear-gradient(180deg, #eaf1fb 0%, #fff 100%);
border-radius: 8px;
box-shadow: 0 4px 24px rgba(0,0,0,0.13);
padding: 32px 24px 24px 24px;
min-width: 400px;
max-width: 90vw;
max-height: 90vh;
position: relative;
display: flex;
flex-direction: column;
align-items: stretch;
overflow-y: auto;
}
.closeBtn {
position: sticky;
top: 0;
right: 16px;
background: none;
border: none;
font-size: 28px;
color: #888;
cursor: pointer;
line-height: 1;
z-index: 100;
align-self: flex-end;
margin-bottom: -20px;
}
.modalTitle {
margin: 0 0 20px;
font-size: 20px;
color: #333;
position: sticky;
top: 0;
background: white;
padding: 10px 0;
z-index: 1;
}
.form {
display: flex;
flex-direction: column;
gap: 12px;
}
.textarea {
width: 100%;
min-height: 120px;
resize: vertical;
border: 1px solid #dbe2ea;
border-radius: 6px;
padding: 14px;
font-size: 15px;
color: #222;
background: #fff;
outline: none;
box-sizing: border-box;
}
.textarea::placeholder {
color: #b0b8c7;
}
.footer {
display: flex;
justify-content: space-between;
align-items: center;
margin-top: 4px;
}
.counter {
color: #888;
font-size: 13px;
}
.submitBtn {
background: #466aff;
color: #fff;
border: none;
border-radius: 4px;
padding: 7px 32px;
font-size: 16px;
font-weight: 500;
cursor: pointer;
transition: background 0.2s;
}
.submitBtn:hover {
background: #3355cc;
}
.submitBtn:disabled {
background: #a0a0a0;
cursor: not-allowed;
}
.aiAnswer {
margin-top: 20px;
padding: 16px;
background: #f8f9fa;
border-radius: 6px;
border: 1px solid #e9ecef;
overflow-y: auto;
max-height: 400px;
}
.aiAnswer h3 {
margin: 0 0 10px;
font-size: 16px;
color: #333;
position: sticky;
top: 60px;
background: white;
padding: 10px 0;
z-index: 1;
}
.aiAnswer p {
margin: 0;
font-size: 15px;
line-height: 1.6;
color: #333;
white-space: pre-wrap;
}
.cursor {
display: inline-block;
width: 2px;
height: 1em;
background-color: #466aff;
margin-left: 2px;
animation: blink 1s infinite;
vertical-align: middle;
}
@keyframes blink {
0%, 100% { opacity: 1; }
50% { opacity: 0; }
}
.aiAnswerFixed {
position: sticky;
top: 80px;
background: #f8f9fa;
border-radius: 6px;
border: 1px solid #e9ecef;
margin-bottom: 16px;
padding: 16px;
z-index: 10;
}
.formWithAIFixed {
display: flex;
flex-direction: column;
gap: 12px;
overflow-y: auto;
max-height: 320px;
}

View File

@ -0,0 +1,38 @@
// src/components/LanguageSwitcher.js
import React from 'react';
import { useDocusaurusContext } from '@docusaurus/useDocusaurusContext';
export default function LanguageSwitcher() {
const { i18n } = useDocusaurusContext();
const locales = [
{ code: 'en', label: 'English' },
{ code: 'zh-Hans', label: '简体中文' }
];
return (
<div style={{ marginRight: '1rem' }}>
<select
value={i18n.currentLocale}
onChange={(e) => {
localStorage.setItem('preferredLocale', e.target.value);
window.location.href = `/${e.target.value}/`;
}}
style={{
padding: '0.5rem 1rem',
border: '1px solid #ddd',
borderRadius: '4px',
backgroundColor: 'white',
fontSize: '0.9rem',
cursor: 'pointer',
}}
>
{locales.map((locale) => (
<option key={locale.code} value={locale.code}>
{locale.label}
</option>
))}
</select>
</div>
);
}

View File

@ -1,31 +0,0 @@
import React from 'react';
import styles from './styles.module.css';
export default function ScrollToBottom() {
const scrollToBottom = () => {
window.scrollTo({
top: document.documentElement.scrollHeight,
behavior: 'smooth'
});
};
return (
<button
className={styles.scrollButton}
onClick={scrollToBottom}
title="滚动到底部"
aria-label="滚动到底部"
>
<svg
viewBox="0 0 24 24"
width="24"
height="24"
stroke="currentColor"
strokeWidth="2"
fill="none"
>
<path d="M19 14l-7 7m0 0l-7-7m7 7V3" />
</svg>
</button>
);
}

View File

@ -1,66 +0,0 @@
.scrollButton {
position: fixed;
right: 20px;
top: 50%;
transform: translateY(-50%);
background-color: var(--ifm-color-primary);
color: white;
border: none;
border-radius: 8px;
width: 44px;
height: 44px;
display: flex;
align-items: center;
justify-content: center;
cursor: pointer;
transition: all 0.3s ease;
z-index: 1000;
}
/* 回到顶部的按钮位置 */
.scrollTopButton {
bottom: 20px;
top: auto;
transform: none;
opacity: 0;
animation: fadeIn 0.3s ease forwards;
}
.scrollButton:hover {
background-color: var(--ifm-color-primary-darker);
transform: translateY(-50%) scale(1.1);
}
.scrollTopButton:hover {
transform: scale(1.1);
}
.scrollButton:focus {
outline: none;
box-shadow: 0 0 0 3px rgba(var(--ifm-color-primary-rgb), 0.4);
}
/* 暗色主题适配 */
[data-theme='dark'] .scrollButton {
background-color: var(--ifm-color-primary-darker);
}
[data-theme='dark'] .scrollButton:hover {
background-color: var(--ifm-color-primary-darkest);
}
.scrollButton svg {
width: 20px;
height: 20px;
}
@keyframes fadeIn {
from {
opacity: 0;
transform: translateY(20px);
}
to {
opacity: 1;
transform: translateY(0);
}
}

View File

@ -1,60 +0,0 @@
import React, { useState, useEffect } from 'react';
import styles from './styles.module.css';
const VoteButtons = () => {
const [likes, setLikes] = useState(0);
const [dislikes, setDislikes] = useState(0);
// 在组件加载时从localStorage获取数据
useEffect(() => {
const savedLikes = localStorage.getItem('pageLikes') || '0';
const savedDislikes = localStorage.getItem('pageDislikes') || '0';
setLikes(parseInt(savedLikes));
setDislikes(parseInt(savedDislikes));
}, []);
const handleLike = () => {
const newLikes = likes + 1;
setLikes(newLikes);
localStorage.setItem('pageLikes', newLikes.toString());
};
const handleDislike = () => {
const newDislikes = dislikes + 1;
setDislikes(newDislikes);
localStorage.setItem('pageDislikes', newDislikes.toString());
};
return (
<div className={styles.voteContainer}>
<div className={styles.voteButton}>
<button
onClick={handleLike}
className={styles.button}
title="点赞"
aria-label="点赞"
>
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M14 9V5a3 3 0 0 0-3-3l-4 9v11h11.28a2 2 0 0 0 2-1.7l1.38-9a2 2 0 0 0-2-2.3H14zm-8 4h-2v11h2V13z" stroke="#666" strokeWidth="2" strokeLinecap="round" strokeLinejoin="round"/>
</svg>
</button>
<span className={styles.count}>{likes}</span>
</div>
<div className={styles.voteButton}>
<button
onClick={handleDislike}
className={styles.button}
title="踩"
aria-label="踩"
>
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M10 15v4a3 3 0 0 0 3 3l4-9V2H5.72a2 2 0 0 0-2 1.7l-1.38 9a2 2 0 0 0 2 2.3H10zm8-4h2V0h-2v11z" stroke="#666" strokeWidth="2" strokeLinecap="round" strokeLinejoin="round"/>
</svg>
</button>
<span className={styles.count}>{dislikes}</span>
</div>
</div>
);
};
export default VoteButtons;

View File

@ -1,52 +0,0 @@
.voteContainer {
position: fixed;
bottom: 40px;
left: 50%;
transform: translateX(-50%);
display: flex;
gap: 32px;
z-index: 1000;
background: rgba(255, 255, 255, 0.9);
padding: 12px 24px;
border-radius: 20px;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
.voteButton {
display: flex;
flex-direction: column;
align-items: center;
gap: 4px;
}
.button {
width: 48px;
height: 48px;
padding: 0;
background-color: #f2f3f5;
color: #666;
border: none;
border-radius: 50%;
cursor: pointer;
transition: all 0.3s ease;
display: flex;
align-items: center;
justify-content: center;
}
.button:hover {
background-color: #e4e6eb;
transform: translateY(-2px);
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
.button:active {
transform: translateY(0);
box-shadow: none;
}
.count {
font-size: 14px;
color: #666;
font-weight: 500;
}

View File

@ -16,8 +16,6 @@
--ifm-color-primary-lightest: rgb(146, 224, 208);
--ifm-code-font-size: 95%;
--search-local-modal-background:#1b2440;
--scroll-button-size: 40px;
--scroll-button-border-radius: 50%;
}
.navbar{
background-color: rgba(27, 36, 64, 1);
@ -59,7 +57,6 @@ html[data-theme='dark'] .docusaurus-highlight-code-line {
height: 100%;
display: flex;
flex-direction: column;
justify-content: space-around;
}
.footer__bottom .margin-bottom--sm{
position: absolute;

View File

@ -21,7 +21,7 @@ const IndexPage = () => {
<Layout title={title} description={description}>
<HeroSection
title="Security Building Blocks for Developers"
description="Reduce Time to Market without sacrificing your security posture! BoxyHQ's suite of APIs for security and privacy helps engineering teams build and ship compliant cloud applications faster."
description="Reduce Time to Market without sacrificing your security posture! BoxyHQs suite of APIs for security and privacy helps engineering teams build and ship compliant cloud applications faster."
image="/img/home-hero.svg"
buttons={[
{

View File

@ -1,61 +0,0 @@
import React, { useEffect, useState } from 'react';
import OriginalDocItem from '@theme-original/DocItem';
function getFavoriteDocs() {
try {
return JSON.parse(localStorage.getItem('favoriteDocs')) || [];
} catch {
return [];
}
}
function setFavoriteDocs(docs) {
localStorage.setItem('favoriteDocs', JSON.stringify(docs));
}
export default function DocItemWrapper(props) {
const { content } = props;
const { title, permalink } = content.metadata || {};
const [isFav, setIsFav] = useState(false);
useEffect(() => {
const favs = getFavoriteDocs();
setIsFav(favs.some(doc => doc.permalink === permalink));
}, [permalink]);
const toggleFavorite = () => {
const favs = getFavoriteDocs();
let newFavs;
if (isFav) {
newFavs = favs.filter(doc => doc.permalink !== permalink);
} else {
newFavs = [...favs, { title, permalink }];
}
setFavoriteDocs(newFavs);
setIsFav(!isFav);
};
return (
<div style={{ position: 'relative' }}>
<button
onClick={toggleFavorite}
style={{
position: 'absolute',
top: 16,
right: 24,
zIndex: 10,
background: 'none',
border: '1px solid #466aff',
color: '#466aff',
borderRadius: 4,
padding: '4px 12px',
cursor: 'pointer',
fontSize: 14,
}}
>
{isFav ? '取消常用' : '标注为常用'}
</button>
<OriginalDocItem {...props} />
</div>
);
}

View File

@ -1,16 +0,0 @@
import React from 'react';
import Layout from '@theme-original/Layout';
import FloatingButtons from '@site/src/components/FloatingButtons';
import FavoriteDocsFloating from '@site/src/components/FavoriteDocsFloating';
import VoteButtons from '@site/src/components/VoteButtons';
export default function LayoutWrapper(props) {
return (
<>
<Layout {...props} />
<FavoriteDocsFloating />
<FloatingButtons />
<VoteButtons />
</>
);
}

View File

@ -4,14 +4,14 @@ sidebar_position: 4
---
# 图形流水线
### 基本信息
## 基本信息
可以编辑流水线的名称、描述
同一仓库下的流水线名称不能重复
![vis_workflow1](../../../static/img/engine/vis_workflow1.png)
### 触发器
## 触发器
注:流水线编排时,触发器要放在开始节点之前;目前一条流水线仅添加支持一个触发器
* 定时触发器cron可通过填写cron表达式设置触发的具体时间
@ -20,7 +20,7 @@ sidebar_position: 4
* 事件触发器GitLink_Webhook给出了常见的代码变更事件触发包括推送代码、合并请求、创建标签
![vis_workflow3](../../../static/img/engine/vis_workflow3.png)
### 全局参数
## 全局参数
添加后可在当前流水线中使用
@ -30,7 +30,7 @@ sidebar_position: 4
![vis_workflow5](../../../static/img/engine/vis_workflow5.png)
### 并发执行
## 并发执行
![vis_workflow6](../../../static/img/engine/vis_workflow6.png)
@ -43,7 +43,7 @@ sidebar_position: 4
![vis_workflow8](../../../static/img/engine/vis_workflow8.png)
### 流水线编排
## 流水线编排
每条流水线必须要有一个开始节点、结束节点,至少一个任务节点。支持串行编排和并行编排。

View File

@ -69,6 +69,26 @@ GitLink确实开源是CCF官方指定的开源创新服务平台旨在
<h2 class="text--truncate cardTitle" title="第三方服务">第三方服务</h2>
<p>第三方服务使用及设置[3个文档]</p>
</a></article>
<article class="col col--6 margin-bottom--lg">
<a class="card padding--lg cardContainer" href="/通知/通知简介">
<h2 class="text--truncate cardTitle" title="通知">通知</h2>
<p>通知使用及设置[2个文档]</p>
</a></article>
<article class="col col--6 margin-bottom--lg">
<a class="card padding--lg cardContainer" href="/个人主页建站/站点创建流程">
<h2 class="text--truncate cardTitle" title="个人主页建站">个人主页建站</h2>
<p>个人主页建站使用及设置[2个文档]</p>
</a></article>
<article class="col col--6 margin-bottom--lg">
<a class="card padding--lg cardContainer" href="/平台公告/">
<h2 class="text--truncate cardTitle" title="平台公告">平台公告</h2>
<p>平台公告使用及设置</p>
</a></article>
<article class="col col--6 margin-bottom--lg">
<a class="card padding--lg cardContainer" href="/服务协议/GitLink服务协议">
<h2 class="text--truncate cardTitle" title="服务协议">服务协议</h2>
<p>服务协议使用及设置[1个文档]</p>
</a></article>
</section>
</div>
</div>

View File

@ -1,11 +1,4 @@
---
sidebar_label: '代码提交'
sidebar_position: 3
---
### **1. 代码提交入口**
用户可以通过项目代码库中间的文件下的“上传文件”按键来上传文件。
![](../../../static/img/代码库管理/代码提交/上传文件入口.png)<br/>
### **2. 上传文件**
进入上传文件页面后,如下图所示,拖动文件,选择提交变更的分支的单击”创建项目“按键即可完成创建。
![](../../../static/img/代码库管理/代码提交/上传文件.png)<br/>
---

View File

@ -1,13 +1,4 @@
---
sidebar_label: '分支管理'
sidebar_position: 5
---
### **1. 查看分支**
在代码库栏下,如下图所示,用户可以点击代码库分支从而查看当前项目的所有分支,并且选择对其进行操作。
![](../../../static/img/代码库管理/分支管理/分支管理方式1.jpg)<br/>
### **2. 合并分支**
在“和并请求PR”下点击“新建合并请求”后
![](../../../static/img/代码库管理/分支管理/分支管理方式3.png)<br/>
如下图所示,用户可以选择源分支与目标分支以及填写分支信息后提交分支合并请求。
![](../../../static/img/代码库管理/分支管理/分支管理方式2.png)<br/>
---

View File

@ -1,19 +1,4 @@
---
sidebar_label: '文件管理'
sidebar_position: 4
---
### **1. 文件管理位置**
在代码库界面,可直接对代码库中该分支下的文件进行操作,如下图所示。
![](../../../static/img/代码库管理/文件管理/文件管理入口.png)<br/>
### **2. 进入目录**
点击进入相关目录,找到要编辑的文件,如下图所示。
![](../../../static/img/代码库管理/文件管理/进入文件所在目录.png)<br/>
### **3. 进入文件编辑页面**
在线编辑文件,单击文件,即可进入编辑文件页面,如下图所示。
![](../../../static/img/代码库管理/文件管理/进入文件编辑界面.png)<br/>
### **4. 编辑文件**
编辑界面右侧有三个按钮,分别是“下载”、“编辑”和“删除”,点击下载即可将文件下载到本地,编辑则可在线编辑文档,删除则将文件从代码库中删除,按钮位置如下图所示。
![](../../../static/img/代码库管理/文件管理/文件编辑按钮.png)<br/>
---

View File

@ -3,11 +3,4 @@ sidebar_label: '代码评审'
sidebar_position: 3
---
# 代码评审
### **1. 进入代码评审**
如下图所示,点击“代码评审”按钮可以进入代码评审
![](../../../static/img/PR/进入代码评审.png)<br/>
### **2. 代码评审界面**
如下图所示用户可以在该界面下查看该PR操作要合并的新的代码并对其进行评审。
![](../../../static/img/PR/具体代码评审.png)<br/>
# 代码评审

View File

@ -5,19 +5,19 @@ sidebar_position: 2
# 创建第一个开源项目
### 1. 新建项目
## 1. 新建项目
平台提供了“新建”按钮,用户可以通过点击快速从零开始创建新的公开或者私有项目。
![创建首页](/img/quickstart/create_homepage.png)
### 2. 填写项目信息
## 2. 填写项目信息
填写项目基本信息。
![](/img/quickstart/create_info.png)
### 3. 创建成功
## 3. 创建成功
点击创建项目,创建成功后进入项目主页。

View File

@ -5,19 +5,19 @@ sidebar_position: 5
# 导入GitHub等第三方Git项目
### 1. 导入项目
## 1. 导入项目
在首页选择**导入项目**
![](/img/quickstart/import_homepage.png)
### 2. 填写信息
## 2. 填写信息
填写需要导入的第三方Git项目地址和项目信息如果导入项目为私有仓库则需输入目标平台用户token进行授权。
![](/img/quickstart/import_info.png)
### 3. 授权验证
## 3. 授权验证
在使用GitLink平台导入其他平台如GitHub、Gitee的开源项目时如果项目为私有则无法通过正常途径导入需要输入对应平台有权限的token值进行校验。
@ -25,7 +25,7 @@ sidebar_position: 5
下面将列举一些典型开源平台的token获取方式。
#### GitHub token获取方式
### GitHub token获取方式
1. 登录GitHub账号
@ -57,7 +57,7 @@ sidebar_position: 5
![img](https://forum.gitlink.org.cn/api/attachments/422376)
#### Gitee token获取方式
### Gitee token获取方式
1. 登录Gitee账号
@ -81,7 +81,7 @@ sidebar_position: 5
![img](https://forum.gitlink.org.cn/api/attachments/422375)
### 4. 导入成功
## 4. 导入成功
提示正在从第三方Git项目地址迁移

View File

@ -5,18 +5,18 @@ sidebar_position: 3
# 提交第一行代码
### 1. 编辑代码
# 1. 编辑代码
点击编辑按钮,开始编辑代码。
![](/img/quickstart/first_edit.png)
### 2. 提交代码
# 2. 提交代码
在编辑框中编写代码,编写完成后填写变更信息后提交变更。
![](/img/quickstart/first_commit.png)
### 3. 代码更新成功
## 3. 代码更新成功
提交成功后代码代码更新成功。![](/img/quickstart/first_success.png)

View File

@ -5,7 +5,7 @@ sidebar_position: 4
# 搜索开源项目
### 1. 开源项目页面介绍
## 1. 开源项目页面介绍
项目”模块汇聚和管理了所有 GitLink 平台上的托管项目和镜像项目,用户可以输入项目名称关键字进行搜索,也可以根据项目类别对项目进行筛选。
@ -19,11 +19,11 @@ sidebar_position: 4
用户点击项目名称,即可进入到项目详情,查看和参与开源项目开发。
### 2. 搜索开源项目
## 2. 搜索开源项目
有两处搜索框可以搜索
#### 开源项目搜索框
### 开源项目搜索框
搜索项目:
@ -33,7 +33,7 @@ sidebar_position: 4
![](/img/quickstart/search_result1.png)
#### 菜单栏搜索框
### 菜单栏搜索框
搜索项目:

View File

@ -5,11 +5,11 @@ sidebar_position: 1
# 注册GitLink账号
### 1. 点击**立即注册**按钮
## 1. 点击**立即注册**按钮
![](/img/quickstart/register_homepage.png)
### 2. 填写注册信息
## 2. 填写注册信息
- 手机号注册
@ -19,7 +19,7 @@ sidebar_position: 1
![](/img/quickstart/register_email.png)
### 3. 注册完成
## 3. 注册完成
填写完所需信息后点击注册,注册成功后则进入个人主页

View File

@ -8,12 +8,12 @@ sidebar_position: 1
欢迎使用GitLink平台在您使用GitLink平台前请您认真阅读并遵守《GitLink服务协议》以下简称”本协议”请您务必审慎阅读、充分理解协议的各条款内容。
当您在注册过程中点击查看”看过并同意本服务协议”按照注册流程成功注册为GitLink平台的用户即表示您已充分阅读、理解并完全接受本协议中的全部条款。您承诺接受并遵守本协议的约定届时您不应以未阅读本协议的内容等理由主张本协议无效或本协议中的某些条款无效或要求撤销本协议。
### 一、GitLink平台权利和义务
## 一、GitLink平台权利和义务
1. 尊重用户隐私尊重用户隐私保障用户隐私安全是GitLink平台的一项基本政策
2. 管理平台用户GitLink平台依据国家法律、地方法律和国际法律等的标准以及本行业的规则来管理平台注册用户
3. 处理用户反馈GitLink平台的相关人员会及时处理用户反馈的问题并给予及时回复。
### 二、用户权利和义务
## 二、用户权利和义务
用户在使用GitLink平台的过程中必须遵守如下原则
1. 遵守中国的有关法律和法规;
@ -24,10 +24,10 @@ sidebar_position: 1
6. 不传输任何教唆他人构成犯罪行为的资料;
7. 用户不得故意或者过失损害GitLink平台合法权利和利益。
### 三、关于责任
## 三、关于责任
鉴于网络服务的特殊性用户同意GitLink团队有权在事先通知的情况下变更、中断、升级部分网络服务。GitLink团队不担保网络服务不会中断但承诺在用户可承受的时间内快速恢复服务同时确保用户数据的安全性和可靠性。
### 四、服务条款的修改
## 四、服务条款的修改
GitLink团队保留在必要时对本协议修改的权利一旦发生变动这些条款可由GitLink团队及时更新且毋须另行通知修改后的条款一旦在网页上公布即有效代替原来的服务条款。您可随时查阅最新版服务条款。

View File

@ -3,10 +3,10 @@ sidebar_label: 'WebIDE'
sidebar_position: 9
---
### WebIDE背景
## WebIDE背景
传统的代码托管平台提供了代码仓库的 Git/SVN 的管理可以在平台上做代码浏览、代码评审、缺陷管理、CI 流水线等和代码相关的活动。其中代码浏览、代码评审所用的编辑器组件一般为 CodeMirror代码高亮使用 highlight.js常常只提供了读代码的场景。蚂蚁研发效能部门云研发团队通过自研的 OpenSumi 框架及基于 OpenSumi 框架做的专门针对于 Web IDE无远程容器场景的极速版 Web IDE 框架与内部代码托管平台碰撞出了创新型的、只依赖浏览器的、IDE 风格的代码阅读、代码编写、代码提交、代码运行、代码评审等场景,极大的提高了用户在代码托管平台阅读代码、代码评审、轻研发等场景的效率。本次蚂蚁研发效能云研发团队和 CCF中国计算机学会GitLink 代码托管平台合作,将内部极速版 Web IDE 应用到了 Gitlink 代码托管平台上,解决了长久以来的用户反馈的很多体验问题。
### Web IDE 核心能力
## Web IDE 核心能力
对标有容器的标准版,极速版 IDE 主要在读、写、运行、提交等方面进行了探索:
**1. 读:**
@ -38,7 +38,7 @@ Gitlink 通过实现 Blame 插件,完成了编辑器 Blame 查看的能力:
<center>当前代码行作者、修改日期查看</center>
### 代码评审
## 代码评审
代码评审功能用户长久以来一直反馈以下几个问题:
- 1.语言服务缺失,阅读效率低:缺少代码高亮、提示、跳转、查看引用及大纲功能
@ -55,7 +55,7 @@ Gitlink 通过实现 Blame 插件,完成了编辑器 Blame 查看的能力:
![](/img/di_san_fang/WebIDE/代码评审.png)
<center>代码评审时可修改代码</center>
### Gitlink Web IDE
## Gitlink Web IDE
Gitlink 代码阅读场景虽然接入极速版 IDE 编辑器但文件树、代码搜索、快捷键、IDE 皮肤、等均和平时开发时使用习惯的 IDE 差异较大,更有大部分用户仅仅是为了代码阅读将代码克隆到本地,尽管保证了一致的体验,但整个链路繁琐费时。
基于这个洞察,蚂蚁云研发团队和 Gitlink 推出 Gitlink Web IDE可以一键快速打开 Web IDE 访问阅读项目仓库代码,实现项目与 IDE 的无缝衔接,保持研发同学的日常偏好习惯,同时完美兼容 Gitlink 代码托管平台。更重要的是,通过无容器在浏览器上直接运行一个极速版 IDE确保「秒开」的即时体验。

View File

@ -3,7 +3,7 @@ sidebar_label: "重睛鸟代码溯源"
sidebar_position: 1
---
### 代码分析入口
## 代码分析入口
![](../../../static/img/di_san_fang/重晴鸟代码溯源/代码分析入口.png)<br/>
@ -16,7 +16,7 @@ sidebar_position: 1
<center>项目导航</center><br/>
### 代码分析检测
## 代码分析检测
![](../../../static/img/di_san_fang/重晴鸟代码溯源/代码分析检测.png)<br/>
@ -30,7 +30,7 @@ sidebar_position: 1
2、"新建分析"按钮仅对仓库管理员可见。仓库开发者、观察者、游客访问此页面时,"新建分析"按钮不可见。<br/>
3、点击"新建分析"按钮,需判断是否开启代码分析功能。<br/>
### 分支选择
## 分支选择
![](../../../static/img/di_san_fang/重晴鸟代码溯源/分支选择.png)<br/>
@ -40,7 +40,7 @@ sidebar_position: 1
2、图中检测类型、检测参数均为默认值不允许用户修改此处展示在界面上仅起到提示用户让用户知晓作用。<br/>
3、点击此处“开始检测”即开启基于选中分支的检测新建一个检测列表。<br/>
### 列表展示
## 列表展示
![](../../../static/img/di_san_fang/重晴鸟代码溯源/列表展示.png)<br/>
@ -50,7 +50,7 @@ sidebar_position: 1
2、当新建分析任务正在检测中时检测状态处有百分比进度条展示现有进度。<br/>
3、点击“重新扫描”按钮将弹出一条新建分析的弹窗此弹窗保存所有上次已配置的分支信息检测分支不可修改(分支下拉选中框置灰)。确认新建后,将新增一条检测数据。<br/>
### 结果展示
## 结果展示
![](../../../static/img/di_san_fang/重晴鸟代码溯源/结果展示.png)<br/>
@ -60,7 +60,7 @@ sidebar_position: 1
2、当检测状态为"失败"状态,或当前处于"正在检测"状态时,"查看"按钮将置灰,处于无法点击状态;<br/>
3、结果展示页取代码溯源已有页面嵌入至 GitLink 即可,无需再次设计。<br/>
### 用户操作流程
## 用户操作流程
![](../../../static/img/di_san_fang/重晴鸟代码溯源/用户操作流程.png)<br/>

View File

@ -12,19 +12,19 @@ sidebar_position: 2
![](/img/Org/imageOrg2.png)
### 组织账号
## 组织账号
![](/img/Org/imageOrg4.png)
**注**只能使用以字母、数字开头包含字母、数字、下划线、横杠等长度4到20个字符
### 组织名称与组织描述
## 组织名称与组织描述
![](/img/Org/imageOrg5.png)
**注**:此处为必填项,不得为空
### 可见性
## 可见性
![](/img/Org/imageOrg3.png)

View File

@ -4,20 +4,20 @@ sidebar_position: 3
---
# 组织团队管理
### 创建组织团队
## 创建组织团队
点击组织信息页面中的“新建团队”按钮可以创建属于该组织的团队平台默认创建“Owners”团队成员为组织的创建者
在团队新建页面,输入团队标识、团队名称、团队描述、项目权限以及版本库权限等信息后,点击“新建团队”完成团队的创建。
![](/img/Org/imageOrg9.png)
### 查看组织团队
## 查看组织团队
点击组织信息页面中的某个团队名称可以查看该团队的详细信息,该页面包括团队的名称、描述等信息,此外还会列出该团队关联的成员以及项目。
![](/img/Org/imageOrg8.png)
### 管理组织团队
## 管理组织团队
点击团队信息页面中的“团队设置”按钮可以对团队进行管理

View File

@ -1,21 +1,4 @@
---
sidebar_label: '组织成员管理'
sidebar_position: 4
---
# 成员管理Members Management
在 个人所管理的项目当中的**仓库设置**当中的**成员管理**可以进入成员管理界面
![](/img/Org/imageOrg14.png)
## 成员查询和添加
在成员管理界面当中,可以进行组织成员的查询和添加
![](/img/Org/imageOrg14.png)
## 成员邀请权限设置
管理员可以对邀请成员的权限进行设置
![](/img/Org/imageOrg15.png)
此外,也可以复制邀请链接的方式来更方便地邀请成员加入到项目当中来
**注**:此项功能仅对管理员可见
---

View File

@ -11,7 +11,7 @@ sidebar_position: 1
![](/img/Org/imageOrg6.png)
### 作为组织拥有者
## 作为组织拥有者
有效管理组织,是您的使命。
@ -23,6 +23,6 @@ sidebar_position: 1
平台同时支持组织拥有者管理对数据访问的自定义设置。
### 作为组织成员
## 作为组织成员
您可以通过组织与无限数量的人在多个项目中协作,与志同道合的人一起,通过分工和写作,参与开发流程,发布或处理问题。

View File

@ -2,7 +2,7 @@
sidebar_label: '组织项目管理'
sidebar_position: 5
---
### 创建组织项目
## 创建组织项目
点击组织信息页面中的“新建项目”按钮可以创建属于该组织的托管项目或者镜像项目。

View File

@ -1,15 +1,4 @@
---
sidebar_label: '模板导入及导出'
sidebar_position: 2
---
# 确实开源帮助中心
## 模板的导入及导出管理
#### 1.模板导入
通过点击wiki界面的**导入模板**按钮即可导入本地的txtmarkdown等格式文件进行Wiki文档的创建当前平台此项功能尚在开发测试环节
[](/img/wiki/img4.png)
#### 2.模板导出
当前平台此项功能尚在开发测试环节
<br/>
---

View File

@ -1,23 +1,4 @@
---
sidebar_label: '维基页面管理'
sidebar_position: 1
---
# 确实开源帮助中心
## 维基界面管理
#### 1.维基界面
GitLink项目安排了专门的**维基(Wiki)界面**来展示项目的一些情况
[](/img/wiki/img1.png)
#### 2.创建维基内容
在初始化的维基界面当中点击**创建Wiki文档**或者**导入模板**即可进行Wiki文档的编辑
<br/>
#### 3.进行Wiki文档的编辑
点击**创建Wiki文档**后即跳转到编辑界面,初始内容为空白的文档
[](/img/wiki/img3.png)
也可以通过勾选*添加模板*来进行模板的导入,平台提供的模板包括*周报*和*月报*的格式
[](/img/wiki/img2.png)
完成编辑后点击左下角的的保存即可
---

View File

@ -5,7 +5,7 @@ sidebar_position: 1
# 确实开源帮助中心
### 通知简介
## 通知简介
#### 1.通知类型
GitLink将通知分为“系统通知”和“@我”的两种类型:
* 系统通知包括“我的状态”、“我创建的或负责的”、“我管理的仓库”三种类型的通知:

View File

@ -6,7 +6,7 @@ sidebar_position: 2
# 确实开源帮助中心
### 通知设置
## 通知设置
#### 1.进入通知设置界面
通过点击首页的通知按钮进入通知设置界面;
![](/img/notice/home_notice.png)

8011
yarn.lock

File diff suppressed because it is too large Load Diff