Commit graph

4714 commits

Author SHA1 Message Date
Thomas Jaggi
2a1c085b19
[MDX] Support remark-rehype options from Astro Markdown config (#5427)
* [MDX] Support remark-rehype options from Astro Markdown config

* [MDX] Add remarkRehype to MdxOptions, extend with default markdown config

* [MDX] Add remarkRehype to README

* [MDX] Fix remarkRehype inheritance, add tests

* [MDX] Update remarkRehype docs in README

Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>

* [MDX] Fix remarkRehype docs

Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2022-11-22 10:12:25 -05:00
Chris Swithinbank
fcada72bd5
Integration READMEs code block sweep 🧹 (#5455) 2022-11-22 15:56:55 +01:00
Bjorn Lu
8f203bfda3
Update tailwindcss @apply suggestion (#5406)
Co-authored-by: Chris Swithinbank <swithinbank@gmail.com>
2022-11-22 01:42:45 +08:00
Erika
6c68f1ab2f
Add JSDoc comments to errors for doc generation (#5355)
* Start adding JSDocs to errors for doc generation

* Progress

* Add titles

* Update with feedback

* Update tests

* Update packages/astro/src/core/errors/README.md

Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>

* Update packages/astro/src/core/errors/README.md

Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>

* Misc tweaks

* Remove unnecessary character

* Fix errors in build not having proper information

Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2022-11-21 13:34:22 -04:00
matthewp
7a405c5d47 [ci] format 2022-11-21 17:33:04 +00:00
Sam Chen
cef33dd841
Remove temp tailwind config file in finally (#5450) 2022-11-21 12:30:59 -05:00
bluwy
d6ece859ed [ci] format 2022-11-21 13:33:45 +00:00
Daniel
743000cc70
Use Cloudflare Pages to serve static assets and support _headers, _redirects and _routes.json (#5347)
Co-authored-by: AirBorne04 <unknown>
Co-authored-by: Chris Swithinbank <swithinbank@gmail.com>
2022-11-21 21:31:21 +08:00
Chris Swithinbank
ef2ffc7ae9
Fix docs link in MDX integration README (#5448) 2022-11-21 12:15:05 +01:00
Bjorn Lu
4b188132ef
Correctly transform third-party JSX files (#5437) 2022-11-18 11:36:09 -05:00
matthewp
a334f1212e [ci] format 2022-11-18 15:47:04 +00:00
Matthew Phillips
f5ed630bca
Use Vite's resolve to resolve paths for client:only (#5434)
* Use Vite's resolve to resolve paths for client:only

* Adding a changeset

* Add it to the markdown legacy plugin too

* Remove fully resolving

* Fully resolve in the analyzer

* don't do this twice

* remove dead code
2022-11-18 10:44:55 -05:00
Brenley Dueck
4266869f4f
fix: partytown base path (#5425)
* fix: partytown base path

* add changeset
2022-11-17 14:46:20 -05:00
Gabriel Pereira Woitechen
936c1e411d
Add missing fetchpriority attribute to ImgHTMLAttributes (#5433) 2022-11-17 14:20:09 -04:00
Fred K. Bot
bbb329e65e
[ci] release (#5419)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-11-17 10:52:42 -05:00
matthewp
eea824bee9 [ci] format 2022-11-17 15:51:50 +00:00
Rishi Raj Jain
fcfd166f2d
fix: Docs Site - Table of contents highlight not working (#5411)
* fix: Docs Site - Table of contents highlight not working

* Add html-escaper devDep

* add html-escaper via pnpm
2022-11-17 10:48:57 -05:00
Scttpr
12236dbc06
feat: provide HOST env variable at runtime (#5421)
* feat: provide HOST env variable at runtime

* doc: add change to documentation

* Update documentation according to suggestions

Co-authored-by: Chris Swithinbank <swithinbank@gmail.com>

* fix: empty string is considered as undefined

Co-authored-by: Chris Swithinbank <swithinbank@gmail.com>
2022-11-17 10:48:20 -05:00
Bjorn Lu
ff35b4759b
Fix JSX tagging for anonymous higher-order components default export (#5426)
* Tag JSX for call expression default export

* Refactor type checks

* Add changeset
2022-11-17 10:46:24 -05:00
matthewp
539ee179f7 [ci] format 2022-11-17 15:35:15 +00:00
Matthew Phillips
1ab505855f
Fix regression with loading .ts in .mjs config (#5431)
* Fix regression with loading .ts in .mjs config

* Account for directories
2022-11-17 10:32:59 -05:00
Bjorn Lu
b22ba1c03a
Fix preview --host in Node.js 18 (#5430) 2022-11-17 22:53:51 +08:00
matthewp
c18c618a09 [ci] format 2022-11-16 21:58:37 +00:00
wulinsheng123
e2fb0c4ff2
Log error if failed to fetch remote image (#5393)
* I cant catch an error in the loadRemoteImage function when the fetch function occurs error

* I cant catch an error in the loadRemoteImage function when the fetch function occurs error

* fix ssg file

Co-authored-by: wuls <linsheng.wu@beantechs.com>
Co-authored-by: Okiki Ojo <okikio.dev@gmail.com>
2022-11-16 16:55:48 -05:00
Jean-Baptiste Alleaume
aa16b6cebc
Add response iterator to node adapter (#5418)
* add response iterator to node adapter

* changeset

* add node-fetch types

* fix @types/node-fetch as a dev dep
2022-11-16 16:55:15 -05:00
matthewp
d017701ae6 [ci] format 2022-11-16 17:24:18 +00:00
Matthew Phillips
a9f7ff9667
Prevent dev from crashing when there are errors in template (#5417)
* Prevent dev from crashing when there are errors in template

* Adding a changeset
2022-11-16 12:22:35 -05:00
Ted Diño
afb751dbd1
[docs] fix typo in image integration README (#5416) 2022-11-16 12:07:11 -04:00
Fred K. Bot
49c1a5d439
[ci] release (#5399)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-11-16 10:07:56 -05:00
matthewp
991d629832 [ci] format 2022-11-16 13:59:51 +00:00
Matthew Phillips
9f80a4046f
Allow Code component to run in Vercel (#5409)
* Allow Code component to run in Vercel

* Adding a changeset

* Pass theme through to `codeToHtml`

* Use script to generate languages

* another bundling approach

* fix lint warnings
2022-11-16 08:57:53 -05:00
matthewp
6c0f966ef8 [ci] format 2022-11-16 13:36:29 +00:00
Matthew Phillips
a278c7ae6f
Restart dev server on package.json changes (#5412)
* Restart dev server on package.json changes

* Adding a changeset

* update vitefu

* lockfile updated
2022-11-16 08:34:19 -05:00
Fred K. Bot
7191ed1c7c
[ci] update lockfile (#5407)
Co-authored-by: FredKSchott <FredKSchott@users.noreply.github.com>
2022-11-15 16:06:18 -05:00
matthewp
81c375d24b [ci] format 2022-11-15 20:28:35 +00:00
impcyber
3c5cb69488
Fix: https://github.com/withastro/astro/issues/5400 (#5410)
* Fix: Astro generates empty .-index.bundle.js

https://github.com/withastro/astro/issues/5400

* Create loud-penguins-tickle.md
2022-11-15 15:26:37 -05:00
matthewp
a93aa4ef3f [ci] format 2022-11-15 15:04:33 +00:00
Matthew Phillips
40226dd14d
Use Vite to load non JS astro configs (#5377)
* Use Vite to load non JS astro configs

* Adding a changeset

* Allow config to not exist

* Use a file url

* Use proload as a fallback

* add missing peerdep

* fix lint mistakes

* Refactor the vite-load

* First check if the file exists

* Pass through fs

* Update packages/astro/src/core/config/vite-load.ts

Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>

* Also load astro.config.cjs

* Do search before trying to load

Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
2022-11-15 10:02:23 -05:00
bluwy
095de72a17 [ci] format 2022-11-15 07:29:00 +00:00
李瑞丰
505abfd643
fix(create-astro): fix error when don't have template input (#5404) 2022-11-15 15:27:16 +08:00
李瑞丰
66992ed700
fix(template): delete extra css. (#5403) 2022-11-15 15:19:04 +08:00
迷渡
247c4077eb
[deno] fix package name (#5402) 2022-11-15 14:05:50 +08:00
李瑞丰
10f6faca38
docs: fix compiler project url (#5401) 2022-11-14 22:12:14 -04:00
matthewp
6ff1399e98 [ci] format 2022-11-14 18:44:37 +00:00
Matthew Phillips
ee750087ce
Fix usage of the Image component with the Vercel adapter (#5361)
* Revert "Revert "Allow image-pool to be used as its own Worker (#5317)" (#5360)"

This reverts commit 20e60c6e08.

* Remove special image-pool.js moving around

* Merge in assetIncludes

* changeset

* Copy to chunk folder in SSR too

* Update tidy-shoes-yawn.md
2022-11-14 13:42:35 -05:00
Fred K. Bot
993b58d567
[ci] release (#5365)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-11-14 13:31:31 -05:00
Nate Moore
e385076efe
Upgrade compiler (#5369)
* chore: upgrade compiler

* chore: upgrade compiler

* chore: add changeset

* chore: upgrade compiler

* chore: generate lockfile

* Update tricky-dodos-cheer.md

* chore: upgrade compiler

Co-authored-by: Nate Moore <nate@astro.build>
2022-11-14 11:01:03 -06:00
Fred K. Bot
eca8815bc2
[ci] update lockfile (#5385)
Co-authored-by: FredKSchott <FredKSchott@users.noreply.github.com>
2022-11-14 09:39:38 -05:00
Josh Wilson
eab4a0279f
Preserve reactivity in Solid example component (#5386) 2022-11-14 11:50:15 +08:00
Donald
df8092b007
Fix typo in image integration documentatation (#5388) 2022-11-13 23:00:14 -04:00