@alauda/doom 1.16.3 → 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.
Files changed (47) hide show
  1. package/lib/cli/load-config.js +16 -39
  2. package/lib/global/AuthCheck/index.js +1 -1
  3. package/lib/global/SiteOverrides/index.js +1 -1
  4. package/lib/login/index.js +1 -3
  5. package/lib/plugins/auto-sidebar/index.d.ts +1 -1
  6. package/lib/plugins/directives/remark-directives.js +2 -6
  7. package/lib/runtime/components/Badge.d.ts +1 -1
  8. package/lib/runtime/components/Badge.js +1 -1
  9. package/lib/runtime/components/JsonViewer.js +1 -1
  10. package/lib/runtime/components/K8sCrd.js +1 -1
  11. package/lib/runtime/components/OpenAPIPath.js +1 -1
  12. package/lib/runtime/components/OpenAPIRef.d.ts +1 -0
  13. package/lib/runtime/components/OpenAPIRef.js +36 -12
  14. package/lib/runtime/components/Overview.js +2 -2
  15. package/lib/runtime/components/PackageManagerTabs.d.ts +1 -1
  16. package/lib/runtime/components/PackageManagerTabs.js +1 -1
  17. package/lib/runtime/components/Steps.d.ts +1 -1
  18. package/lib/runtime/components/Steps.js +1 -1
  19. package/lib/runtime/components/Tab.d.ts +1 -1
  20. package/lib/runtime/components/Tab.js +1 -1
  21. package/lib/runtime/components/Tabs.d.ts +1 -1
  22. package/lib/runtime/components/Tabs.js +1 -1
  23. package/lib/runtime/components/Toc.d.ts +1 -1
  24. package/lib/runtime/components/Toc.js +1 -1
  25. package/lib/runtime/components/_HeadingTitle.js +1 -1
  26. package/lib/runtime/components/_X.d.ts +3 -3
  27. package/lib/runtime/components/_X.js +1 -1
  28. package/lib/runtime/utils.js +3 -3
  29. package/lib/theme/Layout.js +3 -2
  30. package/lib/theme/Search.js +1 -1
  31. package/lib/{global → theme}/VersionsNav/NavMenuGroup.js +2 -2
  32. package/lib/{global → theme}/VersionsNav/NavMenuSingleItem.d.ts +1 -1
  33. package/lib/{global → theme}/VersionsNav/NavMenuSingleItem.js +3 -3
  34. package/lib/{global → theme}/VersionsNav/index.js +1 -37
  35. package/lib/theme/index.d.ts +1 -1
  36. package/lib/theme/index.js +1 -1
  37. package/lib/theme/useEditLink.js +7 -7
  38. package/package.json +24 -24
  39. package/styles/global.scss +14 -0
  40. package/styles/link.module.scss +1 -1
  41. package/styles/versions-nav.module.scss +119 -0
  42. /package/lib/{global → theme}/VersionsNav/Down.d.ts +0 -0
  43. /package/lib/{global → theme}/VersionsNav/Down.js +0 -0
  44. /package/lib/{global → theme}/VersionsNav/NavMenuGroup.d.ts +0 -0
  45. /package/lib/{global → theme}/VersionsNav/SvgWrapper.d.ts +0 -0
  46. /package/lib/{global → theme}/VersionsNav/SvgWrapper.js +0 -0
  47. /package/lib/{global → theme}/VersionsNav/index.d.ts +0 -0
@@ -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 { editLink, ...zhLocale } = KNOWN_LOCALE_CONFIGS.zh;
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
- ...(fallbackToZh
195
- ? editRepoEnabled && editRepoBaseUrl
196
- ? {
197
- ...zhLocale,
198
- editLink: { ...editLink, docRepoBaseUrl: editRepoBaseUrl },
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('[class^=navBarTitle] > a');
5
+ const navBarLinks = document.querySelectorAll('.rp-nav__title__link');
6
6
  if (!navBarLinks.length) {
7
7
  return;
8
8
  }
@@ -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<import("@rspress/shared").DefaultThemeConfig>>;
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
- (CONTAINER_DIRECTIVE_TYPES.has(node.name) ||
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';
@@ -21,6 +21,7 @@ export interface OpenAPIRefProps {
21
21
  */
22
22
  collectRefs?: boolean;
23
23
  }
24
+ export declare const get$Ref: (obj: OpenAPIV3_1.ReferenceObject | OpenAPIV3_1.SchemaObject) => string | undefined;
24
25
  export declare const OpenAPIProperty: ({ name, property, openapi, }: {
25
26
  name?: string;
26
27
  property: OpenAPIV3_1.ReferenceObject | OpenAPIV3_1.SchemaObject;
@@ -8,38 +8,62 @@ import { HeadingTitle } from './_HeadingTitle.js';
8
8
  import { RefLink } from './_RefLink.js';
9
9
  import { X } from './_X.js';
10
10
  import { UidProvider, useUid } from './_context.js';
11
+ export const get$Ref = (obj) => {
12
+ if ('$ref' in obj && obj.$ref) {
13
+ return obj.$ref;
14
+ }
15
+ if ('allOf' in obj && Array.isArray(obj.allOf)) {
16
+ for (const item of obj.allOf) {
17
+ if ('$ref' in item && item.$ref) {
18
+ return item.$ref;
19
+ }
20
+ }
21
+ }
22
+ };
11
23
  export const OpenAPIProperty = ({ name, property, openapi, }) => {
12
- const propObj = '$ref' in property ? resolveRef(openapi, property.$ref) : property;
24
+ const prop$Ref = get$Ref(property);
25
+ const propObj = prop$Ref
26
+ ? resolveRef(openapi, prop$Ref)
27
+ : property;
13
28
  const type = propObj.type;
14
29
  let typeNode;
15
30
  let extraNode;
16
31
  if (type === 'array') {
17
32
  const { items } = propObj;
18
- const itemsObj = '$ref' in items ? resolveRef(openapi, items.$ref) : items;
33
+ const items$Ref = get$Ref(items);
34
+ const itemsObj = items$Ref
35
+ ? resolveRef(openapi, items$Ref)
36
+ : items;
19
37
  const itemsType = itemsObj.type;
20
- typeNode = (_jsxs("code", { children: ["[]", '$ref' in items ? _jsx(RefLink, { "$ref": items.$ref }) : itemsType] }));
38
+ typeNode = (_jsxs("code", { children: ["[]", items$Ref ? _jsx(RefLink, { "$ref": items$Ref }) : itemsType] }));
21
39
  }
22
40
  else if (type === 'object') {
23
- if ('properties' in property && property.properties) {
24
- extraNode = (_jsxs("div", { className: "my-4", children: [_jsx("em", { children: "Properties:" }), _jsx(OpenAPIProperties, { properties: property.properties, openapi: openapi })] }));
41
+ if (prop$Ref) {
42
+ typeNode = _jsx(RefLink, { "$ref": prop$Ref });
25
43
  }
26
44
  if (typeof propObj.additionalProperties === 'object') {
27
45
  const props = propObj.additionalProperties;
28
- const propsObj = '$ref' in props ? resolveRef(openapi, props.$ref) : props;
46
+ const props$Ref = get$Ref(props);
47
+ const propsObj = props$Ref
48
+ ? resolveRef(openapi, props$Ref)
49
+ : props;
29
50
  const propsType = propsObj.type;
30
- typeNode = (_jsxs("code", { children: ["map[string]", typeof propsType === 'string'
31
- ? propsType
32
- : '$ref' in props && _jsx(RefLink, { "$ref": props.$ref })] }));
51
+ typeNode = (_jsxs(_Fragment, { children: [typeNode, _jsxs("code", { children: ["map[string]", typeof propsType === 'string'
52
+ ? propsType
53
+ : props$Ref && _jsx(RefLink, { "$ref": props$Ref })] })] }));
54
+ if ('properties' in property && property.properties) {
55
+ extraNode = (_jsxs("div", { className: "my-4", children: [_jsx("em", { children: "Properties:" }), _jsx(OpenAPIProperties, { properties: property.properties, openapi: openapi })] }));
56
+ }
33
57
  }
34
- else {
58
+ else if (!prop$Ref) {
35
59
  typeNode = _jsx("code", { children: type });
36
60
  }
37
61
  }
38
62
  else if (typeof type === 'string') {
39
63
  typeNode = _jsx("code", { children: type });
40
64
  }
41
- else if ('$ref' in property) {
42
- typeNode = _jsx(RefLink, { "$ref": property.$ref });
65
+ else if (prop$Ref) {
66
+ typeNode = _jsx(RefLink, { "$ref": prop$Ref });
43
67
  }
44
68
  return (_jsxs(_Fragment, { children: [name && (_jsxs(_Fragment, { children: [_jsx("code", { children: name }), ":", ' '] })), typeNode, _jsx(Markdown, { children: propObj.description }), extraNode] }));
45
69
  };
@@ -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("h2", { ...renderInlineMarkdown(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)))] }));
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: [children, _jsx(X.a, { className: "header-anchor", href: `#${id}`, "aria-hidden": true, 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: (props: import("react").ComponentProps<"table">) => import("react/jsx-runtime").JSX.Element;
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: (props: import("react").HTMLProps<HTMLElement>) => import("react/jsx-runtime").JSX.Element;
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();
@@ -12,10 +12,10 @@ export const resolveRef = (openapi, ref) => {
12
12
  return get(openapi, ref.slice(2).split('/'));
13
13
  };
14
14
  const DEFAULT_COMMON_REFS = {
15
- 'v1alpha1.ListMeta': 'common-definitions/list-meta/#ListMeta',
16
- 'v1.ObjectMeta': 'common-definitions/object-meta/#ObjectMeta',
15
+ 'v1alpha1.ListMeta': 'list-meta/',
16
+ 'v1.ObjectMeta': 'object-meta/',
17
17
  };
18
- const K8S_DOC_PREFIX = 'https://kubernetes.io/docs/reference/kubernetes-api/';
18
+ const K8S_DOC_PREFIX = 'https://kubernetes.io/docs/reference/kubernetes-api/common-definitions/';
19
19
  export const COMMON_REFS = {
20
20
  ...Object.fromEntries(Object.entries(DEFAULT_COMMON_REFS).map(([key, value]) => [
21
21
  key,
@@ -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
  };
@@ -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, compact, download, link, pathname, rightIcon, text, tag, }: NavMenuSingleItemProps): import("react/jsx-runtime").JSX.Element;
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, compact, download, link, pathname, rightIcon, text, tag, }) {
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 ? `${styles.activeItem} rspress-nav-menu-item-active` : ''} rp-text-sm rp-font-medium ${compact ? 'rp-mx-0.5' : 'rp-mx-1.5'} rp-px-3 rp-py-2 rp-flex rp-items-center`, children: [_jsx(Tag, { tag: tag }), text, rightIcon] }) }, link));
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
- let finalNavMenu;
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;
@@ -1,4 +1,4 @@
1
- export * from '@rspress/core/theme';
1
+ export * from '@rspress/core/theme-original';
2
2
  export { EditLink } from './EditLink.tsx';
3
3
  export { Layout } from './Layout.tsx';
4
4
  export { Search } from './Search.tsx';
@@ -1,5 +1,5 @@
1
1
  /* eslint-disable import-x/export */
2
- export * from '@rspress/core/theme';
2
+ export * from '@rspress/core/theme-original';
3
3
  export { EditLink } from "./EditLink.js";
4
4
  export { Layout } from "./Layout.js";
5
5
  export { Search } from "./Search.js";
@@ -1,10 +1,10 @@
1
- import { useLocaleSiteData, usePageData } from '@rspress/runtime';
1
+ import { useI18n, usePageData } from '@rspress/runtime';
2
2
  export function useEditLink() {
3
3
  const { siteData, page } = usePageData();
4
- // eslint-disable-next-line @typescript-eslint/no-deprecated
5
- const locales = useLocaleSiteData();
6
- const editLink = locales.editLink ?? siteData.themeConfig.editLink;
7
- if (!editLink?.docRepoBaseUrl || !editLink.text) {
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?.some(({ lang }) => lang === lastSegment);
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: editLink.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.16.3",
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.2.2",
45
- "@eslint-react/eslint-plugin": "^2.2.4",
46
- "@inquirer/prompts": "^7.9.0",
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.1",
48
+ "@rsbuild/plugin-react": "^1.4.2",
49
49
  "@rsbuild/plugin-sass": "^1.4.0",
50
- "@rsbuild/plugin-svgr": "^1.2.2",
50
+ "@rsbuild/plugin-svgr": "^1.2.3",
51
51
  "@rsbuild/plugin-yaml": "^1.0.3",
52
- "@rspress/core": "2.0.0-beta.34",
53
- "@rspress/plugin-algolia": "2.0.0-beta.34",
54
- "@rspress/plugin-llms": "2.0.0-beta.34",
55
- "@rspress/plugin-sitemap": "2.0.0-beta.34",
56
- "@rspress/shared": "2.0.0-beta.34",
57
- "@shikijs/transformers": "^3.14.0",
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.2",
59
+ "@types/react": "^19.2.7",
60
60
  "ab64": "^0.1.6",
61
- "chokidar": "^4.0.3",
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.41.0",
66
- "eslint": "^9.38.0",
65
+ "es-toolkit": "^1.43.0",
66
+ "eslint": "^9.39.2",
67
67
  "eslint-plugin-mdx": "^3.6.2",
68
- "globals": "^16.4.0",
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.1",
77
- "openai": "^6.7.0",
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.14.0",
99
- "simple-git": "^3.28.0",
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.0",
103
+ "type-fest": "^5.3.1",
104
104
  "typescript": "^5.9.3",
105
- "typescript-eslint": "^8.46.2",
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.1",
111
+ "yaml": "^2.8.2",
112
112
  "yoctocolors": "^2.1.2"
113
113
  }
114
114
  }
@@ -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 {
@@ -24,7 +24,7 @@
24
24
 
25
25
  .link,
26
26
  :global(summary) .link {
27
- &:not(:global(.header-anchor)) {
27
+ &:not(:global(.rp-header-anchor)) {
28
28
  font-weight: 500;
29
29
  color: var(--rp-c-link);
30
30
  transition: color 0.25s;
@@ -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