Skip to content

Commit

Permalink
docs: update
Browse files Browse the repository at this point in the history
  • Loading branch information
atomiks committed Dec 6, 2023
1 parent 18b1045 commit ebd1c64
Show file tree
Hide file tree
Showing 7 changed files with 247 additions and 112 deletions.
4 changes: 3 additions & 1 deletion website/next.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
import fs from 'node:fs';
import nextMDX from '@next/mdx';
import rehypePrettyCode from 'rehype-pretty-code';
import rehypeSlug from 'rehype-slug';

/** @type {NextConfigPlugins} */
const plugins = [];
Expand All @@ -31,8 +32,9 @@ plugins.push(
nextMDX({
extension: /\.mdx?$/,
options: {
providerImportSource: '@mdx-js/react',
remarkPlugins: [],
rehypePlugins: [[rehypePrettyCode, options]],
rehypePlugins: [[rehypePrettyCode, options], rehypeSlug],
},
}),
);
Expand Down
161 changes: 91 additions & 70 deletions website/package-lock.json

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

7 changes: 4 additions & 3 deletions website/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,17 @@
"@tailwindcss/typography": "^0.5.9",
"@types/mdx": "^2.0.5",
"@types/node": "^20.8.9",
"@types/react": "18.2.6",
"@types/react": "^18.2.42",
"@types/react-dom": "18.2.4",
"autoprefixer": "10.4.14",
"eslint": "8.40.0",
"eslint-config-next": "13.4.3",
"next": "^13.5.6",
"next": "^14.0.3",
"postcss": "^8.4.31",
"react": "18.2.0",
"react-dom": "^18.2.0",
"rehype-pretty-code": "^0.12.0-beta.1",
"rehype-pretty-code": "^0.12.0",
"rehype-slug": "^6.0.0",
"shikiji": "^0.7.6",
"tailwindcss": "3.3.2",
"typescript": "^5.2.2"
Expand Down
2 changes: 1 addition & 1 deletion website/src/app/globals.css
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ pre {
}

code {
@apply !text-sm md:!text-base !leading-loose md:!leading-loose;
@apply text-sm md:text-base !leading-loose;
}

pre > code {
Expand Down
Loading

0 comments on commit ebd1c64

Please sign in to comment.