From 10cd9875bdaa7420cd0724513ef23ec13ee3e145 Mon Sep 17 00:00:00 2001 From: Mike Bostock Date: Tue, 3 Sep 2024 09:02:33 -0700 Subject: [PATCH] 1.11.0 (#1620) --- docs/config.md | 4 ++-- docs/files.md | 2 +- docs/getting-started.md | 2 +- docs/javascript.md | 2 +- docs/page-loaders.md.js | 2 +- docs/params.md | 2 +- package.json | 2 +- 7 files changed, 8 insertions(+), 8 deletions(-) diff --git a/docs/config.md b/docs/config.md index 3aa8d8fc3..d2d1d45e1 100644 --- a/docs/config.md +++ b/docs/config.md @@ -155,7 +155,7 @@ The pages list should _not_ include the home page (`/`) as this is automatically Whether to show the previous & next links in the footer; defaults to true. The pages are linked in the same order as they appear in the sidebar. -## dynamicPaths +## dynamicPaths The list of [parameterized pages](./params) and [dynamic pages](./page-loaders) to generate, either as a (synchronous) iterable of strings, or a function that returns an async iterable of strings if you wish to load the list of dynamic pages asynchronously. @@ -305,6 +305,6 @@ The set of replacements for straight double and single quotes used when the [**t If true (the default), automatically convert URL-like text to links in Markdown. -## globalStylesheets +## globalStylesheets An array of links to global stylesheets to add to every page’s head, in addition to the [page stylesheet](#style). Defaults to loading [Source Serif 4](https://fonts.google.com/specimen/Source+Serif+4) from Google Fonts. diff --git a/docs/files.md b/docs/files.md index 759d8c98b..19c162cea 100644 --- a/docs/files.md +++ b/docs/files.md @@ -10,7 +10,7 @@ Load files — whether static or generated dynamically by a [data loader](./data import {FileAttachment} from "npm:@observablehq/stdlib"; ``` -The `FileAttachment` function takes a path and returns a file handle. This handle exposes the file’s name, [MIME type](https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types), size in bytes , and modification time (represented as the number of milliseconds since UNIX epoch). +The `FileAttachment` function takes a path and returns a file handle. This handle exposes the file’s name, [MIME type](https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types), size in bytes , and modification time (represented as the number of milliseconds since UNIX epoch). ```js echo FileAttachment("volcano.json") diff --git a/docs/getting-started.md b/docs/getting-started.md index ee4e71bb2..530c42254 100644 --- a/docs/getting-started.md +++ b/docs/getting-started.md @@ -148,7 +148,7 @@ Or with Yarn: You should see something like this: -
Observable Framework v1.10.1
+
Observable Framework v1.11.0
 ↳ http://127.0.0.1:3000/
diff --git a/docs/javascript.md b/docs/javascript.md index c5e67b165..37c2ee488 100644 --- a/docs/javascript.md +++ b/docs/javascript.md @@ -127,7 +127,7 @@ const number = Generators.input(numberInput); Expressions cannot declare top-level reactive variables. To declare a variable, use a code block instead. You can declare a variable in a code block (without displaying it) and then display it somewhere else using an inline expression. -## TypeScript +## TypeScript TypeScript fenced code blocks (```ts) allow TypeScript to be used in place of JavaScript. You can also import TypeScript modules (`.ts`). Use the `.js` file extension when importing TypeScript modules; TypeScript is transpiled to JavaScript during build. diff --git a/docs/page-loaders.md.js b/docs/page-loaders.md.js index 7006c85d9..33ea280e6 100644 --- a/docs/page-loaders.md.js +++ b/docs/page-loaders.md.js @@ -2,7 +2,7 @@ process.stdout.write(`--- keywords: server-side rendering, ssr --- -# Page loaders +# Page loaders Page loaders are a special type of [data loader](./data-loaders) for dynamically generating (or “server-side rendering”) pages. Page loaders are programs that emit [Markdown](./markdown) to standard out, and have a double extension starting with \`.md\`, such as \`.md.js\` for a JavaScript page loader or \`.md.py\` for a Python page loader. diff --git a/docs/params.md b/docs/params.md index c3f907043..47fb45fd0 100644 --- a/docs/params.md +++ b/docs/params.md @@ -1,4 +1,4 @@ -# Parameterized routes +# Parameterized routes Parameterized routes allow a single [Markdown](./markdown) source file or [page loader](./page-loaders) to generate many pages, or a single [data loader](./data-loaders) to generate many files. diff --git a/package.json b/package.json index d8ade74f8..d86a508d6 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "@observablehq/framework", "license": "ISC", - "version": "1.10.1", + "version": "1.11.0", "type": "module", "publishConfig": { "access": "public"