lobehub / dumi-theme-lobehub

Lobe documentation site theme package designed for Dumi 2
https://dumi-theme.lobehub.com
MIT License
49 stars 13 forks source link
dumi dumi-theme lobe-ui lobehub 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` [![][npm-release-shield]][npm-release-link] [![][github-releasedate-shield]][github-releasedate-link] [![][github-action-test-shield]][github-action-test-link] [![][github-action-release-shield]][github-action-release-link]
[![][github-contributors-shield]][github-contributors-link] [![][github-forks-shield]][github-forks-link] [![][github-stars-shield]][github-stars-link] [![][github-issues-shield]][github-issues-link] [![][github-license-shield]][github-license-link] [Changelog](./CHANGELOG.md) Β· [Report Bug][github-issues-link] Β· [Request Feature][github-issues-link] ![](https://raw.githubusercontent.com/andreasbm/readme/master/assets/lines/rainbow.png)
Table of contents #### TOC - [✨ Features](#-features) - [πŸ“¦ Installation](#-installation) - [🀯 Usage](#-usage) - [⌨️ Local Development](#️-local-development) - [🀝 Contributing](#-contributing) - [πŸ”— Links](#-links) - [More Products](#more-products) ####

[!WARNING] Not Support Dumi >= 2.3 yet

✨ Features

[![][back-to-top]](#readme-top)

πŸ“¦ Installation

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

$ bun add dumi dumi-theme-lobehub
[![][back-to-top]](#readme-top)

🀯 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.

[![][back-to-top]](#readme-top)

⌨️ 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
[![][back-to-top]](#readme-top)

🀝 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.

[![][back-to-top]](#readme-top)

πŸ”— Links

More Products

[![][back-to-top]](#readme-top)

πŸ“ License

Copyright Β© 2023 LobeHub.
This project is MIT licensed.