1 Star 0 Fork 0

LCUI 开发 / 网站

加入 Gitee
与超过 1400万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
docusaurus.config.js 4.31 KB
一键复制 编辑 原始数据 按行查看 历史
// @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");
/** @type {import('@docusaurus/types').Config} */
const config = {
title: "LCUI",
tagline: "The C library for user interfaces",
favicon: "img/favicon.png",
// Set the production url of your site here
url: "https://lcui.org",
// Set the /<baseUrl>/ pathname under which your site is served
// For GitHub pages deployment, it is often '/<projectName>/'
baseUrl: "/",
// GitHub pages deployment config.
// If you aren't using GitHub pages, you don't need these.
organizationName: "lcui-dev", // Usually your GitHub org/user name.
projectName: "website", // Usually your repo name.
onBrokenLinks: "throw",
onBrokenMarkdownLinks: "warn",
// Even if you don't use internalization, you can use this field to set useful
// metadata like html lang. For example, if your site is Chinese, you may want
// to replace "en" with "zh-Hans".
i18n: {
defaultLocale: "zh-Hans",
locales: ["en", "zh-Hans"],
},
presets: [
[
"classic",
/** @type {import('@docusaurus/preset-classic').Options} */
({
docs: {
sidebarPath: require.resolve("./sidebars.js"),
// Please change this to your repo.
// Remove this to remove the "edit this page" links.
editUrl: "https://github.com/lcui-dev/website/tree/main/docs",
versions: {
current: {
label: `Next 🚧`,
},
},
},
blog: {
showReadingTime: true,
// Please change this to your repo.
// Remove this to remove the "edit this page" links.
editUrl: "https://github.com/lcui-dev/website/tree/main/docs",
},
theme: {
customCss: require.resolve("./src/css/custom.css"),
},
}),
],
],
plugins: ["docusaurus-plugin-sass"],
customFields: {
description:
"An open source UI toolkit for building cross-platform desktop apps.",
},
themeConfig:
/** @type {import('@docusaurus/preset-classic').ThemeConfig} */
({
// Replace with your project's social card
image: "img/docusaurus-social-card.jpg",
navbar: {
title: "LCUI",
logo: {
alt: "LCUI Logo",
src: "img/logo.png",
},
items: [
{
type: "docSidebar",
sidebarId: "docsSidebar",
position: "left",
label: "指南",
},
{
type: "docSidebar",
sidebarId: "tutorialSidebar",
position: "left",
label: "教程",
},
{
type: "docSidebar",
sidebarId: "rfcSidebar",
label: "意见征集",
position: "left",
},
{ to: "/blog", label: "博客", position: "left" },
{
href: "https://github.com/lcui-dev/website",
label: "GitHub",
position: "right",
},{
type: 'docsVersionDropdown',
position: 'right',
},
{
type: "localeDropdown",
position: "right",
},
],
},
footer: {
style: "light",
links: [
{
title: "Docs",
items: [
{
label: "Tutorials",
to: "/docs/next/tutorials/todolist",
},
],
},
{
title: "More",
items: [
{
label: "Blog",
to: "/blog",
},
{
label: "GitHub",
href: "https://github.com/lcui-dev/website",
},
{
label: "Gitee",
href: "https://gitee.com/lcui-dev/website",
},
],
},
],
copyright: `Copyright © ${new Date().getFullYear()} LC's Software. Built with Docusaurus.`,
},
prism: {
theme: lightCodeTheme,
darkTheme: darkCodeTheme,
additionalLanguages: ["c", "cpp", "diff", "bash", "css", "scss", "sass", "yaml", "lua"],
},
}),
};
module.exports = config;
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/lcui-dev/website.git
git@gitee.com:lcui-dev/website.git
lcui-dev
website
网站
master

搜索帮助