diff --git a/docs/intro.md b/docs/intro.md index de016e1..28b82ed 100644 --- a/docs/intro.md +++ b/docs/intro.md @@ -70,6 +70,11 @@ GitLink(确实开源)是CCF官方指定的开源创新服务平台,旨在

第三方服务使用及设置[3个文档]

+ +

回到主页

+

回到gitlink主界面开始探索

+
+

通知

通知简介及设置[2个文档]

diff --git a/docs/代码库管理/代码提交.md b/docs/代码库管理/代码提交.md index 5c810d1..9881d7b 100644 --- a/docs/代码库管理/代码提交.md +++ b/docs/代码库管理/代码提交.md @@ -1,4 +1,25 @@ ---- -sidebar_label: '代码提交' -sidebar_position: 3 ---- \ No newline at end of file + +--- +sidebar_label: '代码提交' +sidebar_position: 3 +--- + + +## GitLink 代码提交 + +- **提交者**:geekchen +- **日期**:2024.5.27 + +## 一、直接在网页上提交代码: +![](../../static/img/代码提交1.png)
+ **接着:** +![](../../static/img/代码提交2.png)
+## 二、通过git将本地代码文件上传(可单个文件,可多个文件构成的文件夹) [非代码亦可上传] +**在对应目录下打开git bash,输入以下命令:** +git add +[你要提交的代码文件] +git commit -m "xxx" [xxx为你自己备注的提交信息] +git push +**示意图如下:** +![](../../static/img/代码提交3-1.png)
+ + \ No newline at end of file diff --git a/docusaurus.config.js b/docusaurus.config.js index 6b38a8b..74d29d2 100644 --- a/docusaurus.config.js +++ b/docusaurus.config.js @@ -1,175 +1,170 @@ -const lightCodeTheme = require('prism-react-renderer/themes/github'); -const darkCodeTheme = require('prism-react-renderer/themes/dracula'); -import("@easyops-cn/docusaurus-search-local").PluginOptions; - -/** @type {import('@docusaurus/types').DocusaurusConfig} */ -module.exports = { - title: 'gitlink', - tagline:'gitlink帮助中心', - url: 'https://help.gitlink.org.cn/', - baseUrl: '/', - onBrokenLinks: 'ignore', - onBrokenMarkdownLinks: 'ignore', - 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: { - metadata:[ - {name:"Keywords",content:"Gitlink,forgeplus,GitLink,gitLink,GitLink,gitlink,帮助中心"}, - {name:"hostname",content:"gitlink.org.cn"}, - {property:"og:site_name",content:"GitLink"}, - {property:"og:image:alt",content:"GitLink(确实开源)是中国计算机学会CCF官方指定的开源创新服务平台 - Gitlink/forgeplus:GitLink(确实开源)是中国计算机学会CCF官方指定的开源创新服务平台 for gitlink Gitlink/forgeplus for git"} - ], - prism: { - theme: lightCodeTheme, - darkTheme: darkCodeTheme, - }, - zoom: { - selector: '.markdown :not(em) > img', - config: { - background: { - light: 'rgb(255, 255, 255)', - dark: 'rgb(50, 50, 50)', - }, - }, - }, - colorMode: { - defaultMode: 'light', - disableSwitch: false, - respectPrefersColorScheme: true, - }, - navbar: { - style:"dark", - title: '', - logo: { - // width: '32px', - // height: '32px', - alt: 'gitlink', - src: 'img/gitlink.png', - href:"https://www.gitlink.org.cn/" - // srcDark: 'img/logo-dark.png', - }, - items: [ - { - type: 'doc', - docId: 'intro', - position: 'left', - label: '帮助中心' - }, - // { - // href: 'https://github.com/boxyhq', - // position: 'right', - // className: 'header-github-link', - // }, - ], - }, - footer: { - style: 'dark', - logo:{ - src:"img/gitlink.png" - }, - links: [ - { - title: '社区', - items: [ - { - label: '网站首页', - to: 'https://www.gitlink.org.cn', - }, - { - label: '关于我们', - to: 'https://www.gitlink.org.cn/aboutus', - }, - { - label: '教学实践', - to: 'https://www.gitlink.org.cn/educoder', - }, - { - label: '合作伙伴', - to: 'https://forum.trustie.net/forums/5030/detail', - }, - ], - }, - { - title: '支持与服务', - items: [ - { - label: 'API文档', - to: 'https://forgeplus.trustie.net/docs/api', - }, - { - label: 'Git常用命令', - to: 'https://git-scm.com', - }, - { - label: '引擎使用手册', - to: 'https://forum.gitlink.org.cn/forums/7487/detail', - }, - { - label: '服务协议', - to: 'https://forum.trustie.net/forums/5029/detail', - }, - ], - }, - { - title: '加入我们', - items: [ - { - label: '官网邮箱:gitlink@ccf.org.cn', - to:"https://www.gitlink.org.cn" - }, - { - label:'QQ群', - to:'https://www.gitlink.org.cn' - }, - { - label:'公众号', - to:'https://www.gitlink.org.cn' - } - ], - }, - ], - copyright: `

©Copyright ${new Date().getFullYear()} CCF 开源发展委员会

Powered by Trustie& IntelliDE 京ICP备13000930号

`, - }, - }, - presets: [ - [ - '@docusaurus/preset-classic', - { - docs: { - // sidebarPath: require.resolve('./sidebars.js'), - editUrl:'https://www.gitlink.org.cn/Gitlink/gitlink_help_center/tree/master/', - routeBasePath: "/", - }, - theme: { - customCss: require.resolve('./src/css/custom.css'), - }, - }, - ], - ], - themes: [ - // ... Your other themes. - [ - 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'], - }, -}; +const lightCodeTheme = require('prism-react-renderer/themes/github'); +const darkCodeTheme = require('prism-react-renderer/themes/dracula'); +import("@easyops-cn/docusaurus-search-local").PluginOptions; + +/** @type {import('@docusaurus/types').DocusaurusConfig} */ +module.exports = { + title: 'gitlink', + tagline:'gitlink帮助中心', + url: 'https://help.gitlink.org.cn/', + baseUrl: '/', + onBrokenLinks: 'ignore', + onBrokenMarkdownLinks: 'ignore', + 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: { + metadata:[ + {name:"Keywords",content:"Gitlink,forgeplus,GitLink,gitLink,GitLink,gitlink,帮助中心"}, + {name:"hostname",content:"gitlink.org.cn"}, + {property:"og:site_name",content:"GitLink"}, + {property:"og:image:alt",content:"GitLink(确实开源)是中国计算机学会CCF官方指定的开源创新服务平台 - Gitlink/forgeplus:GitLink(确实开源)是中国计算机学会CCF官方指定的开源创新服务平台 for gitlink Gitlink/forgeplus for git"} + ], + prism: { + theme: lightCodeTheme, + darkTheme: darkCodeTheme, + }, + zoom: { + selector: '.markdown :not(em) > img', + config: { + background: { + light: 'rgb(255, 255, 255)', + dark: 'rgb(50, 50, 50)', + }, + }, + }, + colorMode: { + defaultMode: 'light', + disableSwitch: false, + respectPrefersColorScheme: true, + }, + navbar: { + style:"dark", + title: '', + logo: { + // width: '32px', + // height: '32px', + alt: 'gitlink', + src: 'img/gitlink.png', + href:"https://www.gitlink.org.cn/" + // srcDark: 'img/logo-dark.png', + }, + items: [ + { + type: 'doc', + docId: 'intro', + position: 'left', + label: '帮助中心' + }, + ], + }, + footer: { + style: 'dark', + logo:{ + src:"img/gitlink.png" + }, + links: [ + { + title: '社区', + items: [ + { + label: '网站首页', + to: 'https://www.gitlink.org.cn', + }, + { + label: '关于我们', + to: 'https://www.gitlink.org.cn/aboutus', + }, + { + label: '教学实践', + to: 'https://www.gitlink.org.cn/educoder', + }, + { + label: '合作伙伴', + to: 'https://forum.trustie.net/forums/5030/detail', + }, + ], + }, + { + title: '支持与服务', + items: [ + { + label: 'API文档', + to: 'https://forgeplus.trustie.net/docs/api', + }, + { + label: 'Git常用命令', + to: 'https://git-scm.com', + }, + { + label: '引擎使用手册', + to: 'https://forum.gitlink.org.cn/forums/7487/detail', + }, + { + label: '服务协议', + to: 'https://forum.trustie.net/forums/5029/detail', + }, + ], + }, + { + title: '加入我们', + items: [ + { + label: '官网邮箱:gitlink@ccf.org.cn', + to:"https://www.gitlink.org.cn" + }, + { + label:'QQ群', + to:'https://www.gitlink.org.cn' + }, + { + label:'公众号', + to:'https://www.gitlink.org.cn' + } + ], + }, + ], + copyright: `

©Copyright ${new Date().getFullYear()} CCF 开源发展委员会

Powered by Trustie& IntelliDE 京ICP备13000930号

`, + }, + }, + presets: [ + [ + '@docusaurus/preset-classic', + { + docs: { + // sidebarPath: require.resolve('./sidebars.js'), + editUrl:'https://www.gitlink.org.cn/Gitlink/gitlink_help_center/tree/master/', + routeBasePath: "/", + }, + theme: { + customCss: require.resolve('./src/css/custom.css'), + }, + }, + ], + ], + themes: [ + // ... Your other themes. + [ + 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'], + }, +}; diff --git a/static/img/gitee.svg b/static/img/gitee.svg new file mode 100644 index 0000000..9ed065a --- /dev/null +++ b/static/img/gitee.svg @@ -0,0 +1,17 @@ + + + + logo-black + Created with Sketch. + + \ No newline at end of file diff --git a/static/img/github.png b/static/img/github.png new file mode 100644 index 0000000..bbd96b4 Binary files /dev/null and b/static/img/github.png differ diff --git a/static/img/代码提交1.png b/static/img/代码提交1.png new file mode 100644 index 0000000..4219c57 Binary files /dev/null and b/static/img/代码提交1.png differ diff --git a/static/img/代码提交2.png b/static/img/代码提交2.png new file mode 100644 index 0000000..1720bb9 Binary files /dev/null and b/static/img/代码提交2.png differ diff --git a/static/img/代码提交3-1.png b/static/img/代码提交3-1.png new file mode 100644 index 0000000..899fcc3 Binary files /dev/null and b/static/img/代码提交3-1.png differ