NextJS template for Squiggle presentations
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
Go to file
dependabot[bot] d957e919b9
⬆️ Bump eslint-config-next from 12.2.4 to 12.3.0
2 years ago
.github hotfix: `dependabot` settings 2 years ago
components rm comment 2 years ago
pages update README.md 2 years ago
public begin squiggle app 2 years ago
styles begin squiggle app 2 years ago
.eslintrc.json Initial commit from Create Next App 2 years ago
.gitignore Initial commit from Create Next App 2 years ago
README.md update README.md 2 years ago
next-env.d.ts Initial commit from Create Next App 2 years ago
next.config.mjs begin squiggle app 2 years ago
package.json ⬆️ Bump eslint-config-next from 12.2.4 to 12.3.0 2 years ago
tsconfig.json Initial commit from Create Next App 2 years ago
yarn.lock ⬆️ Bump eslint-config-next from 12.2.4 to 12.3.0 2 years ago

README.md

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:

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.