NextJS template for Squiggle presentations
5bcfbc1f64
Bumps [eslint](https://github.com/eslint/eslint) from 8.23.0 to 8.24.0. - [Release notes](https://github.com/eslint/eslint/releases) - [Changelog](https://github.com/eslint/eslint/blob/main/CHANGELOG.md) - [Commits](https://github.com/eslint/eslint/compare/v8.23.0...v8.24.0) --- updated-dependencies: - dependency-name: eslint dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> |
||
---|---|---|
.github | ||
components | ||
pages | ||
public | ||
styles | ||
.eslintrc.json | ||
.gitignore | ||
next-env.d.ts | ||
next.config.mjs | ||
package.json | ||
README.md | ||
tsconfig.json | ||
yarn.lock |
This is a create-next-app
template for presenting a collection of estimates in squiggle
yarn create next-app our-estimates --example https://github.com/quantified-uncertainty/next-app-with-squiggle
Getting Started
First, run the development server:
yarn dev
Open http://localhost:3000 with your browser to see the result.
Edit the .mdx
files in pages
with your estimates
pages
├── _app.tsx
├── index.tsx
├── intro.md
├── latex-demo.md
├── squiggle-demo.mdx
├── team.md
└── worldview
├── ai.mdx
├── bio.mdx
└── index.md
After copying your .squiggle
files into public/estimates
public/
├── estimates
│ └── baz.squiggle
├── favicon.ico
├── quri-logo.png
└── quri-logo-with-QURI-written-underneath.png
A typical invocation of squiggle in a .mdx
file is as follows
import { DynamicSquiggleEditorWithImportedBindings as SquiggleEditor } from "../components/DynamicSquiggleEditorWithImportedBindings"
<SquiggleEditor defaultCode="xrisk.bioRiskAtYearAfter2022(4)" bindingsImportUrl="/estimates/xrisk.squiggle" />
Learn More
To learn more about Next.js, take a look at the following resources:
- Next.js Documentation - learn about Next.js features and API.
- Learn Next.js - an interactive Next.js tutorial.
You can check out the Next.js GitHub repository - your feedback and contributions are welcome!
Deploy on Vercel
The easiest way to deploy your Next.js app is to use the Vercel Platform from the creators of Next.js.
Check out the Next.js deployment documentation for more details.