update page layout
This commit is contained in:
@@ -1,8 +1,16 @@
|
||||
import nextra from 'nextra'
|
||||
|
||||
const withNextra = nextra({
|
||||
theme: 'nextra-theme-blog',
|
||||
themeConfig: './theme.config.jsx'
|
||||
theme: 'nextra-theme-docs',
|
||||
themeConfig: './theme.config.jsx',
|
||||
latex: {
|
||||
renderer: 'katex',
|
||||
// options: {
|
||||
// macros: {
|
||||
// '\\RR': '\\mathbb{R}'
|
||||
// }
|
||||
// }
|
||||
}
|
||||
})
|
||||
|
||||
export default withNextra()
|
||||
|
||||
@@ -6,9 +6,9 @@
|
||||
},
|
||||
"dependencies": {
|
||||
"next": "^15.0.3",
|
||||
"react": "^18.3.1",
|
||||
"react-dom": "^18.3.1",
|
||||
"nextra": "^3.2.3",
|
||||
"nextra-theme-blog": "^3.2.3"
|
||||
"nextra-theme-docs": "^3.2.3",
|
||||
"react": "^18.3.1",
|
||||
"react-dom": "^18.3.1"
|
||||
}
|
||||
}
|
||||
48
pages/Math4111/_meta.js
Normal file
48
pages/Math4111/_meta.js
Normal file
@@ -0,0 +1,48 @@
|
||||
export default {
|
||||
Exam_reviews: "Exam reviews",
|
||||
Math4111_L1: "Lecture 1",
|
||||
Math4111_L2: "Lecture 2",
|
||||
Math4111_L3: "Lecture 3",
|
||||
Math4111_L4: "Lecture 4",
|
||||
Math4111_L5: "Lecture 5",
|
||||
Math4111_L6: "Lecture 6",
|
||||
Math4111_L7: "Lecture 7",
|
||||
Math4111_L8: "Lecture 8",
|
||||
Math4111_L9: "Lecture 9",
|
||||
Math4111_L10: "Lecture 10",
|
||||
Math4111_L11: "Lecture 11",
|
||||
Math4111_L12: "Lecture 12",
|
||||
Math4111_L13: "Lecture 13",
|
||||
Math4111_L14: "Lecture 14",
|
||||
Math4111_L15: "Lecture 15",
|
||||
Math4111_L16: "Lecture 16",
|
||||
Math4111_L17: "Lecture 17",
|
||||
Math4111_L18: "Lecture 18",
|
||||
Math4111_L19: "Lecture 19",
|
||||
Math4111_L20: "Lecture 20",
|
||||
Math4111_L21: "Lecture 21",
|
||||
Math4111_L22: {
|
||||
display: 'hidden'
|
||||
},
|
||||
Math4111_L23: {
|
||||
display: 'hidden'
|
||||
},
|
||||
Math4111_L24: {
|
||||
display: 'hidden'
|
||||
},
|
||||
Math4111_L25: {
|
||||
display: 'hidden'
|
||||
},
|
||||
Math4111_L26: {
|
||||
display: 'hidden'
|
||||
},
|
||||
Math4111_L27: {
|
||||
display: 'hidden'
|
||||
},
|
||||
Math4111_L28: {
|
||||
display: 'hidden'
|
||||
},
|
||||
index: {
|
||||
display: 'hidden'
|
||||
}
|
||||
}
|
||||
0
pages/Math4111/index.mdx
Normal file
0
pages/Math4111/index.mdx
Normal file
@@ -1,3 +1,9 @@
|
||||
import { ThemeProvider } from 'next-themes'
|
||||
|
||||
export default function App({ Component, pageProps }) {
|
||||
return <Component {...pageProps} />
|
||||
return (
|
||||
<ThemeProvider attribute='class'>
|
||||
<Component {...pageProps} />
|
||||
</ThemeProvider>
|
||||
)
|
||||
}
|
||||
@@ -1,5 +1,30 @@
|
||||
export default {
|
||||
index: 'My Homepage',
|
||||
contact: 'Contact Us',
|
||||
about: 'About Us'
|
||||
index: {
|
||||
title: 'Home',
|
||||
type: 'menu',
|
||||
items: {
|
||||
index: {
|
||||
title: 'Home',
|
||||
href: '/'
|
||||
},
|
||||
about: {
|
||||
title: 'About',
|
||||
href: '/about'
|
||||
},
|
||||
contact: {
|
||||
title: 'Contact Me',
|
||||
href: '/contact'
|
||||
}
|
||||
}
|
||||
},
|
||||
Math4111: {
|
||||
title: 'Math 4111',
|
||||
type: 'page'
|
||||
},
|
||||
about: {
|
||||
display: 'hidden'
|
||||
},
|
||||
contact: {
|
||||
display: 'hidden'
|
||||
}
|
||||
}
|
||||
4
pages/about.mdx
Normal file
4
pages/about.mdx
Normal file
@@ -0,0 +1,4 @@
|
||||
# About
|
||||
|
||||
##
|
||||
|
||||
4
pages/contact.mdx
Normal file
4
pages/contact.mdx
Normal file
@@ -0,0 +1,4 @@
|
||||
# contact
|
||||
|
||||
##
|
||||
|
||||
41
pnpm-lock.yaml
generated
41
pnpm-lock.yaml
generated
@@ -14,7 +14,7 @@ importers:
|
||||
nextra:
|
||||
specifier: ^3.2.3
|
||||
version: 3.2.3(@types/react@18.3.12)(acorn@8.14.0)(next@15.0.3(react-dom@18.3.1(react@18.3.1))(react@18.3.1))(react-dom@18.3.1(react@18.3.1))(react@18.3.1)(typescript@5.6.3)
|
||||
nextra-theme-blog:
|
||||
nextra-theme-docs:
|
||||
specifier: ^3.2.3
|
||||
version: 3.2.3(next@15.0.3(react-dom@18.3.1(react@18.3.1))(react@18.3.1))(nextra@3.2.3(@types/react@18.3.12)(acorn@8.14.0)(next@15.0.3(react-dom@18.3.1(react@18.3.1))(react@18.3.1))(react-dom@18.3.1(react@18.3.1))(react@18.3.1)(typescript@5.6.3))(react-dom@18.3.1(react@18.3.1))(react@18.3.1)
|
||||
react:
|
||||
@@ -694,6 +694,9 @@ packages:
|
||||
resolution: {integrity: sha512-e2i4wANQiSXgnrBlIatyHtP1odfUp0BbV5Y5nEGbxtIrStkEOAAzCUirvLBNXHLr7kwLvJl6V+4V3XV9x7Wd9w==}
|
||||
engines: {node: ^12.20.0 || >=14}
|
||||
|
||||
compute-scroll-into-view@3.1.0:
|
||||
resolution: {integrity: sha512-rj8l8pD4bJ1nx+dAkMhV1xB5RuZEyVysfxJqB1pRchh1KVvwOv9b7CGB8ZfjTImVv2oF+sYMUkMZq6Na5Ftmbg==}
|
||||
|
||||
confbox@0.1.8:
|
||||
resolution: {integrity: sha512-RMtmw0iFkeR4YV+fUOSucriAQNb9g8zFR52MWCtl+cCZOFRNL6zeB395vPzFhEjjn4fMxXudmELnl/KF/WrK6w==}
|
||||
|
||||
@@ -972,6 +975,9 @@ packages:
|
||||
fault@2.0.1:
|
||||
resolution: {integrity: sha512-WtySTkS4OKev5JtpHXnib4Gxiurzh5NCGvWrFaZ34m6JehfTUhKZvn9njTfw48t6JumVQOmrKqpmGcdwxnhqBQ==}
|
||||
|
||||
flexsearch@0.7.43:
|
||||
resolution: {integrity: sha512-c5o/+Um8aqCSOXGcZoqZOm+NqtVwNsvVpWv6lfmSclU954O3wvQKxxK8zj74fPaSJbXpSLTs4PRhh+wnoCXnKg==}
|
||||
|
||||
format@0.2.2:
|
||||
resolution: {integrity: sha512-wzsgA6WOq+09wrU1tsJ09udeR/YZRaeArL9e1wPbFg3GG2yDnC2ldKpxs4xunpFF9DgqCqOIra3bc1HWrJ37Ww==}
|
||||
engines: {node: '>=0.4.x'}
|
||||
@@ -1387,6 +1393,14 @@ packages:
|
||||
react-cusdis:
|
||||
optional: true
|
||||
|
||||
nextra-theme-docs@3.2.3:
|
||||
resolution: {integrity: sha512-kRhnLxbAbD3FgR93yLbu6Iz6XvErka3I5CcVo3VobLuV1mefbZ1T6DfiY6q0KJoHLGRrJESsFSarIqPjKOx00g==}
|
||||
peerDependencies:
|
||||
next: '>=13'
|
||||
nextra: 3.2.3
|
||||
react: '>=18'
|
||||
react-dom: '>=18'
|
||||
|
||||
nextra@3.2.3:
|
||||
resolution: {integrity: sha512-MyNA2kPvDyJK1trjFkwpTdMOKJu/MIueENHtmLoxPnyOi3fxtk9H5k6b5WdMGBibsyFeXqTz9REnz7d1/xL9Hg==}
|
||||
engines: {node: '>=18'}
|
||||
@@ -1570,6 +1584,9 @@ packages:
|
||||
scheduler@0.23.2:
|
||||
resolution: {integrity: sha512-UOShsPwz7NrMUqhR6t0hWjFduvOzbtv7toDH1/hIrfRNIDBnnBWd0CwJTGvTpngVlmwGCdP9/Zl/tVrDqcuYzQ==}
|
||||
|
||||
scroll-into-view-if-needed@3.1.0:
|
||||
resolution: {integrity: sha512-49oNpRjWRvnU8NyGVmUaYG4jtTkNonFZI86MmGRDqBphEK2EXT9gdEUoQPZhuBM8yWHxCWbobltqYO5M4XrUvQ==}
|
||||
|
||||
section-matter@1.0.0:
|
||||
resolution: {integrity: sha512-vfD3pmTzGpufjScBh50YHKzEu2lxBWhVEHsNGoEXmCmn2hKGfeNLYMzCJpe8cD7gqX7TJluOVpBkAequ6dgMmA==}
|
||||
engines: {node: '>=4'}
|
||||
@@ -2501,6 +2518,8 @@ snapshots:
|
||||
|
||||
commander@9.2.0: {}
|
||||
|
||||
compute-scroll-into-view@3.1.0: {}
|
||||
|
||||
confbox@0.1.8: {}
|
||||
|
||||
cose-base@1.0.3:
|
||||
@@ -2817,6 +2836,8 @@ snapshots:
|
||||
dependencies:
|
||||
format: 0.2.2
|
||||
|
||||
flexsearch@0.7.43: {}
|
||||
|
||||
format@0.2.2: {}
|
||||
|
||||
get-stream@3.0.0: {}
|
||||
@@ -3629,6 +3650,20 @@ snapshots:
|
||||
react: 18.3.1
|
||||
react-dom: 18.3.1(react@18.3.1)
|
||||
|
||||
nextra-theme-docs@3.2.3(next@15.0.3(react-dom@18.3.1(react@18.3.1))(react@18.3.1))(nextra@3.2.3(@types/react@18.3.12)(acorn@8.14.0)(next@15.0.3(react-dom@18.3.1(react@18.3.1))(react@18.3.1))(react-dom@18.3.1(react@18.3.1))(react@18.3.1)(typescript@5.6.3))(react-dom@18.3.1(react@18.3.1))(react@18.3.1):
|
||||
dependencies:
|
||||
'@headlessui/react': 2.2.0(react-dom@18.3.1(react@18.3.1))(react@18.3.1)
|
||||
clsx: 2.1.1
|
||||
escape-string-regexp: 5.0.0
|
||||
flexsearch: 0.7.43
|
||||
next: 15.0.3(react-dom@18.3.1(react@18.3.1))(react@18.3.1)
|
||||
next-themes: 0.4.3(react-dom@18.3.1(react@18.3.1))(react@18.3.1)
|
||||
nextra: 3.2.3(@types/react@18.3.12)(acorn@8.14.0)(next@15.0.3(react-dom@18.3.1(react@18.3.1))(react@18.3.1))(react-dom@18.3.1(react@18.3.1))(react@18.3.1)(typescript@5.6.3)
|
||||
react: 18.3.1
|
||||
react-dom: 18.3.1(react@18.3.1)
|
||||
scroll-into-view-if-needed: 3.1.0
|
||||
zod: 3.23.8
|
||||
|
||||
nextra@3.2.3(@types/react@18.3.12)(acorn@8.14.0)(next@15.0.3(react-dom@18.3.1(react@18.3.1))(react@18.3.1))(react-dom@18.3.1(react@18.3.1))(react@18.3.1)(typescript@5.6.3):
|
||||
dependencies:
|
||||
'@formatjs/intl-localematcher': 0.5.7
|
||||
@@ -3964,6 +3999,10 @@ snapshots:
|
||||
dependencies:
|
||||
loose-envify: 1.4.0
|
||||
|
||||
scroll-into-view-if-needed@3.1.0:
|
||||
dependencies:
|
||||
compute-scroll-into-view: 3.1.0
|
||||
|
||||
section-matter@1.0.0:
|
||||
dependencies:
|
||||
extend-shallow: 2.0.1
|
||||
|
||||
@@ -1,21 +1,54 @@
|
||||
import { useRouter } from 'next/router'
|
||||
import { useConfig } from 'nextra-theme-docs'
|
||||
|
||||
export default {
|
||||
footer: <p>MIT 2023 © Nextra.</p>,
|
||||
head: ({ title, meta }) => (
|
||||
footer: {
|
||||
content: (
|
||||
<span>
|
||||
MIT {new Date().getFullYear()} ©{' '}
|
||||
<a href="https://github.com/Trance-0" target="_blank">
|
||||
Trance-0
|
||||
</a>
|
||||
.
|
||||
</span>
|
||||
)
|
||||
},
|
||||
head() {
|
||||
const { asPath, defaultLocale, locale } = useRouter()
|
||||
const { frontMatter } = useConfig()
|
||||
const url =
|
||||
'https://vercel.com/notenextra' +
|
||||
(defaultLocale === locale ? asPath : `/${locale}${asPath}`)
|
||||
|
||||
return (
|
||||
<>
|
||||
{meta.description && (
|
||||
<meta name="description" content={meta.description} />
|
||||
)}
|
||||
{meta.tag && <meta name="keywords" content={meta.tag} />}
|
||||
{meta.author && <meta name="author" content={meta.author} />}
|
||||
<meta property="og:url" content={url} />
|
||||
<meta property="og:title" content={frontMatter.title || 'NoteNextra'} />
|
||||
<meta
|
||||
property="og:description"
|
||||
content={frontMatter.description || 'A static note sharing site for minimum care'}
|
||||
/>
|
||||
</>
|
||||
),
|
||||
readMore: 'Read More →',
|
||||
postFooter: null,
|
||||
darkMode: false,
|
||||
navs: [
|
||||
{
|
||||
url: 'https://github.com/shuding/nextra',
|
||||
name: 'Nextra'
|
||||
}
|
||||
]
|
||||
}
|
||||
)
|
||||
},
|
||||
|
||||
logo: (
|
||||
<>
|
||||
<svg width="24" height="24" viewBox="0 0 24 24">
|
||||
<path fillRule="evenodd" d="M1.114 8.063V7.9c1.005-.102 1.497-.615 1.497-1.6V4.503c0-1.094.39-1.538 1.354-1.538h.273V2h-.376C2.25 2 1.49 2.759 1.49 4.352v1.524c0 1.094-.376 1.456-1.49 1.456v1.299c1.114 0 1.49.362 1.49 1.456v1.524c0 1.593.759 2.352 2.372 2.352h.376v-.964h-.273c-.964 0-1.354-.444-1.354-1.538V9.663c0-.984-.492-1.497-1.497-1.6M14.886 7.9v.164c-1.005.103-1.497.616-1.497 1.6v1.798c0 1.094-.39 1.538-1.354 1.538h-.273v.964h.376c1.613 0 2.372-.759 2.372-2.352v-1.524c0-1.094.376-1.456 1.49-1.456v-1.3c-1.114 0-1.49-.362-1.49-1.456V4.352C14.51 2.759 13.75 2 12.138 2h-.376v.964h.273c.964 0 1.354.444 1.354 1.538V6.3c0 .984.492 1.497 1.497 1.6M7.5 11.5V9.207l-1.621 1.621-.707-.707L6.792 8.5H4.5v-1h2.293L5.172 5.879l.707-.707L7.5 6.792V4.5h1v2.293l1.621-1.621.707.707L9.208 7.5H11.5v1H9.207l1.621 1.621-.707.707L8.5 9.208V11.5z"/>
|
||||
</svg>
|
||||
<span style={{ marginLeft: '.4em', fontWeight: 800 }}>
|
||||
NoteNextra
|
||||
</span>
|
||||
</>
|
||||
),
|
||||
readMore: 'Read More →',
|
||||
postFooter: null,
|
||||
darkMode: false,
|
||||
navs: [
|
||||
{
|
||||
url: 'https://github.com/Trance-0/NoteNextra',
|
||||
name: 'Source'
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user