包详细信息

dumi-theme-lobehub

lobehub2.7kMIT2.0.1

dumi-theme-lobehub is a documentation site theme package designed for dumi2. It provides a more beautiful and user-friendly development and reading experience based on @lobehub/ui

lobehub, dumi, dumi theme

自述文件

Dumi Theme Lobehub

dumi-theme-lobehub is a documentation site theme package designed for Dumi 2.
It provides a more beautiful and user-friendly development and reading experience based on @lobehub/ui
Changelog · Report Bug · Request Feature
<summary><kbd>Table of contents</kbd></summary> #### TOC - ✨ Features - 📦 Installation - 🤯 Usage - ⌨️ Local Development - 🤝 Contributing - 🔗 Links - More Products - Design Resources - Development Resources ####

✨ Features

  • [x] 🤯 Modern Theme Style: This theme package adopts modern design techniques such as gradient colors, frosted glass, lighting effects, and natural animations to present the interface in a more concise and visually appealing way, making the documents more intuitive, readable, and user-friendly.
  • [x] 🌓 One-click Switch between Light and Dark Theme Mode: Based on antd v5, custom algorithms for light and dark themes are provided by default, offering aesthetically pleasing and user-friendly options. Users can choose the theme mode according to their preferences and enjoy a good reading experience in different lighting environments.
  • [x] 💅 Based on Ant Design and CSSinJS: This theme package uses antd as the base component library and implements the style solution using CSSinJS, which helps to better control the style details and improve style reusability and maintainability. The underlying antd-style library provides more flexibility, readability, and ease of maintenance in writing styles.
  • [x] 🪄 Exquisite Syntax Highlighting: This theme package provides accurate and beautiful syntax highlighting. It utilizes modern syntax highlighting libraries like Shiki and Prism, and offers a rich set of code highlighting schemes to enhance code readability.
  • [x] 🧩 Flexible Component Reusability: This theme package provides high flexibility for customizing local themes. It exports premium components from the theme package, which can be reused as independent modules. Developers can freely combine and use these components in the dumi local theme package.
  • [x] 📱 Well-Adapted for Mobile Devices: This theme package is well-adapted for mobile devices. With the flexible style solution based on CSSinJS, multiple layout options are easily implemented. Users can enjoy a consistent and smooth experience across different devices.

📦 Installation

To install dumi-theme-lobehub, run the following command:

$ bun add dumi dumi-theme-lobehub

🤯 Usage

Usage After installation, start the site with dumi, and the theme will be automatically loaded for use.

interface SiteThemeConfig {
  actions?: HeroProps['actions'];
  analytics?: {
    clarity?: {
      projectId: string;
    };
    googleAnalytics?: {
      measurementId: string;
    };
    plausible?: {
      domain: string;
      scriptBaseUrl: string;
    };
  };
  apiHeader?: ApiHeaderConfig | false;
  description?: string;
  docStyle?: 'block' | 'pure';
  features?: FeaturesProps['items'];
  footer?: string | false;
  footerConfig?: FooterConfig;
  giscus?: {
    category: string;
    categoryId: string;
    repo: `${string}/${string}`;
    repoId: string;
  };
  hero?: HeroConfig | Record<string, HeroConfig>;
  hideHomeNav?: boolean;
  logo?: string;
  logoType?: LogoProps['type'];
  metadata?: {
    description?: string;
    icons?: {
      apple?: string;
      icon?: string;
      shortcut?: string;
    };
    manifest?: string;
    openGraph?: {
      description?: string;
      image?: string;
      siteName?: string;
      title?: string;
    };
    title?: string;
    twitter?: {
      description?: string;
      image?: string;
      site?: string;
      title?: string;
    };
  };
  name?: string;
  siteToken?: SiteConfigToken;
  socialLinks?: {
    discord?: `https://discord.gg/${string}`;
    github?: string;
  };
  title?: string;
}

[!NOTE]\ For detailed configuration, please refer to the 📘 Type file / 📘 Example.

⌨️ Local Development

You can use Github Codespaces for online development:

Or clone it for local development:

$ git clone https://github.com/lobehub/dumi-theme-lobehub.git
$ cd dumi-theme-lobehub
$ bun install
$ bun dev

🤝 Contributing

Contributions of all types are more than welcome, if you are interested in contributing code, feel free to check out our GitHub Issues to get stuck in to show us what you’re made of.

🔗 Links

More Products

  • 🤯 Lobe Chat - An open-source, extensible (Function Calling), high-performance chatbot framework. It supports one-click free deployment of your private ChatGPT/LLM web application.
  • 🅰️ Lobe Theme - The modern theme for stable diffusion webui, exquisite interface design, highly customizable UI, and efficiency boosting features.
  • 🧸 Lobe Vidol - Experience the magic of virtual idol creation with Lobe Vidol, enjoy the elegance of our Exquisite UI Design, dance along using MMD Dance Support, and engage in Smooth Conversations.

Design Resources

  • 🍭 Lobe UI - An open-source UI component library for building AIGC web apps.
  • 🥨 Lobe Icons - Popular AI / LLM Model Brand SVG Logo and Icon Collection.
  • 📊 Lobe Charts - React modern charts components built on recharts

Development Resources

  • 🎤 Lobe TTS - A high-quality & reliable TTS/STT library for Server and Browser
  • 🌏 Lobe i18n - Automation ai tool for the i18n (internationalization) translation process.

More Resources


📝 License

Copyright © 2023 LobeHub.
This project is MIT licensed.

更新日志

Changelog

Version 2.0.1

Released on 2025-05-13

🐛 Bug Fixes

  • misc: Unable to override footer configuration.


<summary><kbd>Improvements and Fixes</kbd></summary> #### What's fixed - misc: Unable to override footer configuration, closes #67 (6128758)

Version 2.0.0

Released on 2025-04-28

✨ Features

  • misc: Bump v2 [force major], Migrate to @lobehub/ui v2 [force major].


<summary><kbd>Improvements and Fixes</kbd></summary> #### What's improved - misc: Bump v2 [force major] (20aa3dd) - misc: Migrate to @lobehub/ui v2 [force major], closes #63 (419a5c1)

💥 BREAKING CHANGES

Version 1.16.0

Released on 2025-04-28

✨ Features

  • misc: Migrate to @lobehub/ui v2 [force major].


<summary><kbd>Improvements and Fixes</kbd></summary> #### What's improved - misc: Migrate to @lobehub/ui v2 [force major], closes #63 (419a5c1)

💥 BREAKING CHANGES

Version 1.15.2

Released on 2025-03-26

💄 Styles

  • misc: Updat iframe style.


<summary><kbd>Improvements and Fixes</kbd></summary> #### Styles - misc: Updat iframe style (473a8a9)

Version 1.15.1

Released on 2025-03-23

🐛 Bug Fixes

  • misc: Fix preview markdown style.


<summary><kbd>Improvements and Fixes</kbd></summary> #### What's fixed - misc: Fix preview markdown style (f440301)

Version 1.15.0

Released on 2025-01-08

✨ Features

  • misc: Update @lobehub/ui.


<summary><kbd>Improvements and Fixes</kbd></summary> #### What's improved - misc: Update @lobehub/ui (f25bf28)

Version 1.14.1

Released on 2025-01-07

🐛 Bug Fixes

  • misc: Fix build, Fix build.


<summary><kbd>Improvements and Fixes</kbd></summary> #### What's fixed - misc: Fix build (7859909) - misc: Fix build (f568fa1)

Version 1.14.0

Released on 2025-01-07

✨ Features

  • misc: Update mako.

🐛 Bug Fixes

  • misc: Fix build, Fix deps, Fix release, Pkg Pr New.


<summary><kbd>Improvements and Fixes</kbd></summary> #### What's improved - misc: Update mako (b452097) #### What's fixed - misc: Fix build (f27bd08) - misc: Fix deps (13f0b86) - misc: Fix release (745a901) - misc: Pkg Pr New (af0508f)

Version 1.13.0

Released on 2025-01-07

✨ Features

  • misc: Update remark.


<summary><kbd>Improvements and Fixes</kbd></summary> #### What's improved - misc: Update remark (920b4cb)

Version 1.12.0

Released on 2025-01-07

✨ Features

  • misc: Update antd.


<summary><kbd>Improvements and Fixes</kbd></summary> #### What's improved - misc: Update antd (2f4f6fe)

Version 1.11.0

Released on 2025-01-06

✨ Features

  • misc: Support React 19.


<summary><kbd>Improvements and Fixes</kbd></summary> #### What's improved - misc: Support React 19 (ff82bae)

Version 1.10.10

Released on 2024-12-15

♻ Code Refactoring

  • misc: Update StyleProvider.


<summary><kbd>Improvements and Fixes</kbd></summary> #### Code refactoring - misc: Update StyleProvider (739a7c0)

Version 1.10.9

Released on 2024-11-26

🐛 Bug Fixes

  • misc: Rm manifest.


<summary><kbd>Improvements and Fixes</kbd></summary> #### What's fixed - misc: Rm manifest (e81ce65)

Version 1.10.8

Released on 2024-11-25

🐛 Bug Fixes

  • misc: Try to fix ssr.


<summary><kbd>Improvements and Fixes</kbd></summary> #### What's fixed - misc: Try to fix ssr (3f3f148)

Version 1.10.7

Released on 2024-11-25

🐛 Bug Fixes

  • misc: Try to fix exports.


<summary><kbd>Improvements and Fixes</kbd></summary> #### What's fixed - misc: Try to fix exports (3fedec9)

Version 1.10.6

Released on 2024-11-24

🐛 Bug Fixes

  • misc: Fix plugin.


<summary><kbd>Improvements and Fixes</kbd></summary> #### What's fixed - misc: Fix plugin (9bfe080)

Version 1.10.5

Released on 2024-11-24

🐛 Bug Fixes

  • misc: Fix ssr style.


<summary><kbd>Improvements and Fixes</kbd></summary> #### What's fixed - misc: Fix ssr style (96bd8cf)

Version 1.10.4

Released on 2024-11-24

🐛 Bug Fixes

  • misc: Fix location.


<summary><kbd>Improvements and Fixes</kbd></summary> #### What's fixed - misc: Fix location (2b1b872)

Version 1.10.3

Released on 2024-11-24

🐛 Bug Fixes

  • misc: Fix ssr.


<summary><kbd>Improvements and Fixes</kbd></summary> #### What's fixed - misc: Fix ssr (05e82ea)

Version 1.10.2

Released on 2024-11-24

🐛 Bug Fixes

  • misc: Fix analytics.


<summary><kbd>Improvements and Fixes</kbd></summary> #### What's fixed - misc: Fix analytics (08ebdca)

Version 1.10.1

Released on 2024-11-24

🐛 Bug Fixes

  • misc: Fix helmet.


<summary><kbd>Improvements and Fixes</kbd></summary> #### What's fixed - misc: Fix helmet (c5ffb41)

Version 1.10.0

Released on 2024-11-24

✨ Features

  • misc: Add ld.


<summary><kbd>Improvements and Fixes</kbd></summary> #### What's improved - misc: Add ld (533e9c4)

Version 1.9.2

Released on 2024-11-24

💄 Styles

  • misc: Update SearchResult.


<summary><kbd>Improvements and Fixes</kbd></summary> #### Styles - misc: Update SearchResult (4faa223)

Version 1.9.1

Released on 2024-11-24

🐛 Bug Fixes

  • misc: Fix @@.


<summary><kbd>Improvements and Fixes</kbd></summary> #### What's fixed - misc: Fix @@ (90b5cc0)

Version 1.9.0

Released on 2024-11-24

✨ Features

  • misc: Update theme config.


<summary><kbd>Improvements and Fixes</kbd></summary> #### What's improved - misc: Update theme config (736c3ea)

Version 1.8.6

Released on 2024-11-24

💄 Styles

  • misc: Update api talbe style, Update badge and alert.


<summary><kbd>Improvements and Fixes</kbd></summary> #### Styles - misc: Update api talbe style (2176ebb) - misc: Update badge and alert (8c14fbf)

Version 1.8.5

Released on 2024-11-24

🐛 Bug Fixes

  • misc: Fix demo.


<summary><kbd>Improvements and Fixes</kbd></summary> #### What's fixed - misc: Fix demo (69f5363)

Version 1.8.4

Released on 2024-11-22

🐛 Bug Fixes

  • misc: Fix husky.


<summary><kbd>Improvements and Fixes</kbd></summary> #### What's fixed - misc: Fix husky (573711f)

Version 1.8.3

Released on 2024-11-22

🐛 Bug Fixes

  • misc: Fix Previewer.


<summary><kbd>Improvements and Fixes</kbd></summary> #### What's fixed - misc: Fix Previewer (32473d1)

Version 1.8.2

Released on 2024-11-22

🐛 Bug Fixes

  • misc: Fix Dumi break change.


<summary><kbd>Improvements and Fixes</kbd></summary> #### What's fixed - misc: Fix Dumi break change (26740ba)

Version 1.8.1

Released on 2024-06-27

🐛 Bug Fixes

  • misc: Fix deps, Fix deps.

💄 Styles

  • misc: Update deps.


<summary><kbd>Improvements and Fixes</kbd></summary> #### What's fixed - misc: Fix deps (7998eb8) - misc: Fix deps (63160dc) #### Styles - misc: Update deps (252174c)

Version 1.8.0

Released on 2024-06-17

✨ Features

  • misc: Update README.


<summary><kbd>Improvements and Fixes</kbd></summary> #### What's improved - misc: Update README (e46ec29)

Version 1.7.7

Released on 2024-06-17

♻ Code Refactoring

  • misc: Update Favicons component to use latest version of assets-favicons package, Update README.md logo image source.

🐛 Bug Fixes

  • slots: 修复 nav 是外链时的跳转 bug.
  • misc: Fix build, FIx build, Fix style, Lock dumi to 2.2.17.

💄 Styles

  • misc: Update Markdown style.


<summary><kbd>Improvements and Fixes</kbd></summary> #### Code refactoring - misc: Update Favicons component to use latest version of assets-favicons package (de95d61) - misc: Update README.md logo image source (8eeaf2a) #### What's fixed - slots: 修复 nav 是外链时的跳转 bug (7f0cc34) - misc: Fix build (281bca4) - misc: FIx build (d480b58) - misc: Fix style (46108db) - misc: Lock dumi to 2.2.17 (807ec0c) #### Styles - misc: Update Markdown style (a8000d3)

Version 1.7.7

Released on 2024-04-08

♻ Code Refactoring

  • misc: Update Favicons component to use latest version of assets-favicons package, Update README.md logo image source.

🐛 Bug Fixes

  • slots: 修复 nav 是外链时的跳转 bug.
  • misc: Fix build, FIx build.


<summary><kbd>Improvements and Fixes</kbd></summary> #### Code refactoring - misc: Update Favicons component to use latest version of assets-favicons package (de95d61) - misc: Update README.md logo image source (8eeaf2a) #### What's fixed - slots: 修复 nav 是外链时的跳转 bug (7f0cc34) - misc: Fix build (281bca4) - misc: FIx build (d480b58)

Version 1.7.6

Released on 2024-01-04

💄 Styles

  • misc: Add space between logo and name.


<summary><kbd>Improvements and Fixes</kbd></summary> #### Styles - misc: Add space between logo and name (29ddf1a)

Version 1.7.5

Released on 2023-12-27

🐛 Bug Fixes

  • misc: Overwrite columns when footerConfig.moreProducts specify.


<summary><kbd>Improvements and Fixes</kbd></summary> #### What's fixed - misc: Overwrite columns when footerConfig.moreProducts specify (251fd90)

Version 1.7.4

Released on 2023-10-18

🐛 Bug Fixes

  • misc: Apply siteToken configuration.


<summary><kbd>Improvements and Fixes</kbd></summary> #### What's fixed - misc: Apply siteToken configuration (7a37f54)

Version 1.7.3

Released on 2023-10-09

🐛 Bug Fixes

  • misc: Replace StroyBook with StoryBook.


<summary><kbd>Improvements and Fixes</kbd></summary> #### What's fixed - misc: Replace StroyBook with StoryBook (fcd9e30)

Version 1.7.2

Released on 2023-09-26

🐛 Bug Fixes

  • misc: Using dynamic prefix.


<summary><kbd>Improvements and Fixes</kbd></summary> #### What's fixed - misc: Using dynamic prefix (6992f8c)

Version 1.7.1

Released on 2023-09-26


<summary><kbd>Improvements and Fixes</kbd></summary>

Version 1.7.0

Released on 2023-09-18

✨ Features

  • misc: Add theme config.


<summary><kbd>Improvements and Fixes</kbd></summary> #### What's improved - misc: Add theme config (eec7654)

Version 1.6.1

Released on 2023-09-06

🐛 Bug Fixes

  • misc: Auto scroll to top when change route.


<summary><kbd>Improvements and Fixes</kbd></summary> #### What's fixed - misc: Auto scroll to top when change route (c0e9354)

Version 1.6.0

Released on 2023-08-15

✨ Features

  • misc: Add favicons and metadata to web page using Helmet component.


<summary><kbd>Improvements and Fixes</kbd></summary> #### What's improved - misc: Add favicons and metadata to web page using Helmet component (5b8dccf)

Version 1.5.0

Released on 2023-08-15

✨ Features

  • misc: Update image URLs, import new icons, and modify meta tags for LobeUI website.


<summary><kbd>Improvements and Fixes</kbd></summary> #### What's improved - misc: Update image URLs, import new icons, and modify meta tags for LobeUI website (ad3f27b)

Version 1.4.1

Released on 2023-07-18

🐛 Bug Fixes

  • misc: Fix SourceCode.


<summary><kbd>Improvements and Fixes</kbd></summary> #### What's fixed - misc: Fix SourceCode (54ee03f)

Version 1.4.0

Released on 2023-07-10

✨ Features

  • config: Add giscus and discord.


<summary><kbd>Improvements and Fixes</kbd></summary> #### What's improved - config: Add giscus and discord (d17d5b8)

Version 1.3.0

Released on 2023-07-09

✨ Features

  • misc: Add and update imports, configurations, and files.


<summary><kbd>Improvements and Fixes</kbd></summary> #### What's improved - misc: Add and update imports, configurations, and files (f0fedcc)

Version 1.2.0

Released on 2023-07-09

✨ Features

  • misc: Add or modify imports, update configurations, and add new files.


<summary><kbd>Improvements and Fixes</kbd></summary> #### What's improved - misc: Add or modify imports, update configurations, and add new files (465b9a5)

Version 1.1.1

Released on 2023-07-09

🐛 Bug Fixes

  • misc: Modify import statement for "SourceCode" component.


<summary><kbd>Improvements and Fixes</kbd></summary> #### What's fixed - misc: Modify import statement for "SourceCode" component (b8748a5)

Version 1.1.0

Released on 2023-07-09

✨ Features

  • misc: Update README.md and package.json.


<summary><kbd>Improvements and Fixes</kbd></summary> #### What's improved - misc: Update README.md and package.json (685cca5)

Version 1.0.0

Released on 2023-07-09

✨ Features

  • misc: Root.


<summary><kbd>Improvements and Fixes</kbd></summary> #### What's improved - misc: Root (6e60bc5)