dumi-theme-lobehub 1.7.0 → 1.7.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md
CHANGED
|
@@ -81,6 +81,7 @@ interface SiteThemeConfig {
|
|
|
81
81
|
actions: HeroProps['actions'];
|
|
82
82
|
apiHeader?: ApiHeaderConfig | false;
|
|
83
83
|
description?: string;
|
|
84
|
+
docStyle?: 'block' | 'pure';
|
|
84
85
|
features: FeaturesProps['items'];
|
|
85
86
|
footer?: string | false;
|
|
86
87
|
footerConfig?: FooterConfig;
|
|
@@ -93,6 +94,7 @@ interface SiteThemeConfig {
|
|
|
93
94
|
hero?: HeroConfig | Record<string, HeroConfig>;
|
|
94
95
|
hideHomeNav?: boolean;
|
|
95
96
|
logo?: string;
|
|
97
|
+
logoType?: LogoProps['type'];
|
|
96
98
|
name?: string;
|
|
97
99
|
siteToken?: SiteConfigToken;
|
|
98
100
|
socialLinks?: {
|
|
@@ -104,7 +106,7 @@ interface SiteThemeConfig {
|
|
|
104
106
|
```
|
|
105
107
|
|
|
106
108
|
> **Note**\
|
|
107
|
-
> For detailed configuration, please refer to the [Type file](https://github.com/lobehub/dumi-theme-lobehub/blob/master/src/types/config.ts)
|
|
109
|
+
> For detailed configuration, please refer to the [📘 Type file](https://github.com/lobehub/dumi-theme-lobehub/blob/master/src/types/config.ts) / [📘 Example](https://github.com/lobehub/dumi-theme-lobehub/blob/master/example/.dumirc.ts).
|
|
108
110
|
|
|
109
111
|
<div align="right">
|
|
110
112
|
|
|
@@ -120,8 +122,6 @@ You can use Github Codespaces for online development:
|
|
|
120
122
|
|
|
121
123
|
Or clone it for local development:
|
|
122
124
|
|
|
123
|
-
[![][bun-shield]][bun-link]
|
|
124
|
-
|
|
125
125
|
```bash
|
|
126
126
|
$ git clone https://github.com/lobehub/dumi-theme-lobehub.git
|
|
127
127
|
$ cd dumi-theme-lobehub
|
|
@@ -149,6 +149,20 @@ Contributions of all types are more than welcome, if you are interested in contr
|
|
|
149
149
|
|
|
150
150
|
</div>
|
|
151
151
|
|
|
152
|
+
## 🔗 Links
|
|
153
|
+
|
|
154
|
+
### More Products
|
|
155
|
+
|
|
156
|
+
- **[🍭 Lobe UI](https://github.com/lobehub/lobe-ui)** - An open-source UI component library for building AIGC web apps.
|
|
157
|
+
- **[🤖 Lobe Chat](https://github.com/lobehub/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.
|
|
158
|
+
- **[🤯 Lobe Theme](https://github.com/lobehub/sd-webui-lobe-theme)** - The modern theme for stable diffusion webui, exquisite interface design, highly customizable UI, and efficiency boosting features.
|
|
159
|
+
|
|
160
|
+
<div align="right">
|
|
161
|
+
|
|
162
|
+
[![][back-to-top]](#readme-top)
|
|
163
|
+
|
|
164
|
+
</div>
|
|
165
|
+
|
|
152
166
|
---
|
|
153
167
|
|
|
154
168
|
#### 📝 License
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { ThemeProvider } from '@lobehub/ui';
|
|
2
|
-
import { extractStaticStyle } from 'antd-style';
|
|
3
2
|
import { memo } from 'react';
|
|
4
3
|
import { shallow } from 'zustand/shallow';
|
|
5
4
|
import Favicons from "../../components/Favicons";
|
|
@@ -8,19 +7,15 @@ import GlobalStyle from "./GlobalStyle";
|
|
|
8
7
|
import { useThemeStore } from "../../store";
|
|
9
8
|
import customToken from "../../styles/customToken";
|
|
10
9
|
import DocumentLayout from "./DocumentLayout";
|
|
11
|
-
|
|
12
|
-
// @ts-ignore
|
|
13
10
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
14
11
|
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
15
12
|
import { Fragment as _Fragment } from "react/jsx-runtime";
|
|
16
|
-
global.__ANTD_CACHE__ = extractStaticStyle.cache;
|
|
17
13
|
var App = /*#__PURE__*/memo(function () {
|
|
18
14
|
var themeMode = useThemeStore(function (st) {
|
|
19
15
|
return st.themeMode;
|
|
20
16
|
}, shallow);
|
|
21
17
|
return /*#__PURE__*/_jsxs(_Fragment, {
|
|
22
18
|
children: [/*#__PURE__*/_jsx(Favicons, {}), /*#__PURE__*/_jsx(StoreUpdater, {}), /*#__PURE__*/_jsxs(ThemeProvider, {
|
|
23
|
-
cache: extractStaticStyle.cache,
|
|
24
19
|
customToken: customToken,
|
|
25
20
|
themeMode: themeMode,
|
|
26
21
|
children: [/*#__PURE__*/_jsx(GlobalStyle, {}), /*#__PURE__*/_jsx(DocumentLayout, {})]
|
|
@@ -14,10 +14,11 @@ var useStyles = createStyles(function (_ref) {
|
|
|
14
14
|
var css = _ref.css,
|
|
15
15
|
stylish = _ref.stylish,
|
|
16
16
|
token = _ref.token,
|
|
17
|
-
responsive = _ref.responsive
|
|
17
|
+
responsive = _ref.responsive,
|
|
18
|
+
prefixCls = _ref.prefixCls;
|
|
18
19
|
return {
|
|
19
20
|
link: css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n ", "\n "])), stylish.resetLinkColor),
|
|
20
|
-
tabs: css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n .
|
|
21
|
+
tabs: css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n .", "-tabs-tab-active a {\n color: ", " !important;\n }\n ", " {\n display: none;\n }\n "])), prefixCls, token.colorText, responsive.mobile)
|
|
21
22
|
};
|
|
22
23
|
});
|
|
23
24
|
var Navbar = /*#__PURE__*/memo(function () {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dumi-theme-lobehub",
|
|
3
|
-
"version": "1.7.
|
|
3
|
+
"version": "1.7.2",
|
|
4
4
|
"description": "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",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"lobehub",
|