diff --git a/packages/website/blog/2019-09-05-short-presentation.md b/packages/website/blog/2019-09-05-short-presentation.md index 81adf3a8..7297f8a6 100644 --- a/packages/website/blog/2019-09-05-short-presentation.md +++ b/packages/website/blog/2019-09-05-short-presentation.md @@ -1,5 +1,5 @@ --- -slug: Squiggle-Talk +slug: squiggle-talk title: The Squiggly language (Short Presentation) authors: ozzie --- diff --git a/packages/website/blog/2021-11-23-overview.md b/packages/website/blog/2021-11-23-overview.md index 9d608963..f46e467e 100644 --- a/packages/website/blog/2021-11-23-overview.md +++ b/packages/website/blog/2021-11-23-overview.md @@ -1,5 +1,5 @@ --- -slug: overview-1 +slug: overview title: Squiggle Overview authors: ozzie --- diff --git a/packages/website/docs/Javscript-library.md b/packages/website/docs/Javscript-library.md index 123b50a2..4456119d 100644 --- a/packages/website/docs/Javscript-library.md +++ b/packages/website/docs/Javscript-library.md @@ -1,7 +1,16 @@ --- -sidebar_position: 3 +sidebar_position: 2 --- # Javascript Library +There's a very simple javscript library for Squiggle here: https://www.npmjs.com/package/squiggle-experimental. +You can see it live on this Observable page: [https://observablehq.com/d/a99e822870c4ca5f](https://observablehq.com/d/a99e822870c4ca5f). + + +## Simple Example +``` +let squiggle = require("squiggle-experimental@0.1.9/dist/index.js") +squiggle.runMePlease("3 + normal(50,1)) +``` \ No newline at end of file diff --git a/packages/website/docs/Language.md b/packages/website/docs/Language.md index ff2ef002..efedad54 100644 --- a/packages/website/docs/Language.md +++ b/packages/website/docs/Language.md @@ -1,5 +1,5 @@ --- -sidebar_position: 2 +sidebar_position: 1 --- # Squiggle Language diff --git a/packages/website/docusaurus.config.js b/packages/website/docusaurus.config.js index c48516dd..2ce1a26d 100644 --- a/packages/website/docusaurus.config.js +++ b/packages/website/docusaurus.config.js @@ -6,8 +6,8 @@ const darkCodeTheme = require('prism-react-renderer/themes/dracula'); /** @type {import('@docusaurus/types').Config} */ const config = { - title: 'Squiggle', - tagline: 'A programming language for probabilistic estimation', + title: 'Squiggle (alpha)', + tagline: "A programming language for probabilistic estimation. It's still heavily experimental, and we're working to get to a stable release candidate.", url: 'https://squiggle-documentation.netlify.app', baseUrl: '/', onBrokenLinks: 'throw', diff --git a/packages/website/src/components/HomepageFeatures.js b/packages/website/src/components/HomepageFeatures.js index 16f820b1..269f986e 100644 --- a/packages/website/src/components/HomepageFeatures.js +++ b/packages/website/src/components/HomepageFeatures.js @@ -4,32 +4,29 @@ import styles from './HomepageFeatures.module.css'; const FeatureList = [ { - title: 'Easy to Use', - Svg: require('../../static/img/undraw_docusaurus_mountain.svg').default, - description: ( - <> - Docusaurus was designed from the ground up to be easily installed and - used to get your website up and running quickly. - - ), - }, - { - title: 'Focus on What Matters', + title: 'Probabilistic', Svg: require('../../static/img/undraw_docusaurus_tree.svg').default, description: ( <> - Docusaurus lets you focus on your docs, and we'll do the chores. Go - ahead and move your docs into the docs directory. + Squiggle makes working with probability distributions really easy. ), }, { - title: 'Powered by React', + title: 'Portable', + Svg: require('../../static/img/undraw_docusaurus_mountain.svg').default, + description: ( + <> + Squiggle is in a small Rescript / Javascript library. It can be used wherever Rescript and Javascript are available. + + ), + }, + { + title: 'Fast', Svg: require('../../static/img/undraw_docusaurus_react.svg').default, description: ( <> - Extend or customize your website layout by reusing React. Docusaurus can - be extended while reusing the same header and footer. + Squiggle tries to get as far as it can without resorting to Monte Carlo simulation, but does so when necessary. ), },