From 8414cde819a91063e5135df14829df8d5e290005 Mon Sep 17 00:00:00 2001 From: Ozzie Gooen Date: Sat, 23 Jul 2022 11:41:12 -0700 Subject: [PATCH] Ran formatting --- packages/website/docs/Guides/Functions.mdx | 29 +++++---------------- packages/website/docs/Guides/Language.mdx | 15 +++++------ packages/website/docs/Introduction.md | 2 ++ packages/website/docusaurus.config.js | 3 ++- packages/website/src/css/custom.css | 11 ++++---- packages/website/src/pages/index.js | 4 +-- packages/website/src/pages/index.module.css | 4 +-- 7 files changed, 26 insertions(+), 42 deletions(-) diff --git a/packages/website/docs/Guides/Functions.mdx b/packages/website/docs/Guides/Functions.mdx index 28029651..843cf888 100644 --- a/packages/website/docs/Guides/Functions.mdx +++ b/packages/website/docs/Guides/Functions.mdx @@ -87,15 +87,11 @@ A projection over a stretched x-axis. log(dist)`} /> - + Base `x` - + #### Validity @@ -110,36 +106,25 @@ For every point on the x-axis, operate the corresponding points in the y axis of TODO: this isn't in the new interpreter/parser yet. - + ### Pointwise subtraction TODO: this isn't in the new interpreter/parser yet. - + ### Pointwise multiplication - - + ### Pointwise division - + ### Pointwise exponentiation - + ## Standard functions on distributions diff --git a/packages/website/docs/Guides/Language.mdx b/packages/website/docs/Guides/Language.mdx index 1bfe58e2..90ee25b5 100644 --- a/packages/website/docs/Guides/Language.mdx +++ b/packages/website/docs/Guides/Language.mdx @@ -13,11 +13,13 @@ import { SquiggleEditor } from "../../src/components/SquiggleEditor"; ### Distributions - +{a:a, b:b, c:c, d:d}`} +/> ### Lists @@ -25,9 +27,7 @@ d = mixture(a,b,c, [0.3, 0.3, .4]) defaultCode={`[beta(1,10), 4, isNormalized(SampleSet.fromDist(1 to 2))]`} /> - + ### Dictionaries @@ -43,12 +43,9 @@ d.dist`} f`} /> - ### Anonymous Functions - + ## See more diff --git a/packages/website/docs/Introduction.md b/packages/website/docs/Introduction.md index 57c2ce36..22359de2 100644 --- a/packages/website/docs/Introduction.md +++ b/packages/website/docs/Introduction.md @@ -8,11 +8,13 @@ Squiggle is a simple programming language for intuitive probabilistic estimation The basics of Squiggle can be pretty simple and intuitive. The more advanced functionality can take some time to learn. ## What Squiggle Is + - A simple programming language for doing math with probability distributions - An embeddable language that can be used in Javascript applications - A tool to embed functions as forecasts that can be embedded in other applications ## What Squiggle Is Not + - A complete replacement for enterprise Risk Analysis tools (See Crystal Ball, @Risk, Lumina Analytica) - A Probabilistic Programming Language with backwards inference and sophisticated sampling algorithms. (See [PPLs](https://en.wikipedia.org/wiki/Probabilistic_programming)) - A visual tool aimed at casual users (see Guesstimate, Causal) diff --git a/packages/website/docusaurus.config.js b/packages/website/docusaurus.config.js index f811da95..16ff6afa 100644 --- a/packages/website/docusaurus.config.js +++ b/packages/website/docusaurus.config.js @@ -10,7 +10,8 @@ const path = require("path"); /** @type {import('@docusaurus/types').Config} */ const config = { title: "Squiggle", - tagline: "A simple programming language for intuitive probabilistic estimation", + tagline: + "A simple programming language for intuitive probabilistic estimation", url: "https://squiggle-language.com", baseUrl: "/", onBrokenLinks: "throw", diff --git a/packages/website/src/css/custom.css b/packages/website/src/css/custom.css index b9126b2d..f5aa047d 100644 --- a/packages/website/src/css/custom.css +++ b/packages/website/src/css/custom.css @@ -4,7 +4,7 @@ * work well for content-centric websites. */ -@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600&family=Lato:wght@100;400;700;900&family=Lora:wght@400;500;600&display=swap'); +@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600&family=Lato:wght@100;400;700;900&family=Lora:wght@400;500;600&display=swap"); /* You can override the default Infima variables here. */ :root { @@ -40,7 +40,7 @@ html[data-theme="dark"] .docusaurus-highlight-code-line { background-color: rgba(0, 0, 0, 0.3); } -.hero h1{ +.hero h1 { font-size: 4em; font-weight: 900; margin-bottom: 0.5rem; @@ -56,7 +56,7 @@ html[data-theme="dark"] .docusaurus-highlight-code-line { .hero__subtitle { color: #888; - font-size:1.25em; + font-size: 1.25em; } .hero__subtitle2 { @@ -79,7 +79,8 @@ h2 { font-weight: 600; } -.menu__link, .navbar__item { +.menu__link, +.navbar__item { font-family: "Lora", serif; } @@ -89,4 +90,4 @@ h2 { :root { /* --ifm-font-family-base: 'Lora'; */ -} \ No newline at end of file +} diff --git a/packages/website/src/pages/index.js b/packages/website/src/pages/index.js index 616093d5..05278aad 100644 --- a/packages/website/src/pages/index.js +++ b/packages/website/src/pages/index.js @@ -12,9 +12,7 @@ function HomepageHeader() {

{siteConfig.title}

-

- Early Access -

+

Early Access

{siteConfig.tagline}

diff --git a/packages/website/src/pages/index.module.css b/packages/website/src/pages/index.module.css index f4518419..e746813a 100644 --- a/packages/website/src/pages/index.module.css +++ b/packages/website/src/pages/index.module.css @@ -8,7 +8,7 @@ text-align: center; position: relative; overflow: hidden; - background: rgb(255, 246, 237) + background: rgb(255, 246, 237); } @media screen and (max-width: 966px) { @@ -21,4 +21,4 @@ display: flex; align-items: center; justify-content: center; -} \ No newline at end of file +}