Commit graph

5637 commits

Author SHA1 Message Date
bluwy
af9ac3360b [ci] format 2023-06-05 08:04:02 +00:00
Jerry_wu
890a2bc989
remove the white space after the doctype according to the property co… (#7242) 2023-06-05 16:02:04 +08:00
Bjorn Lu
ef410fa30b
Simplify Deno test (#7276) 2023-06-05 15:05:16 +08:00
Houston (Bot)
c895981386
[ci] release (#7278)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-06-02 13:17:55 -05:00
Nate Moore
229affca40
Add 'starlight' as template alias (#7277)
* feat(create-astro): add starlight as template alias

* chore: lint
2023-06-02 12:56:25 -05:00
Houston (Bot)
c64dfdd3d8
[ci] release (#7254)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-06-02 10:51:28 -04:00
Bjorn Lu
6721b1f699
Run example check in parallel with 5 at most (#7275) 2023-06-02 21:14:44 +08:00
Bjorn Lu
96ae37eb09
Fix Vitest with content collections (#7233) 2023-06-02 21:05:57 +08:00
Ben Holmes
9e7366567e
Content collections: ignored underscore directories in file glob (#7268)
* fix: ignored underscore dirs in glob

* chore: changeset
2023-06-02 07:54:50 -04:00
bluwy
6533041ce0 [ci] format 2023-06-02 08:53:10 +00:00
Benjamin MENANT
6e27f2f6db
fix(astro/core/app/node): support http2 requests (#7215) 2023-06-02 16:51:09 +08:00
Johannes Spohr
fea3069360
Parallel array rendering (#7136) 2023-06-02 16:46:12 +08:00
bluwy
6b8d55b096 [ci] format 2023-06-02 08:10:03 +00:00
André Alves
dff0d0dda2
Fix sitemap filter (#7263) 2023-06-02 16:07:44 +08:00
Nate Moore
408be72d1d
Fix duplicate semver minor blocks (#7269)
* chore(action): fix duplicate blocks

* chore(action): fix block logic
2023-06-01 13:21:55 -05:00
Thiti Yamsung
5156c4f90e
fix: build fail upon have 'process.env' in *.md file. (#7257) 2023-06-01 10:34:02 -04:00
bholmesdev
c86f0c6e3e [ci] format 2023-05-31 23:21:07 +00:00
Ben Holmes
339529fc82
Markdoc asset bleed, second try (#7185)
* Revert "revert: markdoc asset bleed (#7178)"

This reverts commit 57e65d247f.

* fix: missing result param on `renderUniqueStylesheet`

* test: bundled styles (fails!)

* fix: use `type: 'external'` for links

* fix: split Astro components from markdoc config

* test: style bleed (it fails...)

* chore: remove unused util

* fix: revert entry change

* Stop traversing the graph when you encounter a propagated asset

* chore: cleanup unused `entry` prop

* refactor: add isPropagatedAssetsMod check

* chore: remove unused import

* chore: changeset

* Normalize path using vite

* Update packages/integrations/markdoc/src/index.ts

Co-authored-by: Ben Holmes <hey@bholmes.dev>

---------

Co-authored-by: Matthew Phillips <matthew@skypack.dev>
Co-authored-by: bholmesdev <bholmesdev@gmail.com>
Co-authored-by: Matthew Phillips <matthew@matthewphillips.info>
2023-05-31 19:18:07 -04:00
Nate Moore
c4c086e5e7
Fix semver minor action (#7261)
* Update check-merge.yml

* chore: update action

* chore(action): better check if block exists

* chore(action): update check-merge action
2023-05-31 17:15:14 -05:00
Nate Moore
e0ca0d8c8a
Revert "feat(hybrid): unflag hybrid output (#7255)" (#7259)
This reverts commit bc5d6ed39f.
2023-05-31 12:06:24 -05:00
natemoo-re
4e653a4d29 [ci] format 2023-05-31 16:49:24 +00:00
Nate Moore
bc5d6ed39f
feat(hybrid): unflag hybrid output (#7255) 2023-05-31 11:47:25 -05:00
Ben Holmes
563293c5d6
Markdoc: strip HTML comments from output (#7224)
* feat: strip HTML comments from output

* chore: changeset
2023-05-31 10:09:49 -04:00
Ben Holmes
290e344dee
Fix out-of-date example dependencies (#7248)
* revert changeset patch

* deps: bump astro across examples

* deps: bump @astrojs packages across examples

* deps: bump @astrojs/markdoc
2023-05-30 19:51:09 -04:00
Houston (Bot)
ba865f5d64
[ci] release (#7190)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-05-30 16:53:55 -04:00
Ben Holmes
f5063d0a01
Content collections - fix .json collection errors (#7246)
* fix: avoid error on collectionType === 'unknown'

* fix: ignore underscores in file globs

* chore: clarify [!_]

* fix: mismatch error not throwing

* fix: bad collectionType var

* test: no error for empty collection

* chore: changeset
2023-05-30 16:27:47 -04:00
bholmesdev
8da07ab754 [ci] format 2023-05-30 20:21:13 +00:00
Ben Holmes
bef3a75dbc
Markdoc - remove $entry variable (#7244)
* refactor: remove entry prop from `getRenderModule()`

* refactor: remove `$entry` from markdoc

* test: update entry-prop -> variables test

* refactor: unify `getEntryConfigByExt`

* chore: clean up shared content / data get logic

* docs: update `$entry` recommendation

* chore: rename entry-prop -> variables

* chore: changeset

* chore: missed a spot
2023-05-30 16:18:20 -04:00
Ben Holmes
c7897f20a9
Markdoc: new README for Markdoc nodes (#7225)
* docs: all-new nodes documentation

* edit: `.astro` ONLY

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

* edit: `.` outside links, line break

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

* edit: such as, not like

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

* edit: more Astro less probs

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

* edit: reviewers React to

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

* edit: tagz

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

* chore: add `default: 'article'` for document

* edit: reword client-side instructions

* edit: prism stylesheet got lost

* fix: heading -> blockquote

---------

Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2023-05-30 14:51:38 -04:00
MoustaphaDev
4851782197 [ci] format 2023-05-30 14:14:52 +00:00
Happydev
ee2aca80a7
fix: prioritize dynamic prerendered routes over dynamic server routes (#7235)
* test: add unit tests

* fix: prioritize prerendered routes

* chore: fix test

* add comment

* test: try avoiding race condition

* chore: changeset

* try avoiding race conditions attempt #2

* try avoiding race conditions (attempt 3)

* final fix hopefuly

* tet: add more tests

* sort conflicting dynamic routes aplhabetically

* test: fix test
2023-05-30 14:12:16 +00:00
matthewp
e20a3b20b7 [ci] format 2023-05-30 12:08:08 +00:00
wulinsheng123
cf621340b0
Bug 6672 (#7062)
* fix miss a head when the templaterender has a promise

* fix

* add some test

* test files move to md directory

* fix add

* delect file

---------

Co-authored-by: wuls <linsheng.wu@beantechs.com>
2023-05-30 08:05:48 -04:00
Bjorn Lu
29da199e9a
Document MDX optimize static logic (#7221)
Co-authored-by: Emanuele Stoppa <my.burning@gmail.com>
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2023-05-30 15:46:33 +08:00
Bjorn Lu
af3c5a2e25
Use AstroError for Astro.glob errors (#7219)
Co-authored-by: Erika <3019731+Princesseuh@users.noreply.github.com>
Co-authored-by: sarah11918 <sarah11918@users.noreply.github.com>
2023-05-29 20:42:31 +08:00
Bjorn Lu
df1e6f78df
Fix markdoc image tests (#7231) 2023-05-29 16:37:40 +08:00
Erika
f2f18b4405
feat: support images outside the project (#7139) 2023-05-26 22:03:06 +02:00
Bjorn Lu
1c77779dd6
Fix astro-static-slot hydration mismatch error (#7196) 2023-05-26 22:37:33 +08:00
Bjorn Lu
6c7df28ab3
Fix CSS deduping and missing chunks (#7218) 2023-05-26 21:30:42 +08:00
Princesseuh
6b12f93b57 [ci] format 2023-05-26 13:04:57 +00:00
André Alves
bf63f615fc
Add global crypto to @astrojs/webapi (#6981)
* add crypto to be polyfilled

* chore: changeset

* chore: update deps for node types

---------

Co-authored-by: Erika <3019731+Princesseuh@users.noreply.github.com>
Co-authored-by: Princesseuh <princssdev@gmail.com>
2023-05-26 15:02:35 +02:00
Bjorn Lu
52af9ad188
Add error message if Astro.glob is called outside (#7204) 2023-05-26 16:59:51 +08:00
Ben Holmes
184870e2e2
deps: bump @babel/core and @babel/types (#7214) 2023-05-25 13:30:03 -04:00
bholmesdev
594a3aaf51 [ci] format 2023-05-25 15:37:55 +00:00
Ben Holmes
16b8364119
Markdoc - improve syntax highlighting support (#7209)
* feat: prism and shiki support, with better exports!

* chore: update tests

* chore: fix lock

* chore: add prism test

* chore: remove `async` from prism

* docs: update syntax highlight readme

* chore: changeset

* edit: remove `await` from prism docs

* chore: update old changest with new shiki instructions

* fix: add trailing newline on ts-expect-error

* refactor: resolve promises internally

* docs: remove `await` from shiki examples
2023-05-25 11:35:07 -04:00
ematipico
223e0131fc [ci] format 2023-05-25 13:30:42 +00:00
Emanuele Stoppa
8b041bf57c
refactor: emit pages as physical entry points (#7193) 2023-05-25 14:28:40 +01:00
Erika
f5a8cffac2
fix(vercel): Fix typo in README 🤦‍♀️ (#7208) 2023-05-25 14:59:25 +02:00
Bjorn Lu
ea16570b1e
Add MDX optimize option (#7151)
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2023-05-25 19:43:29 +08:00
Bjorn Lu
20a97922aa
Document partytown script block by extensions (#7205) 2023-05-25 19:42:57 +08:00