Skip to content

Commit c7a2567

Browse files
committed
feat: use tailwindcss for styling
1 parent 1110635 commit c7a2567

File tree

11 files changed

+669
-63
lines changed

11 files changed

+669
-63
lines changed

README.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
1-
# OpenQuickJS Documentation
1+
# OpenQuickJS Docs
22

33
## Develop
44

55
```bash
66
pnpm i # install dependencies
77
pnpm dev # start dev server
8-
```
8+
```
9+
## Thanks
10+
11+
This website is hosted with [nextra](https://nextra.site/docs) on [vercel](https://vercel.com/).

next.config.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
const withNextra = require("nextra")({
2-
theme: "nextra-theme-docs",
3-
themeConfig: "./theme.config.tsx",
4-
});
1+
const withNextra = require('nextra')({
2+
theme: 'nextra-theme-docs',
3+
themeConfig: './theme.config.tsx'
4+
})
55

6-
module.exports = withNextra();
6+
module.exports = withNextra()

package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,9 @@
2626
},
2727
"devDependencies": {
2828
"@types/node": "18.11.10",
29+
"autoprefixer": "^10.4.14",
30+
"postcss": "^8.4.24",
31+
"tailwindcss": "^3.3.2",
2932
"typescript": "^4.9.3"
3033
}
3134
}

pages/_app.mdx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
import './global.css'
2+
3+
export default function App({ Component, pageProps }) {
4+
return <Component {...pageProps} />
5+
}

pages/_meta.json

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,5 @@
11
{
22
"index": "Introduction",
33
"another": "Another Page",
4-
"advanced": "Advanced (A Folder)",
5-
"about": {
6-
"title": "About",
7-
"type": "page"
8-
},
9-
"contact": {
10-
"title": "Contact ↗",
11-
"type": "page",
12-
"href": "https://twitter.com/shuding_",
13-
"newWindow": true
14-
}
4+
"advanced": "Advanced (A Folder)"
155
}

pages/global.css

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
@tailwind base;
2+
@tailwind components;
3+
@tailwind utilities;

0 commit comments

Comments
 (0)