Skip to content

Commit d40cba8

Browse files
committed
add site support
1 parent 87d9ff4 commit d40cba8

21 files changed

+6207
-307
lines changed

.gitignore

+5-1
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,8 @@ notebooks/.ipynb_checkpoints/
88
notebooks/__pycache__/
99
notebooks/state_of_the_union.txt
1010
notebooks/chroma_logs.log
11-
notebooks/.chroma/
11+
notebooks/.chroma/
12+
13+
# app
14+
.next
15+
node_modules

README.md

+4-306
Large diffs are not rendered by default.

components/counters.module.css

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
.counter {
2+
border: 1px solid #ccc;
3+
border-radius: 5px;
4+
padding: 2px 6px;
5+
margin: 12px 0 0;
6+
}

components/counters.tsx

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
// Example from https://beta.reactjs.org/learn
2+
3+
import { useState } from 'react'
4+
import styles from './counters.module.css'
5+
6+
function MyButton() {
7+
const [count, setCount] = useState(0)
8+
9+
function handleClick() {
10+
setCount(count + 1)
11+
}
12+
13+
return (
14+
<div>
15+
<button onClick={handleClick} className={styles.counter}>
16+
Clicked {count} times
17+
</button>
18+
</div>
19+
)
20+
}
21+
22+
export default function MyApp() {
23+
return <MyButton />
24+
}

next-env.d.ts

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
/// <reference types="next" />
2+
/// <reference types="next/image-types/global" />
3+
4+
// NOTE: This file should not be edited
5+
// see https://nextjs.org/docs/basic-features/typescript for more information.

next.config.js

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
const withNextra = require('nextra')({
2+
theme: 'nextra-theme-docs',
3+
themeConfig: './theme.config.tsx',
4+
})
5+
6+
module.exports = withNextra()

0 commit comments

Comments
 (0)