Commit graph

5020 commits

Author SHA1 Message Date
bholmesdev
8ac0632d7c refactor: remove fallback loader 2023-02-14 09:28:09 -05:00
bholmesdev
37426a10bc fix: markdoc.config loading 2023-02-14 09:28:09 -05:00
bholmesdev
2decb70344 oops, forgot to commit untracked 2023-02-14 09:28:09 -05:00
bholmesdev
414bb9f90b refactor: pass file contents 2023-02-14 09:28:09 -05:00
bholmesdev
f7fa5e2107 refactor: move plain md to content entry type 2023-02-14 09:28:09 -05:00
bholmesdev
f994666007 wip: move mdx to collection type API 2023-02-14 09:28:09 -05:00
bholmesdev
10da5b9d1b deps: mdx 2023-02-14 09:28:09 -05:00
bholmesdev
336810b2cf wip: scaffold content types 2023-02-14 09:28:09 -05:00
bholmesdev
7a941a0b2d feat: move Renderer to markdoc, get Content component! 2023-02-14 09:28:09 -05:00
bholmesdev
da7bdb4e70 deps: move to @astrojs/markdoc 2023-02-14 09:28:09 -05:00
bholmesdev
75a0742b5f feat: addContentEntryType integration hook 2023-02-14 09:28:09 -05:00
bholmesdev
b63d390238 deps: graymatter 2023-02-14 09:28:09 -05:00
bholmesdev
d8baec8bd1 chore: unit tests 2023-02-14 09:28:09 -05:00
bholmesdev
4a275ab4d0 wip: get dream API for file loader working 2023-02-14 09:28:09 -05:00
bholmesdev
2bb0c5d98f wip: play with separate markdoc config 2023-02-14 09:28:09 -05:00
bholmesdev
570b83d525 fix: render attributes to html 2023-02-14 09:28:09 -05:00
bholmesdev
dc906d8a9c deps: stringify-attributes 2023-02-14 09:28:09 -05:00
bholmesdev
344fba56bb fix: component render bug 2023-02-14 09:28:09 -05:00
bholmesdev
38733a9e20 feat: basic Astro renderer in with-markdoc 2023-02-14 09:28:09 -05:00
bholmesdev
06696bd9c9 wip: expose Markdoc from integration 2023-02-14 09:28:09 -05:00
bholmesdev
e2b4f95dfd feat: get markdoc contents 2023-02-14 09:28:09 -05:00
bholmesdev
1d8c73d2c5 chore: integration setup 2023-02-14 09:28:09 -05:00
Ben Holmes
deacd5443a
Run integration config hook on astro sync (#6238)
* refactor: move sync to core

* fix: runHookConfigSetup in CLI

* chore: changeset

* fix: sync import on test-utils

* fix: use syncCli in check
2023-02-14 09:26:30 -05:00
MoustaphaDev
e00e934140 [ci] format 2023-02-13 22:21:23 +00:00
Happydev
c397be324f
fix: add support for js/mjs file extensions for Content Collections config file (#6229)
* test: add fixture

* test: add test case

* test: fix tests

* feat: support mjs/ js file extensions for cc config

* chore: sync lockfile

* test: make assertion more specific

* test: make template minimal

* chore: add changeset

* feat: add warning when `allowJs` is `false`

* improve warning

* extract tsconfig loader to another function

* rename to more descriptive variable

* apply review suggestion

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

---------

Co-authored-by: Ben Holmes <hey@bholmes.dev>
2023-02-13 22:19:16 +00:00
Houston (Bot)
27a0b6339b
[ci] release (#6200)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-02-13 15:26:13 -05:00
matthewp
6d4810b08b [ci] format 2023-02-13 19:50:21 +00:00
Matthew Phillips
a7f18051b1
Prevent hydration mismatches in Preact (#6215) 2023-02-13 14:48:36 -05:00
bholmesdev
b46787c8eb [ci] format 2023-02-13 15:12:39 +00:00
Ben Holmes
baa2dbb3b5
Fix getEntryType failure on spaces in file name (#6218)
* fix: avoid url -> file -> url parsing

* chore: changeset
2023-02-13 10:10:33 -05:00
Sarah Rainsberger
2d72ea30ae
[docs] README typo fixes (#6233)
* [docs] README typo fixes

* adaptor -> adapter

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

* one more adapter

---------

Co-authored-by: Chris Swithinbank <swithinbank@gmail.com>
2023-02-13 09:57:28 -04:00
matthewp
bf3aa2bcde [ci] format 2023-02-13 12:51:06 +00:00
Matthew Phillips
79783fc018
Fix head injection in body with slots.render() and head buffering (#6216)
* Fix head injection in body with slots.render() and head buffering

* Adding a changeset

* An MDX test too
2023-02-13 07:49:10 -05:00
Marvin Frachet
79f49acbe1
Fix 6206: Cloudflare function path resolving one step above (#6208)
* Fix 6206: Cloudflare function path resolving one step above
2023-02-13 02:19:38 +01:00
Nate Moore
8b7cb64dad
Preserve --root CLI flag on restart (#6049)
* fix(#5985): preserve `--root` CLI flag on restart

* fix: resolve --root relative to automatic root

* chore: revert container changes

* fix: pass flags.root to restart container

---------

Co-authored-by: Nate Moore <nate@astro.build>
2023-02-09 14:02:51 -06:00
Houston (Bot)
d6845245f2
[ci] release (#6184)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-02-09 14:27:56 -05:00
matthewp
9e7a198132 [ci] format 2023-02-09 19:24:45 +00:00
Matthew Phillips
a9bdd9cc4e
Fixes usage of Code component in Vercel (#6198)
* Fixes usage of Code component in Vercel

* Adding a changeset
2023-02-09 14:22:57 -05:00
Bryce Russell
c75d319ee6
Fix types for TableHTMLAttributes (#6197)
* Fix types for TableHTMLAttributes

- Add 'string' type to 'border' attribute
- Add 'false | true' to 'frame' attribute

Thanks Princesseuh for helping

* Create sixty-scissors-refuse.md

* Make changeset more descriptive

* Fix previous changset

---------

Co-authored-by: BryceRussell <19967622+BryceRussell@users.noreply.github.com>
2023-02-09 13:12:15 -06:00
Chris Swithinbank
11e1fa9883
Vercel adapter README tweaks (#6191) 2023-02-09 18:14:57 +01:00
matthewp
e44e340f7e [ci] format 2023-02-09 16:52:23 +00:00
Matthew Phillips
3390cb8444
Fix head injection misplacement with Astro.slots.render() (#6196)
* Fix head injection misplacement with Astro.slots.render()

* Adding a changeset

* Fix case of JSX with no layout

* missing break
2023-02-09 11:50:04 -05:00
bholmesdev
0c3485ab07 [ci] format 2023-02-09 14:50:17 +00:00
Ben Holmes
5616167358
Fix blog starter about page (#6195)
* refactor: about.md -> about.astro

* chore: add strictNullChecks

* fix: format date on blog post layout
2023-02-09 09:48:29 -05:00
Houston (Bot)
350cbd66d3
[ci] update lockfile (#6189)
Co-authored-by: FredKSchott <FredKSchott@users.noreply.github.com>
2023-02-09 08:19:13 -05:00
Dan Jutan
436bd09341
Fix root directory spread pagination url.prev for first page (#6183)
* Fix root pagination `url.prev` for first page

* fix lockfile?

* add changeset
2023-02-08 19:14:47 -05:00
matthewp
a64a800d9b [ci] format 2023-02-08 22:17:40 +00:00
Matthew Phillips
938ad514cd
Ensure base configuration appended to content collection styles (#6182)
* Fix, base appended to propagated scripts

* Test scripts
2023-02-08 17:15:33 -05:00
matthewp
e4b2a2e3c7 [ci] format 2023-02-08 21:44:40 +00:00
Matthew Phillips
6fa6025b34
Allow binary data to be returned from api routes in SSG (#6180)
* Allow binary data to be returned from api routes in SSG

* Adding a changeset
2023-02-08 16:42:52 -05:00