You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gitlink_help_center/docusaurus.config.js

139 lines
4.4 KiB

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: {
docs:{
sidebar:{
hideable:true,
},
},
metadata:[
{name:"Keywords",content:"学位论文算法,帮助中心"},
{name:"hostname",content:"gitlink.org.cn"},
{property:"og:site_name",content:"学位论文算法"},
{property:"og:image:alt",content:"学位论文算法"}
],
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: {
hideOnScroll:true,
style:"dark",
title: '',
logo: {
// width: '32px',
// height: '32px',
alt: '学位论文',
src: 'img/xuewei.png',
href:"/"
// srcDark: 'img/logo-dark.png',
},
items: [
{
type: 'doc',
docId: 'intro',
position: 'left',
label: '帮助中心'
},
{
type: 'docsVersionDropdown',
position: 'left',
dropdownActiveClassDisabled: true
},
// {
// href: 'https://github.com/boxyhq',
// position: 'right',
// className: 'header-github-link',
// },
],
},
footer: {
// style: 'dark',
// logo:{
// src:"img/gitlink.png"
// },
// links: [
// {
// title: '关于我们',
// items: [
// {
// label: '根据《“学位论文算法数据库”建设试点方案》及有关要求,计算机学院对第一阶段的数据类型、上传流程及数据描述等进行梳理,明确支持上传的数据类型主要包括代码、数据集、说明文档等,博士研究生应根据具体类型,完成相关数据整理和上传。',
// to:""
// }
// ],
// }
// ],
// copyright: `<p>©Copyright ${new Date().getFullYear()} CCF 开源发展委员会</p><p>Powered by Trustie& IntelliDE 京ICP备13000930号</p>`,
copyright: `<img src="/img/xuewei.png" /><div class="text"><p>关于我们</p><p>根据《“学位论文算法数据库”建设试点方案》及有关要求,计算机学院对第一阶段的数据类型、上传流程及数据描述等进行梳理,明确支持上传的数据类型主要包括代码、数据集、说明文档等,博士研究生应根据具体类型,完成相关数据整理和上传。</p><p style="margin-top:20px">工具下载</p><p><a>git32位安装下载</a><a>git64位安装下载</a></p></div>`,
},
},
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'],
},
};