Skip to content

Commit

Permalink
Merge branch 'v3-upgrade-guide' into css-bundle-control
Browse files Browse the repository at this point in the history
  • Loading branch information
sarah11918 authored Aug 19, 2023
2 parents 9dfe633 + 1f8262f commit eafa243
Show file tree
Hide file tree
Showing 49 changed files with 2,071 additions and 580 deletions.
4 changes: 3 additions & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@ module.exports = {
ecmaVersion: 'latest',
sourceType: 'module',
},
rules: {},
rules: {
'no-mixed-spaces-and-tabs': 'off',
},
settings: {
react: {
pragma: 'h',
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,8 @@
"p-retry": "^5.1.1",
"parse-numeric-range": "^1.3.0",
"preact": "^10.16.0",
"prettier": "^2.8.8",
"prettier-plugin-astro": "^0.8.0",
"prettier": "^3.0.2",
"prettier-plugin-astro": "^0.11.1",
"prompts": "^2.4.2",
"rehype": "^12.0.1",
"remark": "^14.0.2",
Expand Down
104 changes: 23 additions & 81 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion public/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -460,7 +460,9 @@ h2.heading {

.header-link {
font-size: 1em;
transition: border-inline-start-color 100ms ease-out, background-color 200ms ease-out;
transition:
border-inline-start-color 100ms ease-out,
background-color 200ms ease-out;
}

a.header-link {
Expand Down
1 change: 0 additions & 1 deletion scripts/lib/translation-status/builder.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* eslint-disable no-mixed-spaces-and-tabs */
import dedent from 'dedent-js';
import glob from 'fast-glob';
import fs from 'fs';
Expand Down
2 changes: 1 addition & 1 deletion scripts/lib/translation-status/template.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!DOCTYPE html>
<!doctype html>
<html dir="ltr" lang="en">
<head>
<meta charset="utf-8" />
Expand Down
4 changes: 3 additions & 1 deletion src/components/Header/ThemeToggleButton.css
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@

.theme-toggle > label:focus-within {
outline: 2px solid transparent;
box-shadow: 0 0 0 0.08em var(--theme-accent), 0 0 0 0.12em white;
box-shadow:
0 0 0 0.08em var(--theme-accent),
0 0 0 0.12em white;
}

.theme-toggle > label {
Expand Down
4 changes: 2 additions & 2 deletions src/content/docs/en/core-concepts/layouts.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ function fancyJsHelper() {

Then, your values are available to you through `Astro.props` in your layout, and your MDX content will be injected into the page where your `<slot />` component is written:

```astro "fancyJsHelper" "title"
```astro /{?title}?/ "fancyJsHelper" "{fancyJsHelper()}"
---
// src/layouts/BaseLayout.astro
const { title, fancyJsHelper } = Astro.props;
Expand All @@ -233,7 +233,7 @@ const { title, fancyJsHelper } = Astro.props;

A single Astro layout can be written to receive the `frontmatter` object from `.md` and `.mdx` files, as well as any named props passed from `.astro` files.

In the example below, the layout will display the page title either from an Astro component passing a `title` attribute or from a frontmatter YAML `title` property:
In the example below, the layout will display the page title either from a frontmatter YAML `title` property or from an Astro component passing a `title` attribute:

```astro /{?title}?/ /Astro.props[.a-z]*/
---
Expand Down
Loading

0 comments on commit eafa243

Please sign in to comment.