diff --git a/CHANGELOG.md b/CHANGELOG.md index 512303ef50..5672da69b3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,6 @@ # Svelte changelog -## Unreleased +## 3.23.1 * Fix checkbox `bind:group` when multiple options have the same value ([#4397](https://github.com/sveltejs/svelte/issues/4397)) * Fix `bind:this` to the value of an `{#each}` block ([#4517](https://github.com/sveltejs/svelte/issues/4517)) diff --git a/README.md b/README.md index e2e4fcd532..33faec0588 100644 --- a/README.md +++ b/README.md @@ -64,13 +64,7 @@ npm run test -- -g transition ## svelte.dev -The source code for https://svelte.dev, including all the documentation, lives in the [site](site) directory. The site is built with [Sapper](https://sapper.svelte.dev). To develop locally: - -```bash -cd site -npm install && npm run update -npm run dev -``` +The source code for https://svelte.dev, including all the documentation, lives in the [site](site) directory. The site is built with [Sapper](https://sapper.svelte.dev). ### Is svelte.dev down? diff --git a/package-lock.json b/package-lock.json index fab51f61ff..780f63f0b6 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "svelte", - "version": "3.23.0", + "version": "3.23.1", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index 4bbc90f505..705cee7441 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "svelte", - "version": "3.23.0", + "version": "3.23.1", "description": "Cybernetically enhanced web apps", "module": "index.mjs", "main": "index", diff --git a/site/README.md b/site/README.md index 259e956003..64ae22f9a8 100644 --- a/site/README.md +++ b/site/README.md @@ -1,24 +1,33 @@ ## Running locally -Set up the project: +Set up the site sub-project: ```bash git clone https://github.com/sveltejs/svelte.git -cd svelte -npm ci -PUBLISH=1 npm run build cd site npm ci npm run update +npm run dev ``` -Start the server with `npm run dev`, and navigate to [localhost:3000](http://localhost:3000). +and navigate to [localhost:3000](http://localhost:3000). -## Using a local copy of Svelte +## Running using the local copy of Svelte By default, the REPL will fetch the most recent version of Svelte from https://unpkg.com/svelte. When running the site locally, you can also use your local copy of Svelte. -To produce the proper browser-compatible UMD build of the compiler, you will need to run `npm run build` (or `npm run dev`) in the root of this repository with the `PUBLISH` environment variable set to any non-empty string. +To produce the proper browser-compatible UMD build of the compiler, you will need to run `npm run build` (or `npm run dev`) in the root of this repository with the `PUBLISH` environment variable set to any non-empty string: + +```bash +git clone https://github.com/sveltejs/svelte.git +cd svelte +npm ci +PUBLISH=1 npm run build +cd site +npm ci +npm run update +npm run dev +``` Then visit the REPL at [localhost:3000/repl?version=local](http://localhost:3000/repl?version=local). Please note that the local REPL only works with `npm run dev` and not when building the site for production usage. @@ -35,6 +44,7 @@ In order for the REPL's GitHub integration to work properly when running locally GITHUB_CLIENT_SECRET=[your app's Client Secret] BASEURL=http://localhost:3000 ``` + ## Building the site To build the website, run `npm run sapper`. The output can be found in `__sapper__/build`. diff --git a/site/content/faq/500-what-about-typescript-support.md b/site/content/faq/500-what-about-typescript-support.md index 7c41c353b1..7cd0ccbe54 100644 --- a/site/content/faq/500-what-about-typescript-support.md +++ b/site/content/faq/500-what-about-typescript-support.md @@ -2,7 +2,7 @@ question: What about Typescript support? --- -You need to install a [community supported preprocessor](https://github.com/sveltejs/integrations#preprocessors) such as [svelte-preprocess](https://github.com/kaisermann/svelte-preprocess). Work is ongoing to improve [IDE support](https://github.com/sveltejs/language-tools/issues/83). You can also run type checking from the command line with [svelte-check](https://www.npmjs.com/package/svelte-check). +You need to install a preprocessor such as [svelte-preprocess](https://github.com/sveltejs/svelte-preprocess). Work is ongoing to improve [IDE support](https://github.com/sveltejs/language-tools/issues/83). You can also run type checking from the command line with [svelte-check](https://www.npmjs.com/package/svelte-check). To declare the type of a reactive variable in a Svelte template, you can use the following syntax: ``` diff --git a/site/src/routes/_layout.svelte b/site/src/routes/_layout.svelte index 9c1601094a..3f5862e3e0 100644 --- a/site/src/routes/_layout.svelte +++ b/site/src/routes/_layout.svelte @@ -101,9 +101,6 @@ .BLM a { white-space: nowrap; } - :global(header){ - filter: grayscale(100%) /* BLM */ - } main { position: relative; margin: 0 auto; @@ -127,8 +124,4 @@ padding-bottom: 75px; /* BLM */ } } - - main > :global(*) { - filter: grayscale(100%) /* BLM */ - }