Skip to content

Commit

Permalink
docs: no highlight
Browse files Browse the repository at this point in the history
  • Loading branch information
hngngn committed Feb 14, 2024
1 parent 4d43f5e commit da82467
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 116 deletions.
1 change: 0 additions & 1 deletion apps/www/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@
"prettier": "^3.1.1",
"prettier-plugin-tailwindcss": "^0.5.11",
"rehype-pretty-code": "^0.6.0",
"rehype-raw": "^7.0.0",
"rehype-slug": "^6.0.0",
"remark-frontmatter": "^5.0.0",
"remark-gfm": "^3.0.0",
Expand Down
2 changes: 1 addition & 1 deletion apps/www/src/contents/docs/dark-mode.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ description: Adding dark mode to your site.

Add the `ColorModeProvider` and `ColorModeScript` to your app.

```tsx {1-5,28-31} title="src/app.tsx"
```tsx {1,9-12,15,22-23} title="src/app.tsx"
import { ColorModeProvider, ColorModeScript, cookieStorageManagerSSR } from "@kobalte/core";
import { MetaProvider } from "@solidjs/meta";
import { Router } from "@solidjs/router";
Expand Down
3 changes: 0 additions & 3 deletions apps/www/vite.config.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
/* @ts-ignore */
import pkg from "@vinxi/plugin-mdx";

import { nodeTypes } from "@mdx-js/mdx";
import { defineConfig } from "@solidjs/start/config";
import { join, resolve } from "path";
import rehypePrettyCode from "rehype-pretty-code";
import rehypeRaw from "rehype-raw";
import rehypeSlug from "rehype-slug";
import remarkFrontmatter from "remark-frontmatter";
import remarkGFM from "remark-gfm";
Expand Down Expand Up @@ -35,7 +33,6 @@ export default defineConfig({
rehypePlugins: [
rehypeSlug,
solidHeadings,
[rehypeRaw, { passThrough: nodeTypes }],
rehypeComponent,
() => (tree: any) => {
visit(tree, (node: any) => {
Expand Down
116 changes: 5 additions & 111 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit da82467

Please sign in to comment.