This commit is contained in:
eazzy 2024-05-28 19:40:11 +08:00
commit 97eefa6aeb
8 changed files with 217 additions and 179 deletions

View File

@ -70,6 +70,11 @@ GitLink确实开源是CCF官方指定的开源创新服务平台旨在
<p>第三方服务使用及设置[3个文档]</p> <p>第三方服务使用及设置[3个文档]</p>
</a></article> </a></article>
<article class="col col--6 margin-bottom--lg"> <article class="col col--6 margin-bottom--lg">
<a class="card padding--lg cardContainer" href="https://www.gitlink.org.cn/">
<h2 class="text--truncate cardTitle" title="回到主页">回到主页</h2>
<p>回到gitlink主界面开始探索</p>
</a></article>
<article class="col col--6 margin-bottom--lg">
<a class="card padding--lg cardContainer" href="/通知/通知简介"> <a class="card padding--lg cardContainer" href="/通知/通知简介">
<h2 class="text--truncate cardTitle" title="通知">通知</h2> <h2 class="text--truncate cardTitle" title="通知">通知</h2>
<p>通知简介及设置[2个文档]</p> <p>通知简介及设置[2个文档]</p>

View File

@ -1,4 +1,25 @@
---
sidebar_label: '代码提交' ---
sidebar_position: 3 sidebar_label: '代码提交'
--- sidebar_position: 3
---
## GitLink 代码提交
- **提交者**geekchen
- **日期**2024.5.27
## 一、直接在网页上提交代码:
![](../../static/img/代码提交1.png)<br/>
**接着:**
![](../../static/img/代码提交2.png)<br/>
## 二、通过git将本地代码文件上传(可单个文件,可多个文件构成的文件夹) [非代码亦可上传]
**在对应目录下打开git bash,输入以下命令:**
git add +[你要提交的代码文件]
git commit -m "xxx" [xxx为你自己备注的提交信息]
git push
**示意图如下:**
![](../../static/img/代码提交3-1.png)<br/>

View File

@ -1,175 +1,170 @@
const lightCodeTheme = require('prism-react-renderer/themes/github'); const lightCodeTheme = require('prism-react-renderer/themes/github');
const darkCodeTheme = require('prism-react-renderer/themes/dracula'); const darkCodeTheme = require('prism-react-renderer/themes/dracula');
import("@easyops-cn/docusaurus-search-local").PluginOptions; import("@easyops-cn/docusaurus-search-local").PluginOptions;
/** @type {import('@docusaurus/types').DocusaurusConfig} */ /** @type {import('@docusaurus/types').DocusaurusConfig} */
module.exports = { module.exports = {
title: 'gitlink', title: 'gitlink',
tagline:'gitlink帮助中心', tagline:'gitlink帮助中心',
url: 'https://help.gitlink.org.cn/', url: 'https://help.gitlink.org.cn/',
baseUrl: '/', baseUrl: '/',
onBrokenLinks: 'ignore', onBrokenLinks: 'ignore',
onBrokenMarkdownLinks: 'ignore', onBrokenMarkdownLinks: 'ignore',
favicon: 'img/icon.ico', favicon: 'img/icon.ico',
organizationName: 'luffyZh', // Usually your GitHub org/user name. organizationName: 'luffyZh', // Usually your GitHub org/user name.
projectName: 'docusaurus-luffyzh-website', // Usually your repo name. projectName: 'docusaurus-luffyzh-website', // Usually your repo name.
scripts: [], scripts: [],
// stylesheets: ['styles/dark-mode.css'], // stylesheets: ['styles/dark-mode.css'],
themeConfig: { themeConfig: {
metadata:[ metadata:[
{name:"Keywords",content:"Gitlink,forgeplus,GitLink,gitLink,GitLink,gitlink,帮助中心"}, {name:"Keywords",content:"Gitlink,forgeplus,GitLink,gitLink,GitLink,gitlink,帮助中心"},
{name:"hostname",content:"gitlink.org.cn"}, {name:"hostname",content:"gitlink.org.cn"},
{property:"og:site_name",content:"GitLink"}, {property:"og:site_name",content:"GitLink"},
{property:"og:image:alt",content:"GitLink确实开源是中国计算机学会CCF官方指定的开源创新服务平台 - Gitlink/forgeplusGitLink确实开源是中国计算机学会CCF官方指定的开源创新服务平台 for gitlink Gitlink/forgeplus for git"} {property:"og:image:alt",content:"GitLink确实开源是中国计算机学会CCF官方指定的开源创新服务平台 - Gitlink/forgeplusGitLink确实开源是中国计算机学会CCF官方指定的开源创新服务平台 for gitlink Gitlink/forgeplus for git"}
], ],
prism: { prism: {
theme: lightCodeTheme, theme: lightCodeTheme,
darkTheme: darkCodeTheme, darkTheme: darkCodeTheme,
}, },
zoom: { zoom: {
selector: '.markdown :not(em) > img', selector: '.markdown :not(em) > img',
config: { config: {
background: { background: {
light: 'rgb(255, 255, 255)', light: 'rgb(255, 255, 255)',
dark: 'rgb(50, 50, 50)', dark: 'rgb(50, 50, 50)',
}, },
}, },
}, },
colorMode: { colorMode: {
defaultMode: 'light', defaultMode: 'light',
disableSwitch: false, disableSwitch: false,
respectPrefersColorScheme: true, respectPrefersColorScheme: true,
}, },
navbar: { navbar: {
style:"dark", style:"dark",
title: '', title: '',
logo: { logo: {
// width: '32px', // width: '32px',
// height: '32px', // height: '32px',
alt: 'gitlink', alt: 'gitlink',
src: 'img/gitlink.png', src: 'img/gitlink.png',
href:"https://www.gitlink.org.cn/" href:"https://www.gitlink.org.cn/"
// srcDark: 'img/logo-dark.png', // srcDark: 'img/logo-dark.png',
}, },
items: [ items: [
{ {
type: 'doc', type: 'doc',
docId: 'intro', docId: 'intro',
position: 'left', position: 'left',
label: '帮助中心' label: '帮助中心'
}, },
// { ],
// href: 'https://github.com/boxyhq', },
// position: 'right', footer: {
// className: 'header-github-link', style: 'dark',
// }, logo:{
], src:"img/gitlink.png"
}, },
footer: { links: [
style: 'dark', {
logo:{ title: '社区',
src:"img/gitlink.png" items: [
}, {
links: [ label: '网站首页',
{ to: 'https://www.gitlink.org.cn',
title: '社区', },
items: [ {
{ label: '关于我们',
label: '网站首页', to: 'https://www.gitlink.org.cn/aboutus',
to: 'https://www.gitlink.org.cn', },
}, {
{ label: '教学实践',
label: '关于我们', to: 'https://www.gitlink.org.cn/educoder',
to: 'https://www.gitlink.org.cn/aboutus', },
}, {
{ label: '合作伙伴',
label: '教学实践', to: 'https://forum.trustie.net/forums/5030/detail',
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',
title: '支持与服务', },
items: [ {
{ label: 'Git常用命令',
label: 'API文档', to: 'https://git-scm.com',
to: 'https://forgeplus.trustie.net/docs/api', },
}, {
{ label: '引擎使用手册',
label: 'Git常用命令', to: 'https://forum.gitlink.org.cn/forums/7487/detail',
to: 'https://git-scm.com', },
}, {
{ label: '服务协议',
label: '引擎使用手册', to: 'https://forum.trustie.net/forums/5029/detail',
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"
title: '加入我们', },
items: [ {
{ label:'QQ群',
label: '官网邮箱gitlink@ccf.org.cn', to:'https://www.gitlink.org.cn'
to:"https://www.gitlink.org.cn" },
}, {
{ label:'公众号',
label:'QQ群', to:'https://www.gitlink.org.cn'
to:'https://www.gitlink.org.cn' }
}, ],
{ },
label:'公众号', ],
to:'https://www.gitlink.org.cn' copyright: `<p>©Copyright ${new Date().getFullYear()} CCF 开源发展委员会</p><p>Powered by Trustie& IntelliDE 京ICP备13000930号</p>`,
} },
], },
}, presets: [
], [
copyright: `<p>©Copyright ${new Date().getFullYear()} CCF 开源发展委员会</p><p>Powered by Trustie& IntelliDE 京ICP备13000930号</p>`, '@docusaurus/preset-classic',
}, {
}, docs: {
presets: [ // sidebarPath: require.resolve('./sidebars.js'),
[ editUrl:'https://www.gitlink.org.cn/Gitlink/gitlink_help_center/tree/master/',
'@docusaurus/preset-classic', routeBasePath: "/",
{ },
docs: { theme: {
// sidebarPath: require.resolve('./sidebars.js'), customCss: require.resolve('./src/css/custom.css'),
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"),
], {
themes: [ // ... Your options.
// ... Your other themes. // `hashed` is recommended as long-term-cache of index file is possible.
[ hashed: true,
require.resolve("@easyops-cn/docusaurus-search-local"), language: ["en", "zh"],
{ highlightSearchTermsOnTargetPage: true,
// ... Your options. blogRouteBasePath: "/",
// `hashed` is recommended as long-term-cache of index file is possible. explicitSearchResultPath: true,
hashed: true, // For Docs using Chinese, The `language` is recommended to set to:
language: ["en", "zh"], // ```
highlightSearchTermsOnTargetPage: true, // language: ["en", "zh"],
blogRouteBasePath: "/", // ```
explicitSearchResultPath: true, },
// For Docs using Chinese, The `language` is recommended to set to: ],
// ``` ],
// language: ["en", "zh"], i18n: {
// ``` defaultLocale: 'zh-cn',
}, locales: ['zh-cn'],
], },
], };
i18n: {
defaultLocale: 'zh-cn',
locales: ['zh-cn'],
},
};

17
static/img/gitee.svg Normal file

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 14 KiB

BIN
static/img/github.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 36 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 27 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 77 KiB