Skip to content

Commit

Permalink
Add nextra
Browse files Browse the repository at this point in the history
  • Loading branch information
ken-matsui committed Jun 2, 2024
1 parent b8a121b commit 4ee94ea
Show file tree
Hide file tree
Showing 18 changed files with 2,254 additions and 46 deletions.
1 change: 1 addition & 0 deletions next-env.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
/// <reference types="next" />
/// <reference types="next/image-types/global" />
/// <reference types="next/navigation-types/compat/navigation" />

// NOTE: This file should not be edited
// see https://nextjs.org/docs/basic-features/typescript for more information.
7 changes: 5 additions & 2 deletions next.config.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
/** @type {import('next').NextConfig} */
const nextConfig = {};
const withNextra = require('nextra')({
theme: 'nextra-theme-docs',
themeConfig: './theme.config.jsx'
});

module.exports = nextConfig;
module.exports = withNextra();
8 changes: 5 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,12 @@
"@vercel/speed-insights": "^1.0.10",
"framer-motion": "^11.2.10",
"graphql": "^16.8.1",
"next": "14.2.3",
"next": "^14.2.3",
"next-themes": "^0.3.0",
"react": "18.3.1",
"react-dom": "18.3.1",
"nextra": "^2.13.4",
"nextra-theme-docs": "^2.13.4",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"react-markdown": "^9.0.1",
"semver": "^7.6.2",
"timeago.js": "^4.0.2"
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes.
7 changes: 7 additions & 0 deletions theme.config.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
export default {
logo: <span>My Nextra Documentation</span>,
project: {
link: 'https://github.com/poac-dev/poac'
}
// ... other theme options
}
2,277 changes: 2,236 additions & 41 deletions yarn.lock

Large diffs are not rendered by default.

0 comments on commit 4ee94ea

Please sign in to comment.