Skip to content

Commit

Permalink
PoC: setup Nextra
Browse files Browse the repository at this point in the history
  • Loading branch information
MH4GF committed Nov 28, 2024
1 parent a5d98eb commit afceb66
Show file tree
Hide file tree
Showing 7 changed files with 3,886 additions and 70 deletions.
1 change: 1 addition & 0 deletions frontend/apps/docs/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.next
8 changes: 8 additions & 0 deletions frontend/apps/docs/next.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import nextra from 'nextra'

const withNextra = nextra({
theme: 'nextra-theme-docs',
themeConfig: './theme.config.jsx'
})

export default withNextra()
15 changes: 15 additions & 0 deletions frontend/apps/docs/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"name": "@liam/docs",
"dependencies": {
"next": "^15.0.3",
"nextra": "^3.2.4",
"nextra-theme-docs": "^3.2.4",
"react": "^18",
"react-dom": "^18"
},
"scripts": {
"dev": "next",
"build": "next build",
"start": "next start"
}
}
3 changes: 3 additions & 0 deletions frontend/apps/docs/pages/_app.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
export default function App({ Component, pageProps }) {
return <Component {...pageProps} />
}
3 changes: 3 additions & 0 deletions frontend/apps/docs/pages/index.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Welcome to Nextra

Hello, world!
6 changes: 6 additions & 0 deletions frontend/apps/docs/theme.config.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
export default {
logo: <span>My Nextra Documentation</span>,
project: {
link: 'https://github.com/shuding/nextra'
}
}
Loading

0 comments on commit afceb66

Please sign in to comment.