代码拉取完成,页面将自动刷新
同步操作将从 华科开放原子开源俱乐部/hust_mirrors 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
// @ts-check
// Note: type annotations allow type checking and IDEs autocompletion
const lightCodeTheme = require('prism-react-renderer/themes/github');
const darkCodeTheme = require('prism-react-renderer/themes/dracula');
const mirrorConfig = require('./mirrors.config');
/** @type {import('@docusaurus/types').Config} */
const config = {
title: mirrorConfig.title,
favicon: 'img/favicon.png',
// Set the production url of your site here
url: mirrorConfig.url,
// Set the /<baseUrl>/ pathname under which your site is served
// For GitHub pages deployment, it is often '/<projectName>/'
baseUrl: '/',
onBrokenLinks: 'throw',
onBrokenMarkdownLinks: 'warn',
i18n: {
defaultLocale: 'zh-Hans',
locales: ['zh-Hans', 'en'],
},
presets: [
[
'classic',
/** @type {import('@docusaurus/preset-classic').Options} */
({
docs: {
sidebarPath: require.resolve('./sidebars.js'),
remarkPlugins: [require('./plugin/remark/varcode'), require('./plugin/remark/cliAd')],
// Please change this to your repo.
// Remove this to remove the "edit this page" links.
editUrl:
'https://gitee.com/dzm91_hust/hust-mirrors/blob/master/'
},
blog: {
showReadingTime: true,
// Please change this to your repo.
// Remove this to remove the "edit this page" links.
editUrl:
'https://gitee.com/dzm91_hust/hust-mirrors/blob/master/',
},
theme: {
customCss: require.resolve('./src/css/custom.css'),
},
}),
],
],
themeConfig:
/** @type {import('@docusaurus/preset-classic').ThemeConfig} */
({
// Replace with your project's social card
image: 'img/docusaurus-social-card.jpg',
navbar: {
title: mirrorConfig.mainTitle,
logo: {
alt: mirrorConfig.mainTitle,
src: 'img/logo.svg',
},
items: [
{
type: 'docSidebar',
sidebarId: 'tutorialSidebar',
position: 'left',
label: '帮助',
},
{
to: '/blog',
label: '动态',
position: 'left'
},
{
type: 'localeDropdown',
position: 'right',
},
{
href: 'https://gitee.com/dzm91_hust/hust-mirrors/blob/master/',
label: 'Gitee',
position: 'right',
},
],
},
footer: {
style: 'light',
copyright: `华中科技大学开源镜像站由 华中科技大学网络中心 提供支持。`
},
prism: {
theme: lightCodeTheme,
darkTheme: darkCodeTheme,
},
}),
plugins: [
require('./plugin/fancyindex')
]
};
module.exports = config;
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。