1 Star 0 Fork 0

黄微/DocumentHelper

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
docusaurus.config.js 2.85 KB
一键复制 编辑 原始数据 按行查看 历史
Axin 提交于 2023-11-29 10:27 . 新增俄文版文档
/** @type {import('@docusaurus/types').DocusaurusConfig} */
module.exports = {
title: 'itcHUB OS',
tagline: 'itcHUB docs.',
url: 'https://kubevela.io',
baseUrl: '/',
onBrokenLinks: 'throw',
onBrokenMarkdownLinks: 'warn',
favicon: 'img/favicons/favicon.ico',
i18n: {
defaultLocale: 'zh',
locales: ['zh','en','ru'],
path:'i18n',
localeConfigs: {
zh: {
label: '简体中文',
direction:'ltr',
htmlLang: 'zh-CN'
},
en: {
label: 'English',
direction:'ltr',
htmlLang: 'en-US'
},
ru: {
label: 'Pусский',
direction:'ltr',
htmlLang: 'ru'
}
},
},
themes: [
// ... Your other themes.
[
require.resolve("@easyops-cn/docusaurus-search-local"),
/** @type {import("@easyops-cn/docusaurus-search-local").PluginOptions} */
({
// ... Your options.
// `hashed` is recommended as long-term-cache of index file is possible.
hashed: true,
// For Docs using Chinese, The `language` is recommended to set to:
// ```
language: ["en", "zh","ru"],
// ```
}),
],
],
themeConfig: {
announcementBar: {
id: 'start',
content: 'itcHUB start',
},
navbar: {
title: 'itcHUB',
logo: {
alt: 'Ihub Logo',
src: 'img/logo.svg',
srcDark: 'img/logoDark.svg',
},
items: [
{
to: 'docs/getting-started/test',
activeBasePath: 'docs',
label: 'Documentation',
position: 'left',
},
{
type: 'localeDropdown',
position: 'right'
},
],
},
footer: {
copyright: `
<span> Copyright ©Guangdong Baolun Electronics Co., Ltd. </a></span>
`,
},
prism: {
theme: require('prism-react-renderer/themes/dracula'),
additionalLanguages: ['cue', 'powershell'],
},
zoom: {
selector: '.markdown :not(em) > img',
config: {
background: {
light: 'rgb(255, 255, 255)',
dark: 'rgb(50, 50, 50)',
},
},
},
},
presets: [
[
'@docusaurus/preset-classic',
{
docs: {
sidebarPath: require.resolve('./sidebars.js'),
showLastUpdateAuthor: true,
showLastUpdateTime: true,
includeCurrentVersion: true,
remarkPlugins: [require('mdx-mermaid')],
},
gtag: {
trackingID: 'G-5GLR1Y52M7',
anonymizeIP: false,
},
theme: {
customCss: require.resolve('./src/css/custom.scss'),
},
},
],
],
plugins: [
'docusaurus-plugin-sass',
'./src/plugins/faviconCustomPlugin',
require.resolve('docusaurus-plugin-image-zoom'),
],
scripts: [
{
src: '/custom.js',
async: true,
},
],
};
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/stweily/DocumentHelper.git
git@gitee.com:stweily/DocumentHelper.git
stweily
DocumentHelper
DocumentHelper
main

搜索帮助