Minor docusaurus changes

This commit is contained in:
Ozzie Gooen 2022-02-09 10:22:51 -05:00
parent 1a63acfc7a
commit c357b3c7c1
6 changed files with 28 additions and 22 deletions

View File

@ -1,5 +1,5 @@
--- ---
slug: Squiggle-Talk slug: squiggle-talk
title: The Squiggly language (Short Presentation) title: The Squiggly language (Short Presentation)
authors: ozzie authors: ozzie
--- ---

View File

@ -1,5 +1,5 @@
--- ---
slug: overview-1 slug: overview
title: Squiggle Overview title: Squiggle Overview
authors: ozzie authors: ozzie
--- ---

View File

@ -1,7 +1,16 @@
--- ---
sidebar_position: 3 sidebar_position: 2
--- ---
# Javascript Library # 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))
```

View File

@ -1,5 +1,5 @@
--- ---
sidebar_position: 2 sidebar_position: 1
--- ---
# Squiggle Language # Squiggle Language

View File

@ -6,8 +6,8 @@ const darkCodeTheme = require('prism-react-renderer/themes/dracula');
/** @type {import('@docusaurus/types').Config} */ /** @type {import('@docusaurus/types').Config} */
const config = { const config = {
title: 'Squiggle', title: 'Squiggle (alpha)',
tagline: 'A programming language for probabilistic estimation', 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', url: 'https://squiggle-documentation.netlify.app',
baseUrl: '/', baseUrl: '/',
onBrokenLinks: 'throw', onBrokenLinks: 'throw',

View File

@ -4,32 +4,29 @@ import styles from './HomepageFeatures.module.css';
const FeatureList = [ const FeatureList = [
{ {
title: 'Easy to Use', title: 'Probabilistic',
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',
Svg: require('../../static/img/undraw_docusaurus_tree.svg').default, Svg: require('../../static/img/undraw_docusaurus_tree.svg').default,
description: ( description: (
<> <>
Docusaurus lets you focus on your docs, and we&apos;ll do the chores. Go Squiggle makes working with probability distributions really easy.
ahead and move your docs into the <code>docs</code> directory.
</> </>
), ),
}, },
{ {
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, Svg: require('../../static/img/undraw_docusaurus_react.svg').default,
description: ( description: (
<> <>
Extend or customize your website layout by reusing React. Docusaurus can Squiggle tries to get as far as it can without resorting to Monte Carlo simulation, but does so when necessary.
be extended while reusing the same header and footer.
</> </>
), ),
}, },