Skip to content

Commit

Permalink
fix: 修复运行文档黄色警告 & 删除右侧导航
Browse files Browse the repository at this point in the history
  • Loading branch information
ChenlingasMx committed Mar 25, 2023
1 parent f9f3836 commit 927474b
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
2 changes: 2 additions & 0 deletions examples/website/config/.kktprc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ export default {
env: 'development' | 'production',
options: LoaderConfOptions | undefined,
) => {
conf.module!.exprContextCritical = false;
conf.module!.exprContextRecursive = false;
conf = mdCodeModulesLoader(conf);
return conf;
},
Expand Down
2 changes: 1 addition & 1 deletion examples/website/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"description": "new webiste with kktp.",
"scripts": {
"build": "kktp build",
"start": "kktp start",
"start": "CI=false kktp start",
"prettier": "prettier --write '**/*.{js,jsx,tsx,ts,less,md,json}'",
"map": "source-map-explorer build/static/js/*.js --html build/website-result.html"
},
Expand Down
8 changes: 4 additions & 4 deletions examples/website/src/components/Preview/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,14 +35,14 @@ const Markdown = styled<
>(MarkdownPreview)`
padding: 20px 30px 120px 30px;
max-width: 1336px;
display: grid;
grid-template-columns: minmax(0, 3.5fr) 240px;
grid-template-areas: 'main toc';
&::after,
&::before {
content: none;
}
`;
// display: grid;
// grid-template-columns: minmax(0, 3.5fr) 240px;
// grid-template-areas: 'main toc';

const PreviewDocument = ({ path }: { path: MdDataHandle }) => {
const $dom = useRef<HTMLDivElement>(null);
Expand Down Expand Up @@ -95,7 +95,7 @@ const PreviewDocument = ({ path }: { path: MdDataHandle }) => {
tagName: 'div',
children: child as Element[],
},
tocData,
// tocData,
];
}
}
Expand Down

0 comments on commit 927474b

Please sign in to comment.