@alauda/doom 1.14.2 → 1.14.3

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.
@@ -59,7 +59,7 @@ const VersionsNav_ = () => {
59
59
  }
60
60
  }
61
61
  else {
62
- const res = await fetch(`${isProduction() ? versionsBase : siteData.base}/versions.yaml`);
62
+ const res = await fetch(`${isProduction() ? versionsBase : siteData.base}versions.yaml`);
63
63
  if (!res.ok) {
64
64
  return;
65
65
  }
@@ -99,7 +99,7 @@ const VersionsNav_ = () => {
99
99
  const navItems = useMemo(() => {
100
100
  const versionItems = versions.map((v) => versionsBase == null
101
101
  ? { text: v, items: [] }
102
- : { text: v, link: `${versionsBase}/${v}/`, activeMatch: v });
102
+ : { text: v, link: `${versionsBase}${v}/`, activeMatch: v });
103
103
  if (versionsBase != null &&
104
104
  ALLOWED_LEGACY_DOMAINS.has(location.hostname) &&
105
105
  virtual.userBase === ACP_BASE) {
@@ -1,8 +1,7 @@
1
1
  import { lintRule } from 'unified-lint-rule';
2
2
  import { visitParents } from 'unist-util-visit-parents';
3
3
  export const listTableIntroduction = lintRule('doom-lint:list-table-introduction', (root, vfile) => {
4
- visitParents(root, ['list', 'table'], (node_, parents) => {
5
- const node = node_;
4
+ visitParents(root, ['list', 'table'], (node, parents) => {
6
5
  const parent = parents[parents.length - 1];
7
6
  const index = parent.children.indexOf(node);
8
7
  const prevSibling = parent.children[index - 1];
@@ -5,8 +5,7 @@ import { visitParents } from 'unist-util-visit-parents';
5
5
  import { extractTextAndId } from "../shared/helpers.js";
6
6
  const MAX_LENGTH = 40;
7
7
  export const maximumLinkContentLength = lintRule('doom-lint:maximum-link-content-length', (root, vfile) => {
8
- visit(root, ['link', 'lintReference'], (node_) => {
9
- const node = node_;
8
+ visit(root, ['link', 'linkReference'], (node) => {
10
9
  visitParents(node, 'text', (text, parents) => {
11
10
  let value = text.value;
12
11
  try {
@@ -107,7 +107,7 @@ export function Overview(props) {
107
107
  return [];
108
108
  }, [getGroup, overviewSidebarGroups]);
109
109
  const groups = customGroups ?? defaultGroups;
110
- return (_jsxs("div", { className: "overview-index doom-overview-index rp-mx-auto", 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", { style: { marginBottom: 8 }, children: _jsx(Link, { href: item.link, ...renderInlineMarkdown(item.text) }) }), _jsx("div", { className: classes.overviewDescription, children: item.description }), _jsx("ul", { className: "rp-list-none", children: item.headers?.map((header) => (_jsx("li", { className: `${classes.overviewGroupLi} ${classes[`level${header.depth}`]} first:rp-mt-2`, children: _jsx(Link, { href: `${item.link}#${header.id}`, ...renderInlineMarkdown(header.text) }) }, header.id))) })] }, item.link))) })] }, group.name)))] }));
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)))] }));
112
112
  }
113
113
  export default Overview;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alauda/doom",
3
- "version": "1.14.2",
3
+ "version": "1.14.3",
4
4
  "type": "module",
5
5
  "description": "Doctor Doom making docs.",
6
6
  "repository": {
@@ -62,7 +62,7 @@
62
62
  "commander": "^14.0.1",
63
63
  "ejs": "^3.1.10",
64
64
  "es-toolkit": "^1.40.0",
65
- "eslint": "^9.37.0",
65
+ "eslint": "^9.38.0",
66
66
  "eslint-plugin-mdx": "^3.6.2",
67
67
  "globals": "^16.4.0",
68
68
  "html-tag-names": "^2.1.0",
@@ -74,7 +74,7 @@
74
74
  "mdast-util-to-markdown": "^2.1.2",
75
75
  "mdast-util-to-string": "^4.0.0",
76
76
  "mermaid": "^11.12.0",
77
- "openai": "^6.3.0",
77
+ "openai": "^6.5.0",
78
78
  "openapi-types": "^12.1.3",
79
79
  "p-ratelimit": "^1.0.1",
80
80
  "picomatch": "^4.0.3",
@@ -106,7 +106,7 @@
106
106
  "unified": "^11.0.5",
107
107
  "unified-lint-rule": "^3.0.1",
108
108
  "unist-util-position": "^5.0.0",
109
- "unist-util-visit-parents": "^6.0.1",
109
+ "unist-util-visit-parents": "^6.0.2",
110
110
  "x-fetch": "^0.2.6",
111
111
  "yaml": "^2.8.1",
112
112
  "yoctocolors": "^2.1.2"
@@ -1,10 +1,22 @@
1
1
  :global .overview-index.doom-overview-index {
2
+ margin-left: auto;
3
+ margin-right: auto;
2
4
  padding-left: 0;
3
5
  padding-right: 0;
4
6
 
5
7
  h2:first-child:before {
6
8
  display: none;
7
9
  }
10
+
11
+ .rp-link:hover {
12
+ border-bottom: 0;
13
+ }
14
+ }
15
+
16
+ .overview-list {
17
+ list-style: none;
18
+ margin: 0;
19
+ padding-left: 0;
8
20
  }
9
21
 
10
22
  .overview-groups a {
@@ -53,6 +65,11 @@
53
65
  border-radius: var(--rp-radius);
54
66
  padding: 28px 32px;
55
67
  transition: background-color 0.5s;
68
+
69
+ h3 {
70
+ margin-top: 0;
71
+ margin-bottom: 8px;
72
+ }
56
73
  }
57
74
 
58
75
  .overview-description {