NextJS template for Squiggle presentations
Go to file
dependabot[bot] 2328dda60f
⬆️ Bump next from 12.2.5 to 12.3.0
Bumps [next](https://github.com/vercel/next.js) from 12.2.5 to 12.3.0.
- [Release notes](https://github.com/vercel/next.js/releases)
- [Changelog](https://github.com/vercel/next.js/blob/canary/release.js)
- [Commits](https://github.com/vercel/next.js/compare/v12.2.5...v12.3.0)

---
updated-dependencies:
- dependency-name: next
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-09-09 07:50:13 +00:00
.github Create codeql-analysis.yml 2022-08-01 11:00:35 -04:00
components rm comment 2022-08-01 04:06:55 -04:00
pages update README.md 2022-08-01 04:03:01 -04:00
public begin squiggle app 2022-08-01 03:43:16 -04:00
styles begin squiggle app 2022-08-01 03:43:16 -04:00
.eslintrc.json Initial commit from Create Next App 2022-08-01 02:52:49 -04:00
.gitignore Initial commit from Create Next App 2022-08-01 02:52:49 -04:00
next-env.d.ts Initial commit from Create Next App 2022-08-01 02:52:49 -04:00
next.config.mjs begin squiggle app 2022-08-01 03:43:16 -04:00
package.json ⬆️ Bump next from 12.2.5 to 12.3.0 2022-09-09 07:50:13 +00:00
README.md update README.md 2022-08-01 04:03:01 -04:00
tsconfig.json Initial commit from Create Next App 2022-08-01 02:52:49 -04:00
yarn.lock ⬆️ Bump next from 12.2.5 to 12.3.0 2022-09-09 07:50:13 +00:00

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.