Commit graph

5903 commits

Author SHA1 Message Date
Sarah Rainsberger
6467324dc9
[docs] Markdoc README 2023-07-25 14:19:18 -03:00
Sarah Rainsberger
32cedb3dab
[docs] Markdoc README syntax fixes (#7798) 2023-07-25 14:05:03 -03:00
bluwy
0d86457d64 [ci] format 2023-07-25 15:47:03 +00:00
Bjorn Lu
0f677c009d
Refactor Astro rendering to write results directly (#7782) 2023-07-25 23:44:25 +08:00
doodlemarks
ec40c8ccbe [ci] format 2023-07-25 14:54:12 +00:00
Mark Peck
8e14621659
Blog theme styling updates (#7768)
* whole lotta updates and including some new fonts

* update placeholders

* fix mobile first child

* remove experimental stuff

* adding accessible text to header icon links

* preloading font files

* i did dum things

---------

Co-authored-by: Tony Sullivan <tony.f.sullivan@outlook.com>
2023-07-25 09:51:38 -05:00
matthewp
0c1a26adc8 [ci] format 2023-07-25 12:38:25 +00:00
Matthew Phillips
188eeddd47
Execute scripts on page navigation (view transitions) (#7786)
* Execute scripts on page navigation (view transitions)

* Update .changeset/sharp-seas-smile.md

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

---------

Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2023-07-25 08:35:47 -04:00
bholmesdev
25e04a2ecb [ci] format 2023-07-24 23:36:32 +00:00
Alex Sherwin
7461e82c81
Add "allowHTML" option for Markdoc with HTML parsing/processing (#7597)
* 7576 - initial support for HTML inside Markdoc.

This uses htmlparser2 to perform a pure token transform/mutation
on the markdown-it tokens, replacing the original raw HTML string
tokens with a richer set of tokens per HTML node, and in the process
Markdoc tags are interleaved in the resulting token graph at the
appropriate locations

This removes the legacy config of the @astrojs/markdoc integration
entirely (suggested by @bholmesdev) and introduces a new type for
options to be specified in the astro config, initially, with just the new
"enableHTML" option

When "enableHTML" is *not* enabled (the default), the behavior
of the entire @astrojs/markdoc integration should remain functionally
equivalent to before this change

* 7576 - fixed issues with whitespace preservation

also:

* cleaned up " to ' for astro project preferred linting
* made the html rendering test fixture use a dynamic path

* 7576 - detailed nested HTML test coverage

* 7576 -  component + HTML interleaved tests

* 7576 -  fix lint problems from previous changes

* 7576 -  some commentary

* 7576 -  file naming, refactor html under imports, package.json exports definition for html

* 7576

* move out of extensions dir, remove export
* cdata handling changes

* 7576

* inline license from third party code
* cleanup test class copy of HTML output
* remove // third party indicators for imports (clarification: not third party code, just a indicator this group of imports is third party)

* 7576 - fixed test before/after for DRY'ness

* 7576 - no need to React-ify HTML attribute case

* 7576 - rename "enableHTML" option to "allowHTML"

* Added Markdoc allowHTML feature changeset

* 7576 - updated README with allowHTML info

* 7576 - fixed changeset typo

* 7576 - minor edits based on PR feedback for docs

* 7576 - minor edits based on PR feedback for docs
2023-07-24 19:34:06 -04:00
doodlemarks
81c460e30b [ci] format 2023-07-24 21:43:14 +00:00
Mark Peck
13120a0493
Basics theme styling updates (#7760)
* update styling and include asset

* whoopsies, didnt mean to include these

* im rusty dont judge

* another thing I didn't want pushed

* anything for chris

* for natey poo

* just stop
2023-07-24 16:40:18 -05:00
Kevin Whinnery
0a1b33349f
Update esbuild target for Deno (#7687)
Co-authored-by: Erika <3019731+Princesseuh@users.noreply.github.com>
2023-07-24 22:58:05 +08:00
Houston (Bot)
e80896a67c
[ci] release (#7763)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-07-24 17:09:11 +08:00
Bjorn Lu
3567afac44
Fix rendering TextEncoder encoding error regression (#7777) 2023-07-24 16:22:05 +08:00
Birk Skyum
0c9959704f
Bump vite to 4.4.6 (#7746) 2023-07-24 16:21:17 +08:00
Bjorn Lu
baaf80b27d
Fix prerender getStaticPaths flaky test (#7745) 2023-07-24 15:49:29 +08:00
Erika
da7f1128bf
Fix missing referrerpolicy attribute on script tags (#7766)
* fix(astro-jsx): Add missing `referrerpolicy` attribute for script tags

* chore: changeset
2023-07-23 15:00:41 +02:00
Chris Swithinbank
a3d36a8894
Fix Astro pride emoji in congrats message (#7764) 2023-07-22 00:21:11 +02:00
Erika
1792737dae
Misc improvements for astro:assets (#7759) 2023-07-21 23:59:14 +02:00
Houston (Bot)
16a41528e4
[ci] release (#7737)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-07-21 16:37:17 -04:00
matthewp
c65da5f1cd [ci] format 2023-07-21 20:29:15 +00:00
Matthew Phillips
274e675328
Prevent FOUC with production links in ViewTransitions (#7756)
* Prevent FOUC with production links in ViewTransitions

* Adding changeset

* Move up so it works with fallback too
2023-07-21 16:26:42 -04:00
matthewp
f79ab0bdb3 [ci] format 2023-07-21 20:13:33 +00:00
Matthew Phillips
c2d6cfd0c2
Prevent animations with prefers-reduced-motion (#7757)
* Prevent animations with prefers-reduced-motion

* Also disable animations in the fallback

* Change select to target elements
2023-07-21 16:10:48 -04:00
Erika
471324b0a3
test: add setup for Vercel / Netlify tests (#7716)
Co-authored-by: Yan Thomas <61414485+Yan-Thomas@users.noreply.github.com>
2023-07-21 21:24:36 +02:00
matthewp
e5e5cc8e70 [ci] format 2023-07-21 14:43:17 +00:00
Matthew Phillips
201d32dcfc
Handle back navigation from page without VT (#7750)
* Handle back navigation from page without VT

* Adding a changeset
2023-07-21 10:40:36 -04:00
Sarah Rainsberger
29162c99fb
[docs] @astrojs/sitemap README update (#7748) 2023-07-21 09:59:23 -03:00
Bjorn Lu
bad65877a5
Refactor Astro page rendering (#7730) 2023-07-21 18:14:55 +08:00
Anders Kaseorg
e528526289
Fix parsing image assets from a Markdown line along with other markup (#7742)
Every regex that tries to match a substring with .* or .+ is
guaranteed to be wrong.  In this case, it was giving incorrect matches
straddling multiple quoted attributes:

    <img __ASTRO_IMAGE_="../assets/image.png"> and <a href="link">link</a>
                         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Fixes #7741.

Signed-off-by: Anders Kaseorg <andersk@mit.edu>
2023-07-21 07:59:10 +02:00
Sarah Rainsberger
379981efdc
[docs] update to view transitions in config ref (#7738) 2023-07-20 18:04:33 -03:00
natemoo-re
0c16a8da8d [ci] format 2023-07-20 18:42:00 +00:00
Arsh
35a0b6c8a9
fix(vercel): Switch to node 18 when local version is not supported (#7718)
* fix(vercel): switch to node 18 when needed

* fix types, reword

* reorder sentences

* add changeset

* fix(vercel): switch to node 18 when needed

* add referencce to vercel documentation

---------

Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
2023-07-20 13:39:46 -05:00
Houston (Bot)
92382ea1d4
[ci] release (#7714)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-07-20 12:09:38 -04:00
matthewp
b4090f8526 [ci] format 2023-07-20 16:06:34 +00:00
ottomated
3a6e42e190
Determine hoisted scripts via AST analysis (#7707)
* initial hacky

* plural importNames and exportNames

* extract into function

* Add test

* fix issue with another component importing our tracked component

* fix dynamic imports

* changeset

* add mdx to checklist

* mdx exports Content

* remove unused var

* Update packages/astro/test/hoisted-imports.test.js

Co-authored-by: Bjorn Lu <bjornlu.dev@gmail.com>

* Update packages/astro/src/core/build/plugins/plugin-analyzer.ts

Co-authored-by: Bjorn Lu <bjornlu.dev@gmail.com>

* Update packages/astro/src/core/build/plugins/plugin-analyzer.ts

Co-authored-by: Bjorn Lu <bjornlu.dev@gmail.com>

* Update real-drinks-melt.md

* Update .changeset/real-drinks-melt.md

Co-authored-by: Yan Thomas <61414485+Yan-Thomas@users.noreply.github.com>

* Update .changeset/real-drinks-melt.md

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

* Update .changeset/real-drinks-melt.md

* Update .changeset/real-drinks-melt.md

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

---------

Co-authored-by: Matthew Phillips <matthew@skypack.dev>
Co-authored-by: Matthew Phillips <matthew@matthewphillips.info>
Co-authored-by: Bjorn Lu <bjornlu.dev@gmail.com>
Co-authored-by: Yan Thomas <61414485+Yan-Thomas@users.noreply.github.com>
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2023-07-20 12:03:40 -04:00
ematipico
7a26a52e19 [ci] format 2023-07-20 14:47:18 +00:00
Emanuele Stoppa
c102c4a054
refactor: move dev rendering logic inside vite plugin (#7728) 2023-07-20 15:45:10 +01:00
Bjorn Lu
d8bae784b4
Fix organize-imports-cli with satisfies operator (#7727) 2023-07-20 20:47:36 +08:00
ematipico
47c698b08a [ci] format 2023-07-20 08:07:29 +00:00
Emanuele Stoppa
3043f98723
refactor: unify renderPage and callEndpoint in one single function (#7703)
* refactor: unify `renderPage` and `callEndpoint` in one single function

* chore: lint

* don't return the response

* chore: update error

* rebase
2023-07-20 09:04:53 +01:00
matthewp
30cdc28057 [ci] format 2023-07-20 00:04:07 +00:00
Matthew Phillips
464eb4f825
Import missing TransitionAnimationPair (#7726)
* Import missing TransitionAnimationPair

* Don't use satisfies
2023-07-19 20:01:15 -04:00
natemoo-re
5cc54bbd5a [ci] format 2023-07-19 22:13:44 +00:00
Nate Moore
b806452653
chore: fix ts error (#7723) (#7724) 2023-07-19 17:11:31 -05:00
Nate Moore
77ffcc8f8b
fix(sitemap): ensure nested 404 and 500 pages are excluded (#7722) 2023-07-19 17:05:44 -05:00
natemoo-re
7a3f4efcd9 [ci] format 2023-07-19 22:01:10 +00:00
Nate Moore
e15f1e1cc9
chore: fix ts error (#7723) 2023-07-19 16:59:01 -05:00
matthewp
7a6ca236e8 [ci] format 2023-07-19 19:21:13 +00:00