Skip to content

Commit f6aee4a

Browse files
committed
prompt engineering
1 parent fd879d1 commit f6aee4a

File tree

29 files changed

+312
-130
lines changed

29 files changed

+312
-130
lines changed

babel.config.js

Lines changed: 0 additions & 3 deletions
This file was deleted.

blog/2025-08/prompt-engineering.mdx

Lines changed: 154 additions & 50 deletions
Large diffs are not rendered by default.

docusaurus.config.ts

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,11 +116,17 @@ const config: Config = {
116116
},
117117
future: {
118118
v4: {
119-
useCssCascadeLayers: true
119+
useCssCascadeLayers: true,
120+
removeLegacyPostBuildHeadAttribute: true
120121
},
121122
experimental_faster: {
123+
swcJsLoader: true,
124+
swcJsMinimizer: true,
125+
swcHtmlMinimizer: true,
126+
lightningCssMinimizer: true,
122127
rspackBundler: true,
123-
rspackPersistentCache: true
128+
mdxCrossCompilerCache: true,
129+
ssgWorkerThreads: true
124130
}
125131
},
126132
markdown: {

package.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,8 @@
4747
"d3": "^7.9.0",
4848
"echarts": "^5.5.1",
4949
"file-saver": "^2.0.5",
50-
"heliannuuthus-docusaurus-authors": "file:./plugins/docusaurus-authors",
5150
"heliannuuthus-docusaurus-alias": "file:./plugins/docusaurus-alias",
51+
"heliannuuthus-docusaurus-authors": "file:./plugins/docusaurus-authors",
5252
"heliannuuthus-docusaurus-terminology": "file:./plugins/docusaurus-terminology",
5353
"heliannuuthus-parse-md": "file:./plugins/parse-md",
5454
"heliannuuthus-remark-admomition": "file:./packages/remark-admomition",
@@ -66,6 +66,7 @@
6666
"markmap-common": "^0.18.9",
6767
"markmap-lib": "^0.18.12",
6868
"markmap-view": "^0.18.12",
69+
"mdast-util-directive": "3.0.0",
6970
"package-up": "^5.0.0",
7071
"prism-react-renderer": "^2.3.0",
7172
"pushfeedback": "^0.1.63",
@@ -78,7 +79,8 @@
7879
"rehype-sanitize": "^6.0.0",
7980
"rehype-stringify": "^10.0.1",
8081
"remark": "^15.0.1",
81-
"remark-directive": "^3.0.1",
82+
"remark-directive": "^3.0.0",
83+
"remark-gfm": "^4.0.1",
8284
"remark-html": "^16.0.1",
8385
"remark-math": "^6.0.0",
8486
"remark-parse": "^11.0.0",

pnpm-lock.yaml

Lines changed: 27 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/components/Downloader.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import { DownloadOutlined, EyeOutlined } from "@ant-design/icons";
2+
import { Paragraph, Text } from "@components/Typography";
23
import { Button, Card, Drawer, Space, Tooltip, notification } from "antd";
34
import { createStyles } from "antd-style";
45
import { saveAs } from "file-saver";
@@ -8,8 +9,6 @@ import { isIPad13, isMobile, isTablet } from "react-device-detect";
89

910
import { useBaseUrlUtils } from "@docusaurus/useBaseUrl";
1011

11-
import { Paragraph, Text } from "@components/Typography";
12-
1312
import CodeBlock from "@theme/CodeBlock";
1413

1514
const useMobile = isMobile || isIPad13 || isTablet;

src/components/Tooltip.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
import { Tooltip as AntdTooltip, TooltipProps } from "antd";
22

33
const Tooltip = (props: TooltipProps) => {
4-
return <AntdTooltip {...props} />;
4+
return (
5+
<AntdTooltip placement="top" arrow={{ pointAtCenter: true }} {...props} />
6+
);
57
};
68

79
export default Tooltip;

src/components/collapse/Collapse.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
1-
import { Collapse as AntdCollapse, CollapseProps } from "antd";
2-
31
import { ExpandIcon } from "@components/collapse";
42
import { InlineMDXRender } from "@components/markdown/MDXRender";
3+
import { Collapse as AntdCollapse, CollapseProps } from "antd";
54

65
const Collapse: React.FC<{
76
label: React.ReactNode;

src/components/collapse/CollapseHeading.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
1+
import { ExpandIcon } from "@components/collapse";
12
import { Collapse as AntdCollapse } from "antd";
23
import { createStyles } from "antd-style";
34
import React from "react";
45

5-
import { ExpandIcon } from "@components/collapse";
6-
76
import Heading, { HeadingType } from "@theme/Heading";
87

98
const useStyles = createStyles(({ css }) => ({

src/components/collapse/index.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
import Icon, { EyeInvisibleOutlined, EyeOutlined } from "@ant-design/icons";
2-
import { createStyles } from "antd-style";
3-
42
import { Collapse, Collapses } from "@components/collapse/Collapse";
53
import CollapseHeading from "@components/collapse/CollapseHeading";
4+
import { createStyles } from "antd-style";
65

76
// 图标动画样式
87
const useIconStyles = createStyles(({ css }) => ({

0 commit comments

Comments
 (0)