Skip to content

Commit

Permalink
1.7.0 (#1287)
Browse files Browse the repository at this point in the history
* 1.7.0

* update getting-started images
  • Loading branch information
mbostock authored Apr 26, 2024
1 parent 0982521 commit 7d7ce82
Show file tree
Hide file tree
Showing 17 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions docs/config.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ The following options are supported.

## root

The path to the source root; defaults to `src`. (Prior to <a href="https://github.com/observablehq/framework/pull/1253" class="observablehq-version-badge" data-version="prerelease" title="Added in #1253"></a>, the default was `docs`.)
The path to the source root; defaults to `src`. (Prior to <a href="https://github.com/observablehq/framework/releases/tag/v1.7.0" class="observablehq-version-badge" data-version="^1.7.0" title="Added in 1.7.0"></a>, the default was `docs`.)

## output

Expand Down Expand Up @@ -273,14 +273,14 @@ export default {
};
```

## typographer <a href="https://github.com/observablehq/framework/pull/1263" class="observablehq-version-badge" data-version="prerelease" title="Added in #1263"></a>
## typographer <a href="https://github.com/observablehq/framework/releases/tag/v1.7.0" class="observablehq-version-badge" data-version="^1.7.0" title="Added in 1.7.0"></a>

If true, enables simple typographic replacements in Markdown, such as replacing `(c)` with `©` and converting straight quotes to curly quotes. See also the [quotes](#quotes) option, which should be set for non-English languages if the **typographer** option is enabled. For the full list of replacements, see [markdown-it](https://github.com/markdown-it/markdown-it/blob/master/lib/rules_core/replacements.mjs). Defaults to false.

## quotes <a href="https://github.com/observablehq/framework/pull/1263" class="observablehq-version-badge" data-version="prerelease" title="Added in #1263"></a>
## quotes <a href="https://github.com/observablehq/framework/releases/tag/v1.7.0" class="observablehq-version-badge" data-version="^1.7.0" title="Added in 1.7.0"></a>

The set of replacements for straight double and single quotes used when the [**typographer** option](#typographer) is enabled. Defaults to `["“", "”", "‘", "’"]` which is suitable for English. For example, you can use `["«", "»", "„", "“"]` for Russian, `["„", "“", "‚", "‘"]` for German, and `["«\xa0", "\xa0»", "‹\xa0", "\xa0›"]` for French.

## linkify <a href="https://github.com/observablehq/framework/pull/1263" class="observablehq-version-badge" data-version="prerelease" title="Added in #1263"></a>
## linkify <a href="https://github.com/observablehq/framework/releases/tag/v1.7.0" class="observablehq-version-badge" data-version="^1.7.0" title="Added in 1.7.0"></a>

If true (the default), automatically convert URL-like text to links in Markdown.
4 changes: 2 additions & 2 deletions docs/getting-started.md
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ Or with Yarn:

You should see something like this:

<pre data-copy="none"><b class="green">Observable Framework</b> v1.6.0
<pre data-copy="none"><b class="green">Observable Framework</b> v1.7.0
↳ <u><a href="http://127.0.0.1:3000/" style="color: inherit;">http://127.0.0.1:3000/</a></u></pre>

<div class="note">
Expand Down Expand Up @@ -274,7 +274,7 @@ To personalize this code snippet to your current location, edit the <code>longit
Your data loader should look like this:

<figure class="wide">
<img loading="lazy" src="./getting-started/hello-loader.webp" class="crop">
<img loading="lazy" src="./getting-started/hello-loader.webp" style="aspect-ratio: 3248 / 2112;">
<figcaption>A JavaScript data loader for fetching a local forecast from weather.gov.</figcaption>
</figure>

Expand Down
Binary file modified docs/getting-started/hello-data-dark.webp
Binary file not shown.
Binary file modified docs/getting-started/hello-data.webp
Binary file not shown.
Binary file modified docs/getting-started/hello-framework-dark.webp
Binary file not shown.
Binary file modified docs/getting-started/hello-framework.webp
Binary file not shown.
Binary file modified docs/getting-started/hello-grid-dark.webp
Binary file not shown.
Binary file modified docs/getting-started/hello-grid.webp
Binary file not shown.
Binary file modified docs/getting-started/hello-loader.webp
Binary file not shown.
Binary file modified docs/getting-started/hello-plot-dark.webp
Binary file not shown.
Binary file modified docs/getting-started/hello-plot.webp
Binary file not shown.
Binary file modified docs/getting-started/hello-weather-dark.webp
Binary file not shown.
Binary file modified docs/getting-started/hello-weather.webp
Binary file not shown.
Binary file modified docs/getting-started/hi-mom-dark.webp
Binary file not shown.
Binary file modified docs/getting-started/hi-mom.webp
Binary file not shown.
2 changes: 1 addition & 1 deletion docs/project-structure.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ And a typical project is structured like this:

#### `src`

This is the “source root” — where your source files live. It doesn’t have to be named `src`; you can change it using the **root** [config option](./config). (Prior to <a href="https://github.com/observablehq/framework/pull/1253" class="observablehq-version-badge" data-version="prerelease" title="Added in #1253"></a>, the default was <code>docs</code>.) Pages go here. Each page is a Markdown file. Framework uses [file-based routing](#routing), which means that the name of the file controls where the page is served. You can create as many pages as you like. Use folders to organize your pages.
This is the “source root” — where your source files live. It doesn’t have to be named `src`; you can change it using the **root** [config option](./config). (Prior to <a href="https://github.com/observablehq/framework/releases/tag/v1.7.0" class="observablehq-version-badge" data-version="^1.7.0" title="Added in 1.7.0"></a>, the default was <code>docs</code>.) Pages go here. Each page is a Markdown file. Framework uses [file-based routing](#routing), which means that the name of the file controls where the page is served. You can create as many pages as you like. Use folders to organize your pages.

#### `src/.observablehq/cache`

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@observablehq/framework",
"license": "ISC",
"version": "1.6.0",
"version": "1.7.0",
"type": "module",
"publishConfig": {
"access": "public"
Expand Down

0 comments on commit 7d7ce82

Please sign in to comment.