Coder Social home page Coder Social logo

lobehub / dumi-theme-lobehub Goto Github PK

View Code? Open in Web Editor NEW
52.0 4.0 14.0 505 KB

Lobe documentation site theme package designed for Dumi 2

Home Page: https://dumi-theme.lobehub.com

License: MIT License

JavaScript 0.62% TypeScript 99.22% Shell 0.17%
dumi dumi-theme lobe-ui lobehub theme

dumi-theme-lobehub's Introduction

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

Table of contents

TOC

Warning

Not Support Dumi >= 2.3 yet

✨ Features

  • 🤯 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.
  • 🌓 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.
  • 💅 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.
  • 🪄 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.
  • 🧩 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.
  • 📱 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'];
  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'];
  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 UI - An open-source UI component library for building AIGC web apps.
  • 🤖 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.


📝 License

Copyright © 2023 LobeHub.
This project is MIT licensed.

dumi-theme-lobehub's People

Contributors

actions-user avatar arvinxx avatar canisminor1990 avatar carrotzpc avatar dependabot[bot] avatar lobehubbot avatar renovate[bot] avatar semantic-release-bot avatar tnga avatar yingpengsha avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

dumi-theme-lobehub's Issues

[Bug]

💻 系统环境 | Operating System

Windows

🌐 浏览器 | Browser

Chrome

🐛 问题描述 | Bug Description

Readme 中的安装方式写的不对,现在写的是
pnpm add dumi-theme-antd-style -D

🚦 期望结果 | Expected Behavior

应该是
pnpm add dumi-theme-lobehub -D

📷 复现步骤 | Recurrence Steps

访问该地址就知道了 https://github.com/lobehub/dumi-theme-lobehub#:~:text=pnpm%20add%20dumi%2Dtheme%2Dantd%2Dstyle%20%2DD

📝 补充信息 | Additional Information

No response

移动端组件的预览模式不生效

💻 系统环境 | Operating System

Windows

🌐 浏览器 | Browser

Chrome

🐛 问题描述 | Bug Description

export default { themeConfig: { // 配置高清方案,默认为 750 高清方案 hd: { rules: [...], }, // 配置 demo 预览器的设备宽度,默认为 375px deviceWidth: 375, }, }
不能像官网一样的样式生效: https://d.umijs.org/guide/mobile-library#%E6%95%88%E6%9E%9C%E9%A2%84%E8%A7%88

🚦 期望结果 | Expected Behavior

No response

📷 复现步骤 | Recurrence Steps

No response

📝 补充信息 | Additional Information

No response

[Bug] SSR 加载闪烁

💻 系统环境 | Operating System

macOS

🌐 浏览器 | Browser

Chrome

🐛 问题描述 | Bug Description

黑暗模式下,每次进入页面的时候,都回会先闪烁一下浅色模式,然后再切换回暗色模式

🚦 期望结果 | Expected Behavior

黑暗模式下,每次进入页面的时候,都不要出现闪烁

📷 复现步骤 | Recurrence Steps

访问这个页面https://dumi-theme.lobehub.com/components/action-icon,然后切换到黑暗模式,刷新页面即可复现

📝 补充信息 | Additional Information

No response

[Bug] 除了首页,无法加载其他页面的.md文件

💻 系统环境 | Operating System

Windows

🌐 浏览器 | Browser

Chrome & edge

🐛 问题描述 | Bug Description

image

🚦 期望结果 | Expected Behavior

No response

📷 复现步骤 | Recurrence Steps

No response

📝 补充信息 | Additional Information

No response

The automated release is failing 🚨

🚨 The automated release from the master branch failed. 🚨

I recommend you give this issue a high priority, so other packages depending on you can benefit from your bug fixes and new features again.

You can find below the list of errors reported by semantic-release. Each one of them has to be resolved in order to automatically publish your package. I’m sure you can fix this 💪.

Errors are usually caused by a misconfiguration or an authentication problem. With each error reported below you will find explanation and guidance to help you to resolve it.

Once all the errors are resolved, semantic-release will release your package the next time you push a commit to the master branch. You can also manually restart the failed CI job that runs semantic-release.

If you are not sure how to resolve this, here are some links that can help you:

If those don’t help, or if this issue is reporting something you think isn’t right, you can always ask the humans behind semantic-release.


The release 1.6.0 on branch master cannot be published as it is out of range.

Based on the releases published on other branches, only versions within the range >=1.5.0 <1.6.0 can be published from branch master.

The following commits are responsible for the invalid release:

  • 💄 style: Update Markdown style (e39802f)
  • ✨ feat: Add favicons and metadata to web page using Helmet component (5b8dccf)

Those commits should be moved to a valid branch with git merge or git cherry-pick and removed from branch master with git revert or git reset.

A valid branch could be main.

See the workflow configuration documentation for more details.


Good luck with your project ✨

Your semantic-release bot 📦🚀

[Bug] 无法修改title前面的 logo,

💻 系统环境 | Operating System

Windows

🌐 浏览器 | Browser

Chrome

🐛 问题描述 | Bug Description

一直显示未 lobehub
image

image

🚦 期望结果 | Expected Behavior

No response

📷 复现步骤 | Recurrence Steps

No response

📝 补充信息 | Additional Information

No response

The automated release is failing 🚨

🚨 The automated release from the master branch failed. 🚨

I recommend you give this issue a high priority, so other packages depending on you can benefit from your bug fixes and new features again.

You can find below the list of errors reported by semantic-release. Each one of them has to be resolved in order to automatically publish your package. I’m sure you can fix this 💪.

Errors are usually caused by a misconfiguration or an authentication problem. With each error reported below you will find explanation and guidance to help you to resolve it.

Once all the errors are resolved, semantic-release will release your package the next time you push a commit to the master branch. You can also manually restart the failed CI job that runs semantic-release.

If you are not sure how to resolve this, here are some links that can help you:

If those don’t help, or if this issue is reporting something you think isn’t right, you can always ask the humans behind semantic-release.


The release 1.6.0 on branch master cannot be published as it is out of range.

Based on the releases published on other branches, only versions within the range >=1.5.0 <1.6.0 can be published from branch master.

The following commits are responsible for the invalid release:

  • 🐛 fix: Lock dumi to 2.2.17 (6ed7234)
  • 💄 style: Update Markdown style (e39802f)
  • ✨ feat: Add favicons and metadata to web page using Helmet component (5b8dccf)

Those commits should be moved to a valid branch with git merge or git cherry-pick and removed from branch master with git revert or git reset.

A valid branch could be main.

See the workflow configuration documentation for more details.


Good luck with your project ✨

Your semantic-release bot 📦🚀

Dependency Dashboard

This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.

Open

These updates have all been created already. Click a checkbox below to force a retry/rebase of any.

Ignored or Blocked

These are blocked by an existing closed PR and will not be recreated unless you click a checkbox below.

Detected dependencies

github-actions
.github/workflows/auto-merge.yml
  • actions/checkout v4
  • oven-sh/setup-bun v1
  • ahmadnassri/action-dependabot-auto-merge v2
.github/workflows/issue-check-inactive.yml
  • actions-cool/issues-helper v3
.github/workflows/issue-close-require.yml
  • actions-cool/issues-helper v3
  • actions-cool/issues-helper v3
  • actions-cool/issues-helper v3
.github/workflows/issue-remove-inactive.yml
  • actions-cool/issues-helper v3
.github/workflows/release.yml
  • actions/checkout v4
  • oven-sh/setup-bun v1
.github/workflows/test.yml
  • actions/checkout v4
  • oven-sh/setup-bun v1
  • codecov/codecov-action v4
npm
example/package.json
package.json
  • @floating-ui/react ^0.26.17
  • ahooks ^3.8.0
  • chalk ^4.1.2
  • fast-deep-equal ^3.1.3
  • history ^5.3.0
  • lodash-es ^4.17.21
  • polished ^4.3.1
  • rc-footer ^0.6.8
  • react-layout-kit ^1.9.0
  • use-merge-value ^1.2.0
  • zustand ^4.5.2
  • @commitlint/cli ^19.3.0
  • @lobehub/lint ^1.23.4
  • @types/lodash-es ^4.17.12
  • @types/node ^20.14.2
  • @types/react ^18.3.3
  • @types/react-dom ^18.3.0
  • @vitest/coverage-v8 ^1.6.0
  • clean-pkg-json ^1.2.0
  • commitlint ^19.3.0
  • dumi-assets-types ^2.3.0
  • eslint ^8.57.0
  • father 4.3.1
  • father-plugin-dumi-theme 1.0.0-rc.1
  • husky ^9.0.11
  • jsdom ^22.1.0
  • leva ^0.9.35
  • lint-staged ^13.3.0
  • prettier ^3.3.2
  • react ^18.3.1
  • react-dom ^18.3.1
  • remark ^14.0.3
  • remark-cli ^11.0.0
  • semantic-release ^21.1.2
  • stylelint ^15.11.0
  • typescript ^5.4.5
  • vitest ^1.6.0
  • @giscus/react >=3
  • @lobehub/ui >=1
  • antd >=5
  • dumi ~2.2
  • lucide-react >=0.292
  • react >=18
  • react-dom >=18
  • react-layout-kit >=1

  • Check this box to trigger a request for Renovate to run again on this repository

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.