@alauda/doom 1.16.4 → 1.17.0
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/lib/cli/load-config.js +16 -39
- package/lib/global/AuthCheck/index.js +1 -1
- package/lib/global/SiteOverrides/index.js +1 -1
- package/lib/login/index.js +1 -3
- package/lib/plugins/auto-sidebar/index.d.ts +1 -1
- package/lib/plugins/directives/remark-directives.js +2 -6
- package/lib/runtime/components/Badge.d.ts +1 -1
- package/lib/runtime/components/Badge.js +1 -1
- package/lib/runtime/components/JsonViewer.js +1 -1
- package/lib/runtime/components/K8sCrd.js +1 -1
- package/lib/runtime/components/OpenAPIPath.js +1 -1
- package/lib/runtime/components/Overview.js +2 -2
- package/lib/runtime/components/PackageManagerTabs.d.ts +1 -1
- package/lib/runtime/components/PackageManagerTabs.js +1 -1
- package/lib/runtime/components/Steps.d.ts +1 -1
- package/lib/runtime/components/Steps.js +1 -1
- package/lib/runtime/components/Tab.d.ts +1 -1
- package/lib/runtime/components/Tab.js +1 -1
- package/lib/runtime/components/Tabs.d.ts +1 -1
- package/lib/runtime/components/Tabs.js +1 -1
- package/lib/runtime/components/Toc.d.ts +1 -1
- package/lib/runtime/components/Toc.js +1 -1
- package/lib/runtime/components/_HeadingTitle.js +1 -1
- package/lib/runtime/components/_X.d.ts +3 -3
- package/lib/runtime/components/_X.js +1 -1
- package/lib/theme/Layout.js +3 -2
- package/lib/theme/Search.js +1 -1
- package/lib/{global → theme}/VersionsNav/NavMenuGroup.js +2 -2
- package/lib/{global → theme}/VersionsNav/NavMenuSingleItem.d.ts +1 -1
- package/lib/{global → theme}/VersionsNav/NavMenuSingleItem.js +3 -3
- package/lib/{global → theme}/VersionsNav/index.js +1 -37
- package/lib/theme/index.d.ts +1 -1
- package/lib/theme/index.js +1 -1
- package/lib/theme/useEditLink.js +7 -7
- package/package.json +24 -24
- package/styles/global.scss +14 -0
- package/styles/link.module.scss +1 -1
- package/styles/versions-nav.module.scss +119 -0
- /package/lib/{global → theme}/VersionsNav/Down.d.ts +0 -0
- /package/lib/{global → theme}/VersionsNav/Down.js +0 -0
- /package/lib/{global → theme}/VersionsNav/NavMenuGroup.d.ts +0 -0
- /package/lib/{global → theme}/VersionsNav/SvgWrapper.d.ts +0 -0
- /package/lib/{global → theme}/VersionsNav/SvgWrapper.js +0 -0
- /package/lib/{global → theme}/VersionsNav/index.d.ts +0 -0
package/lib/cli/load-config.js
CHANGED
|
@@ -24,33 +24,12 @@ const DEFAULT_LOGO = '/logo.svg';
|
|
|
24
24
|
const KNOWN_LOCALE_CONFIGS = {
|
|
25
25
|
en: {
|
|
26
26
|
label: 'English',
|
|
27
|
-
editLink: {
|
|
28
|
-
text: '📝 Edit this page on GitHub',
|
|
29
|
-
},
|
|
30
27
|
},
|
|
31
28
|
zh: {
|
|
32
29
|
label: '简体中文',
|
|
33
|
-
searchPlaceholderText: '搜索文档',
|
|
34
|
-
searchNoResultsText: '未搜索到相关结果',
|
|
35
|
-
searchSuggestedQueryText: '可更换不同的关键字后重试',
|
|
36
|
-
outlineTitle: '本页概览',
|
|
37
|
-
prevPageText: '上一页',
|
|
38
|
-
nextPageText: '下一页',
|
|
39
|
-
editLink: {
|
|
40
|
-
text: '📝 在 GitHub 上编辑此页',
|
|
41
|
-
},
|
|
42
30
|
},
|
|
43
31
|
ru: {
|
|
44
32
|
label: 'Русский',
|
|
45
|
-
searchPlaceholderText: 'Поиск документов',
|
|
46
|
-
searchNoResultsText: 'Не найдено соответствующих результатов',
|
|
47
|
-
searchSuggestedQueryText: 'Попробуйте изменить ключевые слова и повторить поиск',
|
|
48
|
-
outlineTitle: 'Обзор страницы',
|
|
49
|
-
prevPageText: 'Предыдущая страница',
|
|
50
|
-
nextPageText: 'Следующая страница',
|
|
51
|
-
editLink: {
|
|
52
|
-
text: '📝 Редактировать эту страницу на GitHub',
|
|
53
|
-
},
|
|
54
33
|
},
|
|
55
34
|
};
|
|
56
35
|
const ALAUDA_ALGOLIA_OPTIONS = {
|
|
@@ -120,18 +99,11 @@ const getCommonConfig = async ({ config, root, configFilePath, base, version, do
|
|
|
120
99
|
lang: name,
|
|
121
100
|
label: name,
|
|
122
101
|
...KNOWN_LOCALE_CONFIGS[name],
|
|
123
|
-
editLink: editRepoEnabled && editRepoBaseUrl
|
|
124
|
-
? {
|
|
125
|
-
docRepoBaseUrl: editRepoBaseUrl,
|
|
126
|
-
...KNOWN_LOCALE_CONFIGS.en.editLink,
|
|
127
|
-
...KNOWN_LOCALE_CONFIGS[name]?.editLink,
|
|
128
|
-
}
|
|
129
|
-
: undefined,
|
|
130
102
|
});
|
|
131
103
|
}
|
|
132
104
|
}
|
|
133
105
|
const unusedLanguages = difference(allLanguages, locales.map(({ lang }) => lang));
|
|
134
|
-
const
|
|
106
|
+
const zhLocale = KNOWN_LOCALE_CONFIGS.zh;
|
|
135
107
|
const algoliaOptions = ((algolia && config.algolia) ??
|
|
136
108
|
(algolia === 'alauda'
|
|
137
109
|
? ALAUDA_ALGOLIA_OPTIONS
|
|
@@ -188,17 +160,12 @@ const getCommonConfig = async ({ config, root, configFilePath, base, version, do
|
|
|
188
160
|
},
|
|
189
161
|
themeConfig: {
|
|
190
162
|
enableScrollToTop: true,
|
|
191
|
-
// https://github.com/web-infra-dev/rspress/issues/2011
|
|
192
|
-
outline: true,
|
|
193
163
|
localeRedirect: redirect,
|
|
194
|
-
...(
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
}
|
|
200
|
-
: zhLocale
|
|
201
|
-
: { locales }),
|
|
164
|
+
...(editRepoEnabled &&
|
|
165
|
+
editRepoBaseUrl && {
|
|
166
|
+
editLink: { docRepoBaseUrl: editRepoBaseUrl },
|
|
167
|
+
}),
|
|
168
|
+
...(fallbackToZh ? zhLocale : { locales }),
|
|
202
169
|
},
|
|
203
170
|
plugins: [
|
|
204
171
|
algoliaOptions && pluginAlgolia(),
|
|
@@ -248,6 +215,11 @@ const getCommonConfig = async ({ config, root, configFilePath, base, version, do
|
|
|
248
215
|
tools: {
|
|
249
216
|
rspack(rspackConfig, { mergeConfig, rspack }) {
|
|
250
217
|
return mergeConfig(rspackConfig, {
|
|
218
|
+
ignoreWarnings: [
|
|
219
|
+
{
|
|
220
|
+
module: /\bflexsearch\b/,
|
|
221
|
+
},
|
|
222
|
+
],
|
|
251
223
|
resolve: {
|
|
252
224
|
extensionAlias: {
|
|
253
225
|
'.js': ['.ts', '.tsx', '.js'],
|
|
@@ -264,6 +236,11 @@ const getCommonConfig = async ({ config, root, configFilePath, base, version, do
|
|
|
264
236
|
},
|
|
265
237
|
},
|
|
266
238
|
},
|
|
239
|
+
ssg: {
|
|
240
|
+
experimentalWorker: true,
|
|
241
|
+
},
|
|
242
|
+
// https://github.com/web-infra-dev/rspress/issues/2894
|
|
243
|
+
// llms: true,
|
|
267
244
|
};
|
|
268
245
|
};
|
|
269
246
|
const findConfig = async (basePath) => {
|
|
@@ -19,7 +19,7 @@ const AuthCheck = () => {
|
|
|
19
19
|
site.themeConfig.locales.some((l) => pathname_ === `/${l.lang}/login`)) {
|
|
20
20
|
return;
|
|
21
21
|
}
|
|
22
|
-
navigate(`${lang === site.lang ? '' : `/${lang}`}/login.html?from=${encodeURIComponent(`${pathname}${search}${hash}`)}`);
|
|
22
|
+
void navigate(`${lang === site.lang ? '' : `/${lang}`}/login.html?from=${encodeURIComponent(`${pathname}${search}${hash}`)}`);
|
|
23
23
|
});
|
|
24
24
|
const abortController = useRef(null);
|
|
25
25
|
const authCheck = useMemoizedFn(async () => {
|
|
@@ -2,7 +2,7 @@ import { usePageData } from '@rspress/core/runtime';
|
|
|
2
2
|
import { useEffect } from 'react';
|
|
3
3
|
import { useSiteOverrides } from '@alauda/doom/runtime';
|
|
4
4
|
const setNavBarSpans = (logoText) => {
|
|
5
|
-
const navBarLinks = document.querySelectorAll('
|
|
5
|
+
const navBarLinks = document.querySelectorAll('.rp-nav__title__link');
|
|
6
6
|
if (!navBarLinks.length) {
|
|
7
7
|
return;
|
|
8
8
|
}
|
package/lib/login/index.js
CHANGED
|
@@ -13,9 +13,7 @@ const Login = () => {
|
|
|
13
13
|
const navigate = useNavigate();
|
|
14
14
|
const [query] = useSearchParams();
|
|
15
15
|
const from = query.get('from');
|
|
16
|
-
const onLoggedIn = useCallback(() =>
|
|
17
|
-
navigate(from || '/');
|
|
18
|
-
}, [from, navigate]);
|
|
16
|
+
const onLoggedIn = useCallback(() => navigate(from || '/'), [from, navigate]);
|
|
19
17
|
const dark = useDark();
|
|
20
18
|
const t = useTranslation();
|
|
21
19
|
return (_jsx("div", { className: classes.container, style: {
|
|
@@ -6,5 +6,5 @@ export interface AutoSidebarPluginOptions {
|
|
|
6
6
|
export?: boolean;
|
|
7
7
|
collapsed?: boolean;
|
|
8
8
|
}
|
|
9
|
-
export declare const autoSidebar: (config: UserConfig, { ignore, export: export_ }: AutoSidebarPluginOptions) => Promise<UserConfig
|
|
9
|
+
export declare const autoSidebar: (config: UserConfig, { ignore, export: export_ }: AutoSidebarPluginOptions) => Promise<UserConfig>;
|
|
10
10
|
export declare const autoSidebarPlugin: (options?: AutoSidebarPluginOptions) => RspressPlugin;
|
|
@@ -8,6 +8,7 @@ const CONTAINER_DIRECTIVE_TYPES = new Set([
|
|
|
8
8
|
'danger',
|
|
9
9
|
'info',
|
|
10
10
|
'details',
|
|
11
|
+
'$$$callout$$$',
|
|
11
12
|
]);
|
|
12
13
|
export const remarkDirectives = function () {
|
|
13
14
|
return (root) => {
|
|
@@ -19,12 +20,7 @@ export const remarkDirectives = function () {
|
|
|
19
20
|
}
|
|
20
21
|
const data = node.data || (node.data = {});
|
|
21
22
|
if (node.type === 'containerDirective' &&
|
|
22
|
-
|
|
23
|
-
// https://github.com/web-infra-dev/rspress/pull/2403
|
|
24
|
-
(!node.name &&
|
|
25
|
-
data.hProperties?.class
|
|
26
|
-
?.toString()
|
|
27
|
-
.startsWith('rspress-directive')))) {
|
|
23
|
+
CONTAINER_DIRECTIVE_TYPES.has(node.name)) {
|
|
28
24
|
return;
|
|
29
25
|
}
|
|
30
26
|
switch (node.name) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { Badge, Badge as default } from '@rspress/core/theme';
|
|
1
|
+
export { Badge, Badge as default } from '@rspress/core/theme-original';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { Badge, Badge as default } from '@rspress/core/theme';
|
|
1
|
+
export { Badge, Badge as default } from '@rspress/core/theme-original';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { CodeBlockRuntime, Tab, Tabs } from '@rspress/core/theme';
|
|
2
|
+
import { CodeBlockRuntime, Tab, Tabs } from '@rspress/core/theme-original';
|
|
3
3
|
import { stringify } from 'yaml';
|
|
4
4
|
export const JsonViewer = ({ value }) => {
|
|
5
5
|
return (_jsxs(Tabs, { children: [_jsx(Tab, { label: "yaml", children: _jsx(CodeBlockRuntime, { lang: "yaml", code: stringify(value) }) }), _jsx(Tab, { label: "json", children: _jsx(CodeBlockRuntime, { lang: "json", code: JSON.stringify(value, null, 2) }) })] }));
|
|
@@ -2,7 +2,7 @@ import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-run
|
|
|
2
2
|
/**
|
|
3
3
|
* modified based on @see https://github.com/crdsdev/doc/blob/main/template/doc.html
|
|
4
4
|
*/
|
|
5
|
-
import { Badge, Button } from '@rspress/core/theme';
|
|
5
|
+
import { Badge, Button } from '@rspress/core/theme-original';
|
|
6
6
|
import crdsMap from 'doom-@api-crdsMap';
|
|
7
7
|
import { useCallback, useEffect, useMemo, useState } from 'react';
|
|
8
8
|
import { useIsPrint, useTranslation } from '../hooks/index.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
2
|
import { usePage } from '@rspress/core/runtime';
|
|
3
|
-
import { Badge } from '@rspress/core/theme';
|
|
3
|
+
import { Badge } from '@rspress/core/theme-original';
|
|
4
4
|
import openapisMap from 'doom-@api-openapisMap';
|
|
5
5
|
import virtual from 'doom-@api-virtual';
|
|
6
6
|
import BananaSlug from 'github-slugger';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { isEqualPath, usePageData, useSidebar } from '@rspress/core/runtime';
|
|
3
|
-
import { Link, renderInlineMarkdown } from '@rspress/core/theme';
|
|
3
|
+
import { FallbackHeading, Link, renderInlineMarkdown, } from '@rspress/core/theme-original';
|
|
4
4
|
import { Fragment, useCallback, useMemo } from 'react';
|
|
5
5
|
import classes from '../../../styles/overview.module.scss';
|
|
6
6
|
import { findItemByRoutePath, isSidebarDivider, isSidebarSectionHeader, isSingleFile, } from './_utils.js';
|
|
@@ -108,6 +108,6 @@ export function Overview(props) {
|
|
|
108
108
|
}, [getGroup, overviewSidebarGroups]);
|
|
109
109
|
const groups = customGroups ?? defaultGroups;
|
|
110
110
|
return (_jsxs("div", { className: "overview-index doom-overview-index", children: [content, groups.map((group) => (_jsxs(Fragment, { children: [(!title || [title, defaultGroupTitle].includes(group.name)) &&
|
|
111
|
-
groups.length === 1 ? (_jsx("h2", { style: { paddingTop: 0 } })) : (_jsx(
|
|
111
|
+
groups.length === 1 ? (_jsx("h2", { style: { paddingTop: 0 } })) : (_jsx(FallbackHeading, { level: 2, title: group.name })), _jsx("div", { className: classes.overviewGroups, children: group.items.map((item) => (_jsxs("div", { className: classes.overviewGroup, children: [_jsx("h3", { children: _jsx(Link, { href: item.link, ...renderInlineMarkdown(item.text) }) }), _jsx("div", { className: classes.overviewDescription, children: item.description }), _jsx("ul", { className: classes.overviewList, children: item.headers?.map((header) => (_jsx("li", { className: `${classes.overviewGroupLi} ${classes[`level${header.depth}`]}`, children: _jsx(Link, { href: `${item.link}#${header.id}`, ...renderInlineMarkdown(header.text) }) }, header.id))) })] }, item.link))) })] }, group.name)))] }));
|
|
112
112
|
}
|
|
113
113
|
export default Overview;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { PackageManagerTabs, PackageManagerTabs as default, } from '@rspress/core/theme';
|
|
1
|
+
export { PackageManagerTabs, PackageManagerTabs as default, } from '@rspress/core/theme-original';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { PackageManagerTabs, PackageManagerTabs as default, } from '@rspress/core/theme';
|
|
1
|
+
export { PackageManagerTabs, PackageManagerTabs as default, } from '@rspress/core/theme-original';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { Steps, Steps as default } from '@rspress/core/theme';
|
|
1
|
+
export { Steps, Steps as default } from '@rspress/core/theme-original';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { Steps, Steps as default } from '@rspress/core/theme';
|
|
1
|
+
export { Steps, Steps as default } from '@rspress/core/theme-original';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { Tab, Tab as default } from '@rspress/core/theme';
|
|
1
|
+
export { Tab, Tab as default } from '@rspress/core/theme-original';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { Tab, Tab as default } from '@rspress/core/theme';
|
|
1
|
+
export { Tab, Tab as default } from '@rspress/core/theme-original';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Tabs as Tabs_ } from '@rspress/core/theme';
|
|
1
|
+
import { Tabs as Tabs_ } from '@rspress/core/theme-original';
|
|
2
2
|
import { type RefAttributes } from 'react';
|
|
3
3
|
export type TabsProps = Parameters<typeof Tabs_>[0] & RefAttributes<HTMLDivElement>;
|
|
4
4
|
export declare const Tabs: ({ ref, children, ...props }: TabsProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import { Tabs as Tabs_ } from '@rspress/core/theme';
|
|
2
|
+
import { Tabs as Tabs_ } from '@rspress/core/theme-original';
|
|
3
3
|
import { Children } from 'react';
|
|
4
4
|
import { useIsPrint } from '../hooks/index.js';
|
|
5
5
|
export const Tabs = ({ ref, children, ...props }) => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { Toc, Toc as default } from '@rspress/core/theme';
|
|
1
|
+
export { Toc, Toc as default } from '@rspress/core/theme-original';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { Toc, Toc as default } from '@rspress/core/theme';
|
|
1
|
+
export { Toc, Toc as default } from '@rspress/core/theme-original';
|
|
@@ -18,5 +18,5 @@ export const HeadingTitle = ({ slug, slugger, level, children, }) => {
|
|
|
18
18
|
const id = useMemo(() => [uid, slug || slugger?.slug(slugFromChildren)]
|
|
19
19
|
.filter(Boolean)
|
|
20
20
|
.join('-') || undefined, [uid, slug, slugger, slugFromChildren]);
|
|
21
|
-
return (_jsxs(HeadingComponent, { id: id, children: [
|
|
21
|
+
return (_jsxs(HeadingComponent, { id: id, children: [_jsx(X.a, { className: "rp-header-anchor", href: `#${id}`, "aria-hidden": true, children: "#" }), children] }));
|
|
22
22
|
};
|
|
@@ -8,7 +8,7 @@ export declare const X: {
|
|
|
8
8
|
ul: (props: import("react").ComponentProps<"ul">) => import("react/jsx-runtime").JSX.Element;
|
|
9
9
|
ol: (props: import("react").ComponentProps<"ol">) => import("react/jsx-runtime").JSX.Element;
|
|
10
10
|
li: (props: import("react").ComponentProps<"li">) => import("react/jsx-runtime").JSX.Element;
|
|
11
|
-
table: (
|
|
11
|
+
table: import("react").ForwardRefExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").TableHTMLAttributes<HTMLTableElement>, HTMLTableElement>, "ref"> & import("react").RefAttributes<HTMLTableElement>>;
|
|
12
12
|
td: (props: import("react").ComponentProps<"td">) => import("react/jsx-runtime").JSX.Element;
|
|
13
13
|
th: (props: import("react").ComponentProps<"th">) => import("react/jsx-runtime").JSX.Element;
|
|
14
14
|
tr: (props: import("react").ComponentProps<"tr">) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -17,7 +17,7 @@ export declare const X: {
|
|
|
17
17
|
blockquote: (props: import("react").ComponentProps<"blockquote">) => import("react/jsx-runtime").JSX.Element;
|
|
18
18
|
strong: (props: import("react").ComponentProps<"strong">) => import("react/jsx-runtime").JSX.Element;
|
|
19
19
|
a: (props: import("react").ComponentProps<"a">) => import("react/jsx-runtime").JSX.Element;
|
|
20
|
-
code:
|
|
21
|
-
pre: ({ containerElementClassName, children, className, title, codeButtonGroupProps, ...otherProps }: import("@rspress/theme-default").PreWithCodeButtonGroupProps) => import("react/jsx-runtime").JSX.Element | null;
|
|
20
|
+
code: typeof import("@rspress/core/dist/theme/components/DocContent/docComponents/code.js").Code;
|
|
22
21
|
img: (props: import("react").ComponentProps<"img">) => import("react/jsx-runtime").JSX.Element;
|
|
22
|
+
pre: typeof import("@rspress/core/dist/theme/components/DocContent/docComponents/pre.js").ShikiPre;
|
|
23
23
|
};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { getCustomMDXComponent } from '@rspress/core/theme';
|
|
1
|
+
import { getCustomMDXComponent } from '@rspress/core/theme-original';
|
|
2
2
|
export const X = getCustomMDXComponent();
|
package/lib/theme/Layout.js
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import { useLang, useSite, withBase } from '@rspress/core/runtime';
|
|
3
|
-
import { Layout as OriginalLayout, getCustomMDXComponent, } from '@rspress/core/theme';
|
|
3
|
+
import { Layout as OriginalLayout, getCustomMDXComponent, } from '@rspress/core/theme-original';
|
|
4
4
|
import virtual from 'doom-@global-virtual';
|
|
5
5
|
import { useMemo } from 'react';
|
|
6
6
|
import { useLocation } from 'react-router';
|
|
7
7
|
import classes from '../../styles/link.module.scss';
|
|
8
8
|
import { useTranslation } from "../runtime/index.js";
|
|
9
|
+
import { VersionsNav } from "./VersionsNav/index.js";
|
|
9
10
|
const X = getCustomMDXComponent();
|
|
10
11
|
const cleanupUrlPath = (urlPath) => {
|
|
11
12
|
if (urlPath.endsWith('.html')) {
|
|
@@ -81,5 +82,5 @@ export const Layout = () => {
|
|
|
81
82
|
}, [pathname, siteLang, themeConfig]);
|
|
82
83
|
const pdfLink = useMemo(() => found &&
|
|
83
84
|
withBase(`${found.exportItem.name ?? found.sidebar.text}-${lang}.pdf`), [found, lang]);
|
|
84
|
-
return (_jsx(OriginalLayout, { beforeOutline: pdfLink && (_jsx(X.p, { children: _jsx("a", { className: classes.link, href: pdfLink, target: "_blank", rel: "noopener noreferrer", children: t('view_docs_as_pdf') }) })) }));
|
|
85
|
+
return (_jsx(OriginalLayout, { afterNavMenu: _jsx(VersionsNav, {}), beforeOutline: pdfLink && (_jsx(X.p, { style: { marginBottom: 16 }, children: _jsx("a", { className: classes.link, href: pdfLink, target: "_blank", rel: "noopener noreferrer", children: t('view_docs_as_pdf') }) })) }));
|
|
85
86
|
};
|
package/lib/theme/Search.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import { useLang } from '@rspress/core/runtime';
|
|
3
|
-
import { Search as OriginalSearch } from '@rspress/core/theme';
|
|
3
|
+
import { Search as OriginalSearch } from '@rspress/core/theme-original';
|
|
4
4
|
import { Search as AlgoliaSearch, ZH_LOCALES, } from '@rspress/plugin-algolia/runtime';
|
|
5
5
|
import { useMemo } from 'react';
|
|
6
6
|
export const Search = process.env.ALGOLIA_APP_ID &&
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
|
-
import { Tag } from '@rspress/core/theme';
|
|
2
|
+
import { Tag } from '@rspress/core/theme-original';
|
|
3
3
|
import { isExternalUrl, } from '@rspress/shared';
|
|
4
4
|
import { useRef, useState } from 'react';
|
|
5
5
|
import { matchNavbar } from '../../shared/index.js';
|
|
@@ -50,7 +50,7 @@ export function NavMenuGroup(item) {
|
|
|
50
50
|
const renderGroup = (item) => {
|
|
51
51
|
return (_jsxs("div", { children: ['link' in item ? (renderLinkItem(item)) : (_jsx("p", { className: "rp-font-bold rp-text-gray-400 rp-my-1 not:first:rp-border", children: item.text })), item.items.map(renderLinkItem)] }));
|
|
52
52
|
};
|
|
53
|
-
return (_jsxs("div", { className: "rp-relative rp-flex rp-items-center rp-justify-center rp-h-14", onMouseLeave: handleMouseLeave, children: [_jsx("div", { onMouseEnter: handleMouseEnter, className: "rspress-nav-menu-group-button rp-flex rp-justify-center rp-items-center rp-font-medium rp-text-sm rp-text-text-1 hover:rp-text-text-2 rp-transition-colors rp-duration-200 rp-cursor-pointer", children: link ? (_jsx(NavMenuSingleItem, { ...item, rightIcon: _jsx(SvgWrapper, { icon: Down }) })) : (_jsxs(_Fragment, { children: [_jsxs("span", { className: "rp-text-sm rp-font-medium rp-flex", style: {
|
|
53
|
+
return (_jsxs("div", { className: "rp-relative rp-flex rp-items-center rp-justify-center rp-text-sm rp-h-14", onMouseLeave: handleMouseLeave, children: [_jsx("div", { onMouseEnter: handleMouseEnter, className: "rspress-nav-menu-group-button rp-flex rp-justify-center rp-items-center rp-font-medium rp-text-sm rp-text-text-1 hover:rp-text-text-2 rp-transition-colors rp-duration-200 rp-cursor-pointer", children: link ? (_jsx(NavMenuSingleItem, { ...item, rightIcon: _jsx(SvgWrapper, { icon: Down }) })) : (_jsxs(_Fragment, { children: [_jsxs("span", { className: "rp-text-sm rp-font-medium rp-flex", style: {
|
|
54
54
|
marginRight: '2px',
|
|
55
55
|
}, children: [_jsx(Tag, { tag: item.tag }), item.text] }), _jsx(SvgWrapper, { icon: Down })] })) }), _jsx("div", { className: "rspress-nav-menu-group-content rp-absolute rp-mx-0.8 rp-transition-opacity rp-duration-300", style: {
|
|
56
56
|
opacity: isOpen ? 1 : 0,
|
|
@@ -8,4 +8,4 @@ export interface NavMenuSingleItemProps extends Omit<NavItemWithLink, 'text'> {
|
|
|
8
8
|
rightIcon?: ReactNode;
|
|
9
9
|
text?: ReactNode;
|
|
10
10
|
}
|
|
11
|
-
export declare function NavMenuSingleItem({ activeMatch, base,
|
|
11
|
+
export declare function NavMenuSingleItem({ activeMatch, base, download, link, pathname, rightIcon, text, tag, }: NavMenuSingleItemProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { Tag } from '@rspress/core/theme';
|
|
2
|
+
import { Tag } from '@rspress/core/theme-original';
|
|
3
3
|
import { isExternalUrl } from '@rspress/shared';
|
|
4
4
|
import { useMemo } from 'react';
|
|
5
5
|
import { withoutBase } from "../../shared/index.js";
|
|
6
6
|
import styles from '@alauda/doom/styles/versions-nav.module.scss';
|
|
7
|
-
export function NavMenuSingleItem({ activeMatch, base,
|
|
7
|
+
export function NavMenuSingleItem({ activeMatch, base, download, link, pathname, rightIcon, text, tag, }) {
|
|
8
8
|
const isActive = useMemo(() => !!base &&
|
|
9
9
|
!!pathname &&
|
|
10
10
|
new RegExp(activeMatch || link).test(withoutBase(pathname, base)), [activeMatch, base, link, pathname]);
|
|
11
|
-
return (_jsx("a", { href: link, download: download, target: isExternalUrl(link) ? '_blank' : undefined, rel: "noopener noreferrer", children: _jsxs("div", { className: `rspress-nav-menu-item ${styles.singleItem} ${isActive ?
|
|
11
|
+
return (_jsx("a", { href: link, download: download, target: isExternalUrl(link) ? '_blank' : undefined, rel: "noopener noreferrer", children: _jsxs("div", { className: `rspress-nav-menu-item ${styles.singleItem} ${isActive ? styles.activeItem : ''} rp-text-sm rp-font-medium rp-px-3 rp-py-2 rp-flex rp-items-center`, children: [_jsx(Tag, { tag: tag }), text, rightIcon] }) }, link));
|
|
12
12
|
}
|
|
@@ -4,19 +4,12 @@ import {} from '@rspress/shared';
|
|
|
4
4
|
import virtual from 'doom-@global-virtual';
|
|
5
5
|
import { noop } from 'es-toolkit';
|
|
6
6
|
import { useEffect, useMemo, useState } from 'react';
|
|
7
|
-
import { createPortal } from 'react-dom';
|
|
8
7
|
import siteData from 'virtual-site-data';
|
|
9
8
|
import { parse } from 'yaml';
|
|
10
9
|
import { ACP_BASE, getPdfName, getUnversionedVersion, isExplicitlyUnversioned, } from '../../shared/index.js';
|
|
11
10
|
import { NavMenuGroup } from './NavMenuGroup.js';
|
|
12
11
|
import { NavMenuSingleItem } from './NavMenuSingleItem.js';
|
|
13
12
|
import { useLang, useTranslation } from '@alauda/doom/runtime';
|
|
14
|
-
const getNavMenu = () => {
|
|
15
|
-
if (typeof document === 'undefined') {
|
|
16
|
-
return null;
|
|
17
|
-
}
|
|
18
|
-
return document.querySelector('.rspress-nav-menu');
|
|
19
|
-
};
|
|
20
13
|
const LEGACY_VERSIONS = ['3.18.1', '3.18.0', '3.16', '3.14'];
|
|
21
14
|
const LEGACY_NAV_ITEMS = LEGACY_VERSIONS.map((v) => ({
|
|
22
15
|
text: v,
|
|
@@ -49,7 +42,6 @@ const VersionsNav_ = () => {
|
|
|
49
42
|
unversionedVersion,
|
|
50
43
|
];
|
|
51
44
|
}, []);
|
|
52
|
-
const [navMenu, setNavMenu] = useState(getNavMenu);
|
|
53
45
|
const [versions, setVersions] = useState(version ? [version] : []);
|
|
54
46
|
useEffect(() => {
|
|
55
47
|
const fetchVersions = async () => {
|
|
@@ -70,32 +62,9 @@ const VersionsNav_ = () => {
|
|
|
70
62
|
}
|
|
71
63
|
setVersions(versions);
|
|
72
64
|
}
|
|
73
|
-
setNavMenu(getNavMenu);
|
|
74
65
|
};
|
|
75
66
|
void fetchVersions().catch(noop);
|
|
76
67
|
}, [version, versionsBase]);
|
|
77
|
-
// hack way to detect nav menu recreation on theme change
|
|
78
|
-
useEffect(() => {
|
|
79
|
-
if (!navMenu) {
|
|
80
|
-
return;
|
|
81
|
-
}
|
|
82
|
-
const observer = new MutationObserver((mutations) => {
|
|
83
|
-
if (mutations.some((m) => m.removedNodes.length)) {
|
|
84
|
-
setNavMenu(getNavMenu);
|
|
85
|
-
}
|
|
86
|
-
});
|
|
87
|
-
const newNavMenu = getNavMenu();
|
|
88
|
-
if (newNavMenu !== navMenu) {
|
|
89
|
-
// eslint-disable-next-line @eslint-react/hooks-extra/no-direct-set-state-in-use-effect, react-hooks/set-state-in-effect
|
|
90
|
-
setNavMenu(newNavMenu);
|
|
91
|
-
}
|
|
92
|
-
else if (navMenu.parentNode) {
|
|
93
|
-
observer.observe(navMenu.parentNode, { childList: true });
|
|
94
|
-
}
|
|
95
|
-
return () => {
|
|
96
|
-
observer.disconnect();
|
|
97
|
-
};
|
|
98
|
-
}, [navMenu]);
|
|
99
68
|
const navItems = useMemo(() => {
|
|
100
69
|
const versionItems = versions.map((v) => versionsBase == null
|
|
101
70
|
? { text: v, items: [] }
|
|
@@ -107,12 +76,7 @@ const VersionsNav_ = () => {
|
|
|
107
76
|
}
|
|
108
77
|
return versionItems;
|
|
109
78
|
}, [versionsBase, versions]);
|
|
110
|
-
|
|
111
|
-
if ((!navItems.length && !virtual.download) ||
|
|
112
|
-
!(finalNavMenu = getNavMenu())) {
|
|
113
|
-
return;
|
|
114
|
-
}
|
|
115
|
-
return createPortal(_jsxs(_Fragment, { children: [downloadLink && (_jsx(NavMenuSingleItem, { text: t('download_pdf'), link: downloadLink, download: true })), !navItems.length || (_jsx(NavMenuGroup, { text: version, base: versionsBase, items: navItems, pathname: siteData.base }))] }), finalNavMenu);
|
|
79
|
+
return (_jsxs(_Fragment, { children: [downloadLink && (_jsx(NavMenuSingleItem, { text: t('download_pdf'), link: downloadLink, download: true })), !navItems.length || (_jsx(NavMenuGroup, { text: version, base: versionsBase, items: navItems, pathname: siteData.base }))] }));
|
|
116
80
|
};
|
|
117
81
|
export const VersionsNav = () => (_jsx(NoSSR, { children: _jsx(VersionsNav_, {}) }));
|
|
118
82
|
export default VersionsNav;
|
package/lib/theme/index.d.ts
CHANGED
package/lib/theme/index.js
CHANGED
package/lib/theme/useEditLink.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { useI18n, usePageData } from '@rspress/runtime';
|
|
2
2
|
export function useEditLink() {
|
|
3
3
|
const { siteData, page } = usePageData();
|
|
4
|
-
|
|
5
|
-
const
|
|
6
|
-
const
|
|
7
|
-
if (!editLink?.docRepoBaseUrl || !
|
|
4
|
+
const editLink = siteData.themeConfig.editLink;
|
|
5
|
+
const t = useI18n();
|
|
6
|
+
const text = t('editLinkText');
|
|
7
|
+
if (!editLink?.docRepoBaseUrl || !text) {
|
|
8
8
|
return null;
|
|
9
9
|
}
|
|
10
10
|
let { docRepoBaseUrl } = editLink;
|
|
@@ -12,11 +12,11 @@ export function useEditLink() {
|
|
|
12
12
|
docRepoBaseUrl += '/';
|
|
13
13
|
}
|
|
14
14
|
const lastSegment = docRepoBaseUrl.split('/').at(-2);
|
|
15
|
-
const fixedLang = siteData.themeConfig.locales
|
|
15
|
+
const fixedLang = siteData.themeConfig.locales.some(({ lang }) => lang === lastSegment);
|
|
16
16
|
const relativePagePath = page._relativePath.replace(/\\/g, '/');
|
|
17
17
|
const link = `${docRepoBaseUrl}${fixedLang ? relativePagePath.split('/').slice(1).join('/') : relativePagePath}`;
|
|
18
18
|
return {
|
|
19
|
-
text
|
|
19
|
+
text,
|
|
20
20
|
link,
|
|
21
21
|
};
|
|
22
22
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alauda/doom",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.17.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Doctor Doom making docs.",
|
|
6
6
|
"repository": {
|
|
@@ -41,31 +41,31 @@
|
|
|
41
41
|
],
|
|
42
42
|
"dependencies": {
|
|
43
43
|
"@alauda/doom-export": "^0.2.1",
|
|
44
|
-
"@cspell/eslint-plugin": "^9.
|
|
45
|
-
"@eslint-react/eslint-plugin": "^2.
|
|
46
|
-
"@inquirer/prompts": "^
|
|
44
|
+
"@cspell/eslint-plugin": "^9.4.0",
|
|
45
|
+
"@eslint-react/eslint-plugin": "^2.3.13",
|
|
46
|
+
"@inquirer/prompts": "^8.1.0",
|
|
47
47
|
"@openapi-contrib/openapi-schema-to-json-schema": "^5.1.0",
|
|
48
|
-
"@rsbuild/plugin-react": "^1.4.
|
|
48
|
+
"@rsbuild/plugin-react": "^1.4.2",
|
|
49
49
|
"@rsbuild/plugin-sass": "^1.4.0",
|
|
50
|
-
"@rsbuild/plugin-svgr": "^1.2.
|
|
50
|
+
"@rsbuild/plugin-svgr": "^1.2.3",
|
|
51
51
|
"@rsbuild/plugin-yaml": "^1.0.3",
|
|
52
|
-
"@rspress/core": "2.0.0-
|
|
53
|
-
"@rspress/plugin-algolia": "2.0.0-
|
|
54
|
-
"@rspress/plugin-llms": "2.0.0-
|
|
55
|
-
"@rspress/plugin-sitemap": "2.0.0-
|
|
56
|
-
"@rspress/shared": "2.0.0-
|
|
57
|
-
"@shikijs/transformers": "^3.
|
|
52
|
+
"@rspress/core": "2.0.0-rc.2",
|
|
53
|
+
"@rspress/plugin-algolia": "2.0.0-rc.2",
|
|
54
|
+
"@rspress/plugin-llms": "2.0.0-rc.2",
|
|
55
|
+
"@rspress/plugin-sitemap": "2.0.0-rc.2",
|
|
56
|
+
"@rspress/shared": "2.0.0-rc.2",
|
|
57
|
+
"@shikijs/transformers": "^3.20.0",
|
|
58
58
|
"@total-typescript/ts-reset": "^0.6.1",
|
|
59
|
-
"@types/react": "^19.2.
|
|
59
|
+
"@types/react": "^19.2.7",
|
|
60
60
|
"ab64": "^0.1.6",
|
|
61
|
-
"chokidar": "^
|
|
61
|
+
"chokidar": "^5.0.0",
|
|
62
62
|
"clsx": "^2.1.1",
|
|
63
63
|
"commander": "^14.0.2",
|
|
64
64
|
"ejs": "^3.1.10",
|
|
65
|
-
"es-toolkit": "^1.
|
|
66
|
-
"eslint": "^9.
|
|
65
|
+
"es-toolkit": "^1.43.0",
|
|
66
|
+
"eslint": "^9.39.2",
|
|
67
67
|
"eslint-plugin-mdx": "^3.6.2",
|
|
68
|
-
"globals": "^16.
|
|
68
|
+
"globals": "^16.5.0",
|
|
69
69
|
"html-tag-names": "^2.1.0",
|
|
70
70
|
"jsencrypt": "^3.5.4",
|
|
71
71
|
"mdast-util-mdx": "^3.0.0",
|
|
@@ -73,8 +73,8 @@
|
|
|
73
73
|
"mdast-util-phrasing": "^4.1.0",
|
|
74
74
|
"mdast-util-to-markdown": "^2.1.2",
|
|
75
75
|
"mdast-util-to-string": "^4.0.0",
|
|
76
|
-
"mermaid": "^11.12.
|
|
77
|
-
"openai": "^6.
|
|
76
|
+
"mermaid": "^11.12.2",
|
|
77
|
+
"openai": "^6.10.0",
|
|
78
78
|
"openapi-types": "^12.1.3",
|
|
79
79
|
"p-ratelimit": "^1.0.1",
|
|
80
80
|
"picomatch": "^4.0.3",
|
|
@@ -95,20 +95,20 @@
|
|
|
95
95
|
"remark-mdx": "^3.1.1",
|
|
96
96
|
"remark-message-control": "^8.0.0",
|
|
97
97
|
"remark-stringify": "^11.0.0",
|
|
98
|
-
"shiki": "^3.
|
|
99
|
-
"simple-git": "^3.
|
|
98
|
+
"shiki": "^3.20.0",
|
|
99
|
+
"simple-git": "^3.30.0",
|
|
100
100
|
"string-width": "^8.1.0",
|
|
101
101
|
"swagger2openapi": "^7.0.8",
|
|
102
102
|
"tinyglobby": "^0.2.15",
|
|
103
|
-
"type-fest": "^5.1
|
|
103
|
+
"type-fest": "^5.3.1",
|
|
104
104
|
"typescript": "^5.9.3",
|
|
105
|
-
"typescript-eslint": "^8.
|
|
105
|
+
"typescript-eslint": "^8.49.0",
|
|
106
106
|
"unified": "^11.0.5",
|
|
107
107
|
"unified-lint-rule": "^3.0.1",
|
|
108
108
|
"unist-util-position": "^5.0.0",
|
|
109
109
|
"unist-util-visit-parents": "^6.0.2",
|
|
110
110
|
"x-fetch": "^0.2.6",
|
|
111
|
-
"yaml": "^2.8.
|
|
111
|
+
"yaml": "^2.8.2",
|
|
112
112
|
"yoctocolors": "^2.1.2"
|
|
113
113
|
}
|
|
114
114
|
}
|
package/styles/global.scss
CHANGED
|
@@ -109,6 +109,20 @@ td {
|
|
|
109
109
|
@media (min-width: 1280px) {
|
|
110
110
|
display: none;
|
|
111
111
|
}
|
|
112
|
+
|
|
113
|
+
.rp-link:hover {
|
|
114
|
+
border-bottom: 0;
|
|
115
|
+
background-color: var(--rp-c-bg-mute);
|
|
116
|
+
border-radius: var(--rp-radius-small);
|
|
117
|
+
|
|
118
|
+
&:not(.rp-toc-item--active) .rp-toc-item__text {
|
|
119
|
+
color: var(--rp-c-text-1);
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
.rp-toc-item__text {
|
|
124
|
+
padding: 6px 12px;
|
|
125
|
+
}
|
|
112
126
|
}
|
|
113
127
|
|
|
114
128
|
.dark .doom-tabs .language-mdx {
|
package/styles/link.module.scss
CHANGED
|
@@ -1,3 +1,122 @@
|
|
|
1
|
+
:global {
|
|
2
|
+
.rp-relative {
|
|
3
|
+
position: relative;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
.rp-flex {
|
|
7
|
+
display: flex;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
.rp-items-center {
|
|
11
|
+
align-items: center;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.rp-justify-center {
|
|
15
|
+
justify-content: center;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.rp-h-14 {
|
|
19
|
+
height: 3.5rem;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.rp-duration-200 {
|
|
23
|
+
transition-duration: 0.2s;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.rp-transition-colors {
|
|
27
|
+
transition-property:
|
|
28
|
+
color, background-color, border-color, text-decoration-color, fill, stroke;
|
|
29
|
+
transition-duration: 0.15s;
|
|
30
|
+
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.rp-text-text-1 {
|
|
34
|
+
color: var(--rp-c-text-1);
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.hover\:rp-text-text-2:hover {
|
|
38
|
+
color: var(--rp-c-text-2);
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
.rp-font-medium {
|
|
42
|
+
font-weight: 500;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.rp-text-sm {
|
|
46
|
+
font-size: 0.875rem;
|
|
47
|
+
line-height: 1.25rem;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
.rp-cursor-pointer {
|
|
51
|
+
cursor: pointer;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.rp-absolute {
|
|
55
|
+
position: absolute;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
.rp-duration-300 {
|
|
59
|
+
transition-duration: 0.3s;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
.rp-transition-opacity {
|
|
63
|
+
transition-property: opacity;
|
|
64
|
+
transition-duration: 0.15s;
|
|
65
|
+
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
.rp-pr-2 {
|
|
69
|
+
padding-right: 0.5rem;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
.rp-p-3 {
|
|
73
|
+
padding: 0.75rem;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
.rp-whitespace-nowrap {
|
|
77
|
+
white-space: nowrap;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
.rp-w-full {
|
|
81
|
+
width: 100%;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
.rp-h-full {
|
|
85
|
+
height: 100%;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
.rp-rounded-2xl {
|
|
89
|
+
border-radius: 1rem;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
.rp-my-1 {
|
|
93
|
+
margin-top: 0.25rem;
|
|
94
|
+
margin-bottom: 0.25rem;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
.rp-text-brand {
|
|
98
|
+
color: var(--rp-c-brand);
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
.rp-py-2 {
|
|
102
|
+
padding-top: 0.5rem;
|
|
103
|
+
padding-bottom: 0.5rem;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
.rp-px-3 {
|
|
107
|
+
padding-left: 0.75rem;
|
|
108
|
+
padding-right: 0.75rem;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
.hover\:rp-bg-mute:hover {
|
|
112
|
+
background-color: var(--rp-c-bg-mute);
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
.rspress-nav-menu-item {
|
|
116
|
+
margin: -0.75rem -0.5rem;
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
|
|
1
120
|
.singleItem {
|
|
2
121
|
word-break: keep-all;
|
|
3
122
|
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|