You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Integration README fixes
* More tweaks (mostly code backticks for filenames)
* Update changeset
* Few more tweaks
* Make sure code blocks all have a code language
* Use URLs of new docs pages for package homepage
* One more stray `<br>` 👢
* Standardise to `sh` instead of `shell`
Copy file name to clipboardExpand all lines: packages/integrations/deno/README.md
+12-7Lines changed: 12 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -22,13 +22,14 @@ If you wish to [use server-side rendering (SSR)](https://docs.astro.build/en/gui
22
22
## Installation
23
23
24
24
First, install the `@astrojs/deno` package using your package manager. If you're using npm or aren't sure, run this in the terminal:
25
+
25
26
```sh
26
27
npm install @astrojs/deno
27
28
```
28
29
29
30
Then, install this adapter in your `astro.config.*` file using the `adapter` property:
30
31
31
-
__astro.config.mjs__
32
+
__`astro.config.mjs`__
32
33
33
34
```js
34
35
import { defineConfig } from'astro/config';
@@ -51,7 +52,8 @@ import './dist/entry.mjs';
51
52
See the `start` option below for how you can have more control over starting the Astro server.
52
53
53
54
You can also run the script directly using deno:
54
-
```
55
+
56
+
```sh
55
57
deno run --allow-net --allow-read --allow-env ./dist/server/entry.mjs
56
58
```
57
59
@@ -60,7 +62,8 @@ deno run --allow-net --allow-read --allow-env ./dist/server/entry.mjs
60
62
61
63
To configure this adapter, pass an object to the `deno()` function call in `astro.config.mjs`.
62
64
63
-
__astro.config.mjs__
65
+
__`astro.config.mjs`__
66
+
64
67
```js
65
68
import { defineConfig } from'astro/config';
66
69
importdenofrom'@astrojs/deno';
@@ -74,8 +77,6 @@ export default defineConfig({
74
77
75
78
<details>
76
79
<summary><strong>start</strong></summary>
77
-
78
-
<br/>
79
80
80
81
This adapter automatically starts a server when it is imported. You can turn this off with the `start` option:
81
82
@@ -106,8 +107,6 @@ export default defineConfig({
106
107
107
108
<details>
108
109
<summary><strong>port</strong> and <strong>hostname</strong></summary>
109
-
110
-
<br/>
111
110
112
111
You can set the port (default: `8085`) and hostname (default: `0.0.0.0`) for the deno server to use. If `start` is false, this has no effect; your own server must configure the port and hostname.
113
112
@@ -130,10 +129,16 @@ The [Astro Deno](https://github.com/withastro/astro/tree/main/examples/deno) exa
130
129
131
130
## Troubleshooting
132
131
132
+
For help, check out the `#support-threads` channel on [Discord](https://astro.build/chat). Our friendly Support Squad members are here to help!
133
+
134
+
You can also check our [Astro Integration Documentation][astro-integration] for more on integrations.
135
+
133
136
## Contributing
134
137
135
138
This package is maintained by Astro's Core team. You're welcome to submit an issue or PR!
136
139
137
140
## Changelog
138
141
142
+
See [CHANGELOG.md](CHANGELOG.md) for a history of changes to this integration.
Copy file name to clipboardExpand all lines: packages/integrations/image/README.md
+3-14Lines changed: 3 additions & 14 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -23,7 +23,6 @@ This integration provides `<Image />` and `<Picture>` components as well as a ba
23
23
24
24
<details>
25
25
<summary>Quick Install</summary>
26
-
<br/>
27
26
28
27
The experimental `astro add` command-line tool automates the installation for you. Run one of the following commands in a new terminal window. (If you aren't sure which package manager you're using, run the first command.) Then, follow the prompts, and type "y" in the terminal (meaning "yes") for each one.
29
28
@@ -44,15 +43,13 @@ Because this command is new, it might not properly set things up. If that happen
44
43
<details>
45
44
<summary>Manual Install</summary>
46
45
47
-
<br/>
48
-
49
46
First, install the `@astrojs/image` package using your package manager. If you're using npm or aren't sure, run this in the terminal:
50
47
```sh
51
48
npm install @astrojs/image
52
49
```
53
50
Then, apply this integration to your `astro.config.*` file using the `integrations` property:
54
51
55
-
__astro.config.mjs__
52
+
__`astro.config.mjs`__
56
53
57
54
```js
58
55
importimagefrom'@astrojs/image';
@@ -81,8 +78,6 @@ There are currently no other configuration options for the `@astrojs/image` inte
The `serviceEntryPoint` should resolve to the image service installed from NPM. The default entry point is `@astrojs/image/sharp`, which resolves to the entry point exported from this integration's `package.json`.
87
82
88
83
```js
@@ -103,8 +98,6 @@ export default {
103
98
<details>
104
99
<summary><strong>Local images</strong></summary>
105
100
106
-
<br/>
107
-
108
101
Image files in your project's `src` directory can be imported in frontmatter and passed directly to the `<Image />` component. All other properties are optional and will default to the original image file's properties if not provided.
109
102
110
103
```html
@@ -133,8 +126,6 @@ import heroImage from '../assets/hero.png';
133
126
<details>
134
127
<summary><strong>Remote images</strong></summary>
135
128
136
-
<br/>
137
-
138
129
Remote images can be transformed with the `<Image />` component. The `<Image />` component needs to know the final dimensions for the `<img />` element to avoid content layout shifts. For remote images, this means you must either provide `width` and `height`, or one of the dimensions plus the required `aspectRatio`.
<summary><strong>Images in markdown</strong></summary>
160
151
161
-
<br/>
162
-
163
152
The `<Image />` component can also be used to optimize images in markdown pages. For local images imported from your project's `src` directory, use Astro's the `setup` frontmatter to import the image file.
164
153
165
154
```html
@@ -182,8 +171,6 @@ description: Just a Hello World Post!
The `<Picture />` component can be used to automatically build a `<picture>` with multiple sizes and formats. Check out [MDN](https://developer.mozilla.org/en-US/docs/Learn/HTML/Multimedia_and_embedding/Responsive_images#art_direction) for a deep dive into responsive images and art direction.
188
175
189
176
By default, the picture will include formats for `avif` and `webp` in addition to the image's original format.
@@ -227,3 +214,5 @@ You can also check our [Astro Integration Documentation][astro-integration] for
227
214
This package is maintained by Astro's Core team. You're welcome to submit an issue or PR!
228
215
229
216
## Changelog
217
+
218
+
See [CHANGELOG.md](CHANGELOG.md) for a history of changes to this integration.
Now, apply this integration to your `astro.config.*` file using the `integrations` property:
43
43
44
-
__astro.config.mjs__
44
+
__`astro.config.mjs`__
45
45
46
46
```js
47
47
importlitfrom'@astrojs/lit';
@@ -63,7 +63,7 @@ However, there's a key difference with Lit _custom elements_ over conventional _
63
63
64
64
Astro needs to know which tag is associated with which component script. We expose this through exporting a `tagName` variable from the component script. It looks like this:
Copy file name to clipboardExpand all lines: packages/integrations/mdx/README.md
+2-4Lines changed: 2 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -22,7 +22,6 @@ Check out [“What is MDX?”](https://mdxjs.com/docs/what-is-mdx/), a deep-dive
22
22
23
23
<details>
24
24
<summary>Quick Install</summary>
25
-
<br/>
26
25
27
26
The `astro add` command-line tool automates the installation for you. Run one of the following commands in a new terminal window. (If you aren't sure which package manager you're using, run the first command.) Then, follow the prompts, and type "y" in the terminal (meaning "yes") for each one.
28
27
@@ -42,17 +41,16 @@ Because this command is new, it might not properly set things up. If that happen
42
41
43
42
<details>
44
43
<summary>Manual Install</summary>
45
-
<br/>
46
44
47
45
First, install the `@astrojs/mdx` package using your package manager. If you're using npm or aren't sure, run this in the terminal:
48
46
49
-
```
47
+
```sh
50
48
npm install @astrojs/mdx
51
49
```
52
50
53
51
Then, apply this integration to your `astro.config.*` file using the `integrations` property:
0 commit comments