Compare commits

..

4 Commits

Author SHA1 Message Date
caishi b978811153 route 2023-06-29 15:52:12 +08:00
caishi 22b6ca5b96 底部样式 2023-06-29 10:18:19 +08:00
caishi 85ec8ae4e4 搜索框 2023-06-28 18:19:43 +08:00
caishi 4bcb1109a2 color 2023-06-28 10:37:11 +08:00
11 changed files with 32511 additions and 9940 deletions

View File

@ -1,4 +1,5 @@
---
slug: /
sidebar_label: "介绍"
sidebar_position: 1
---
@ -53,7 +54,7 @@ GitLink确实开源是CCF官方指定的开源创新服务平台旨在
<p>DevOps引擎(Engine)使用及设置[6个文档]</p>
</a></article>
<article class="col col--6 margin-bottom--lg">
<a class="card padding--lg cardContainer" href="/docs/维基/维基也面管理">
<a class="card padding--lg cardContainer" href="/docs/维基/模板导入及导出">
<h2 class="text--truncate cardTitle" title="维基">维基</h2>
<p>维基(Wiki)使用及设置[2个文档]</p>
</a></article>
@ -63,7 +64,7 @@ GitLink确实开源是CCF官方指定的开源创新服务平台旨在
<p>Bot市场使用及设置[4个文档]</p>
</a></article>
<article class="col col--6 margin-bottom--lg">
<a class="card padding--lg cardContainer" href="/docs/第三方服务/服务简介">
<a class="card padding--lg cardContainer" href="/docs/第三方服务/跨平台代码同步">
<h2 class="text--truncate cardTitle" title="第三方服务">第三方服务</h2>
<p>第三方服务使用及设置[3个文档]</p>
</a></article>

View File

@ -13,10 +13,6 @@ module.exports = {
organizationName: 'luffyZh', // Usually your GitHub org/user name.
projectName: 'docusaurus-luffyzh-website', // Usually your repo name.
themeConfig: {
algolia: {
apiKey: '0f9f28b9ab9efae89810921a351753b5',
indexName: 'github',
},
navbar: {
title: '',
logo: {
@ -30,44 +26,75 @@ module.exports = {
position: 'left',
label: '帮助中心',
}
],
]
},
footer: {
style: 'dark',
logo:{
src:"img/gitlink.png"
},
links: [
{
title: 'Docs',
title: '社区',
items: [
{
label: '文档',
to: '/docs/intro',
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: 'Blog',
title: '支持与服务',
items: [
{
label: '博客',
to: '/blog',
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: '更多',
title: '加入我们',
items: [
{
label: '掘金',
href: 'https://juejin.cn/user/96412752681079'
label: '官网邮箱gitlink@ccf.org.cn',
to:"https://www.gitlink.org.cn"
},
{
label: 'GitHub',
href: 'https://github.com/luffzh/docusaurus-luffyzh-website',
label:'QQ群',
to:'https://www.gitlink.org.cn'
},
{
label:'公众号',
to:'https://www.gitlink.org.cn'
}
],
},
],
copyright: `<p>©Copyright 2023 CCF 开源发展委员会</p><p>Powered by Trustie& IntelliDE 京ICP备13000930号</p>`,
copyright: `<p>©Copyright ${new Date().getFullYear()} CCF 开源发展委员会</p><p>Powered by Trustie& IntelliDE 京ICP备13000930号</p>`,
},
prism: {
theme: lightCodeTheme,
@ -84,6 +111,7 @@ module.exports = {
sidebarPath: require.resolve('./sidebars.js'),
//此为网页左下的Edit this page 链接地址
editUrl:'https://www.gitlink.org.cn/Gitlink/gitlink_help_center/tree/master/',
routeBasePath: "/",
},
//修饰的css文件格式
theme: {
@ -92,6 +120,14 @@ module.exports = {
},
],
],
plugins: [
[require.resolve('@cmfcmf/docusaurus-search-local'), { // warning: Use '@cmfcmf/docusaurus-search-local' (without the require.resolve) if you use Docusaurus before v2.0.0-alpha.56
indexBlog: true, // whether to index blog pages
indexDocs: true, // whether to index docs pages
indexPages: false, // whether to index static pages
language: "en" // language of your documentation, see next section
}]
],
i18n: {
defaultLocale: 'zh-cn',
locales: ['zh-cn'],

31910
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -15,18 +15,35 @@
"write-heading-ids": "docusaurus write-heading-ids"
},
"dependencies": {
"@cmfcmf/docusaurus-search-local": "^1.1.0",
"@docusaurus/core": "2.0.0-beta.3",
"@docusaurus/preset-classic": "2.0.0-beta.3",
"@docusaurus/theme-search-algolia": "^2.0.0-beta.5",
"@docusaurus/theme-search-algolia": "^2.4.1",
"@mdx-js/react": "^1.6.21",
"@node-rs/jieba": "^1.7.0",
"@svgr/webpack": "^5.5.0",
"@types/lunr": "^2.3.3",
"algoliasearch": "^4.12.0",
"clsx": "^1.1.1",
"file-loader": "^6.2.0",
"nodejieba": "^2.6.0",
"prism-react-renderer": "^1.2.1",
"react": "^17.0.1",
"react-dom": "^17.0.1",
"turbo": "^1.8.2",
"url-loader": "^4.1.1"
},
"devDependencies": {
"@docusaurus/module-type-aliases": "2.0.0-beta.18",
"@testing-library/react": "^13.1.1",
"@tsconfig/docusaurus": "^1.0.5",
"@types/jest": "^27.4.1",
"css-loader": "^6.8.1",
"jest": "^27.5.1",
"react-scripts": "^5.0.1",
"style-loader": "^3.3.3",
"typescript": "^4.6.3"
},
"browserslist": {
"production": [
">0.5%",

View File

@ -7,7 +7,7 @@
/* You can override the default Infima variables here. */
:root {
--ifm-color-primary: #25c2a0;
--ifm-color-primary: #466aff;
--ifm-color-primary-dark: rgb(33, 175, 144);
--ifm-color-primary-darker: rgb(31, 165, 136);
--ifm-color-primary-darkest: rgb(26, 136, 112);
@ -43,3 +43,93 @@ html[data-theme=light] .menu{
html[data-theme='dark'] .docusaurus-highlight-code-line {
background-color: rgba(0, 0, 0, 0.3);
}
.footer{
height: 473px;
position: relative;
background: #1e1e1e;
}
.container{
height: 100%;
display: flex;
flex-direction: column;
justify-content: space-around;
}
.footer__bottom .margin-bottom--sm{
position: absolute;
margin-top: -150px;
top:50%
}
.footer__links .footer__title{
height: 25px;
font-size: 18px;
font-weight: 600;
color: #fff;
line-height: 25px;
margin-bottom: 20px;
}
.footer__links .footer__col:last-child .footer__items:last-child{
display: flex;
flex-wrap: wrap;
}
.footer__links .footer__col:last-child .footer__items:last-child .footer__item{
width: 50%;
}
.footer__links .footer__col:last-child .footer__items:last-child .footer__item:nth-child(2){
background-image: url(../../static/img/gitlink-qq.png);
background-size: 100% 100%;
height: 90px;
width: 90px;
background-color: #fff;
border-radius: 4px;
position: relative;
}
.footer__links .footer__col:last-child .footer__items:last-child .footer__item:nth-child(3){
background-image: url(../../static/img/gongzhong.png);
background-size: 100% 100%;
height: 90px;
width: 90px;
background-color: #fff;
border-radius: 4px;
position: relative;
margin-left: 34px;
}
.footer__links .footer__col:last-child .footer__items:last-child .footer__item:nth-child(2) a,
.footer__links .footer__col:last-child .footer__items:last-child .footer__item:nth-child(3) a{
position: absolute;
top: 95px;
left: 50%;
margin-left: -17px;
}
.footer__links .footer__col:last-child .footer__items:last-child .footer__item:first-child{
width: 100%;
}
.container .footer__links{
margin-left: 420px;
}
.container .footer__links .footer__col .footer__item{
color: #bdc2d1;
font-size: 14px;
font-weight: 400;
line-height: 20px;
height: 20px;
margin-bottom: 15px;
}
.footer__bottom .margin-bottom--sm img{
width: 300px;
max-width: unset;
}
.container .footer__copyright{
position: absolute;
width: 100%;
left: 0px;
font-size: 12px;
font-weight: 400;
color: #bdc2d1;
line-height: 28px;
padding: 15px 0;
text-align: center;
background-color: #1b212c;
}
.container .footer__copyright p{
margin-bottom: 0px!important;
}

View File

@ -10,6 +10,7 @@
text-align: center;
position: relative;
overflow: hidden;
background-color: #25c2a0;
}
@media screen and (max-width: 966px) {

11
src/theme/SearchBar.js Normal file
View File

@ -0,0 +1,11 @@
/**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
// By default, the classic theme does not provide any SearchBar implementation
// If you swizzled this file, it is your responsibility to provide an implementation
// Tip: swizzle the SearchBar from the Algolia theme for inspiration:
// npm run swizzle @docusaurus/theme-search-algolia SearchBar
export {default} from '@docusaurus/Noop';

BIN
static/img/gitlink-qq.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.1 KiB

BIN
static/img/gongzhong.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.7 KiB

10343
yarn.lock

File diff suppressed because it is too large Load Diff