Matt Kane
fa07002352
fix(markdoc): correctly render boolean HTML attributes ( #12584 )
2024-12-02 14:37:00 +00:00
Emanuele Stoppa
2da81e53c3
Merge branch 'main' into next
2024-11-27 14:31:09 +00:00
renovate[bot]
6fc29e3c24
fix(deps): update all non-major dependencies ( #12410 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: bluwy <bjornlu.dev@gmail.com>
2024-11-27 16:20:16 +08:00
Matt Kane
af867f3910
feat: experimental responsive images ( #12377 )
...
* chore: changeset
* feat: add experimental responsive images config option (#12378 )
* feat: add experimental responsive images config option
* Apply suggestions from code review
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
* Update config types
* Move config into `images`
* Move jsdocs
---------
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
* feat: add responsive image component (#12381 )
* feat: add experimental responsive images config option
* Apply suggestions from code review
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
* Update config types
* Move config into `images`
* Move jsdocs
* wip: responsive image component
* Improve srcset logic
* Improve fixture
* Lock
* Update styling
* Fix style prop handling
* Update test (there's an extra style for images now)
* Safely access the src props
* Remove unused export
* Handle priority images
* Consolidate styles
* Update tests
* Comment
* Refactor srcset
* Avoid dupes of original image
* Calculate missing dimensions
* Bugfixes
* Add tests
* Fix test
* Correct order
* Lint
* Fix fspath
* Update test
* Fix test
* Conditional component per flag
* Fix class concatenation
* Remove logger
* Rename helper
* Add comments
* Format
* Fix markdoc tests
* Add test for style tag
---------
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
* feat: add crop support to image services (#12414 )
* wip: add crop support to image services
* Add tests
* Strip crop attributes
* Don't upscale
* Format
* Get build working properly
* Changes from review
* Fix jsdoc
* feat: add responsive support to picture component (#12423 )
* feat: add responsive support to picture component
* Add picture tests
* Fix test
* Implement own define vars
* Share logic
* Prevent extra astro-* class
* Use dataset scoping
* Revert unit test
* Revert "Fix test"
This reverts commit f9ec6e2938
.
* Changes from review
* docs: add docs for responsive images (#12429 )
* docs: add responsive images flag docs
* docs: adds jsdoc for image components
* chore: updates from review
* Fix jsdoc
* Changes from review
* Add breakpoints option
* typo
---------
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2024-11-15 13:29:52 +00:00
bluwy
a393154906
Merge branch 'main' into next
2024-10-15 16:19:58 +08:00
renovate[bot]
5ab2d980aa
fix(deps): update all non-major dependencies ( #12218 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: bluwy <bjornlu.dev@gmail.com>
2024-10-15 14:42:58 +08:00
Princesseuh
b75758f883
Merge branch 'main' into next
2024-10-07 15:52:21 +02:00
renovate[bot]
fef0b8cce1
fix(deps): update all non-major dependencies ( #12140 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-10-07 17:44:43 +08:00
Matt Kane
abf9a89ac1
Implement legacy collections using glob ( #11976 )
...
* feat: support pattern arrays with glob
* wip
* feat: emulate legacy content collections
* Fixes
* Lint
* Correctly handle legacy data
* Fix tests
* Switch flag handling
* Fix warnings
* Add layout warning
* Update fixtures
* More tests!
* Handle empty md files
* Lockfile
* Dedupe name
* Handle data ID unslug
* Fix e2e
* Clean build
* Clean builds in tests
* Test fixes
* Fix test
* Fix typegen
* Fix tests
* Fixture updates
* Test updates
* Update changeset
* Test
* Remove wait in test
* Handle race condition
* Lock
* chore: changes from review
* Handle folders without config
* lint
* Fix test
* Update wording for auto-collections
* Delete legacyId
* Sort another fixture
* Rename flag to `legacy.collections`
* Apply suggestions from code review
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
* Changes from review
* Apply suggestions from code review
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
* lockfile
* lock
---------
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2024-10-04 16:13:51 +01:00
bluwy
e748c480a7
Merge branch 'main' into next
2024-10-01 11:21:48 +08:00
Bjorn Lu
a19530e377
Parse frontmatter ourselves ( #12075 )
2024-09-26 14:59:39 +01:00
renovate[bot]
2594eb088d
fix(deps): update all non-major dependencies ( #12003 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: bluwy <bjornlu.dev@gmail.com>
2024-09-26 14:57:59 +01:00
Florian Lefebvre
74722cb81c
feat(next): reference astro/client from astro/config ( #11925 )
2024-09-11 14:40:15 +02:00
Florian Lefebvre
38047119ff
feat(next): better tsconfig ( #11859 )
...
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
Co-authored-by: Bjorn Lu <bjornlu.dev@gmail.com>
2024-09-03 17:49:09 +02:00
HiDeoo
ed7bbd990f
fix(markdoc): use astro components defined with extends
( #11846 )
2024-08-27 16:49:04 +01:00
renovate[bot]
48b85c13dd
fix(deps): update all non-major dependencies ( #11765 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-08-19 16:09:05 +08:00
Darius
72c7ae9901
update formatter config ( #11640 )
...
* update formatter config
* format
---------
Co-authored-by: Erika <3019731+Princesseuh@users.noreply.github.com>
2024-08-08 12:12:50 +02:00
renovate[bot]
750d5328c9
fix(deps): update all non-major dependencies ( #11565 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-07-31 21:17:26 +08:00
Fugi
20fc99b6ab
[ci] format
2024-07-17 12:24:18 +00:00
Peter Schilling
eb303e1ad5
feat(markdoc): Support markdown-it's typographer option ( #11450 )
...
* Support markdoc-it's typographer option in markdoc
* Update .changeset/forty-scissors-jog.md [skip ci]
* Update .changeset/forty-scissors-jog.md [skip ci]
* Fix typo in changeset
---------
Co-authored-by: Bjorn Lu <bjornlu.dev@gmail.com>
Co-authored-by: Erika <3019731+Princesseuh@users.noreply.github.com>
2024-07-17 14:14:35 +02:00
renovate[bot]
e60aab9a9f
fix(deps): update all non-major dependencies ( #11383 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: bluwy <bjornlu.dev@gmail.com>
2024-07-01 16:32:17 +08:00
renovate[bot]
464b0a108e
fix(deps): update all non-major dependencies ( #11151 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: bluwy <bjornlu.dev@gmail.com>
2024-05-30 17:28:57 +08:00
renovate[bot]
f9b6f4fc2f
chore(deps): update all non-major dependencies ( #10958 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: bluwy <bjornlu.dev@gmail.com>
2024-05-09 15:20:13 +08:00
Viktor Szépe
a146cf1012
Fix typos ( #10923 )
2024-05-01 13:56:38 +08:00
Emanuele Stoppa
347bdfe550
[ci] format
2024-04-17 08:38:53 +00:00
Ben Holmes
8f636693d5
[ci] format
2024-04-03 20:50:06 +00:00
Ben Holmes
90cfade88c
feat: automatic Markdoc partial resolution ( #10649 )
...
* wip: react counter example
* feat: resolve markdoc partials by file path
* test: components within partials
* test: html within partial
* chore: changeset
* fix: respect user configured partials
* test: basic partials
* chore: lock
* chore: fix lock
* chore: minor -> patch
* fix: use --parallel for dev server timeout error
* refactor: move component tests to separate file
* fix: build indent fixture
* fix: check before addWatchFile
* refactor: rootRelative -> relativePartial
* deps: use workspace react integration
* refactor: split test files by fixture
* refactor: switch to preact to avoid react prod build error
* feat: use vite pluginContext
* fix: handle missing ./
* chore: bump timeout
2024-04-03 16:48:53 -04:00
James Garbutt
374efcdff9
Lazy loaded shiki languages during syntax highlighting ( #10618 )
2024-04-01 22:52:50 +08:00
Emanuele Stoppa
dfd146f591
Revert "[ci] format" ( #10417 )
...
* Revert "[ci] format"
This reverts commit 1863727215
.
* pin dependency
* update lock
2024-03-13 09:55:24 +00:00
Houston (Bot)
1863727215
[ci] format
2024-03-13 05:53:52 +00:00
Emanuele Stoppa
1e638c4019
chore: import sorting for test folder and e2e folder ( #10190 )
2024-02-22 13:58:10 +00:00
Emanuele Stoppa
062623438b
chore: use biome to sort imports - only test files ( #10180 )
...
* chore: use biome to sort imports
* do the sorting
* Update package.json
Co-authored-by: Bjorn Lu <bjornlu.dev@gmail.com>
---------
Co-authored-by: Bjorn Lu <bjornlu.dev@gmail.com>
2024-02-21 14:08:19 +00:00
Erika
14ce8a6ebf
feat(markdoc): Add support for using a custom component for images ( #9958 )
...
* feat(markdoc): Add support for using a custom component for images
* chore: changeset
* test: add test
* Update .changeset/shaggy-spies-sit.md
Co-authored-by: Florian Lefebvre <contact@florian-lefebvre.dev>
---------
Co-authored-by: Florian Lefebvre <contact@florian-lefebvre.dev>
2024-02-08 07:54:40 +01:00
ktym4a
bfc145b778
chore(@astrojs/markdoc): use Node.js for testing ( #9897 )
2024-01-31 10:37:39 +00:00
Jacob Lamb
53f1c95717
Fix: update doc links ( #9804 )
...
* Fix: update doc links
* More links
* Remove docs line
2024-01-25 10:18:06 +00:00
Bjorn Lu
cdabf6ef02
Remove support for simple objects in endpoints ( #9181 )
...
* Deprecate simple object from endpoints
* Update changeset
* Add missing Response return
Co-authored-by: Happydev <81974850+MoustaphaDev@users.noreply.github.com>
* Update .changeset/clever-beds-notice.md
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
---------
Co-authored-by: Happydev <81974850+MoustaphaDev@users.noreply.github.com>
Co-authored-by: Matthew Phillips <matthew@skypack.dev>
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2023-11-27 12:51:57 -05:00
Bjorn Lu
153a5abb90
Remove deprecated features from Astro 3.0 ( #9168 )
2023-11-28 00:44:20 +08:00
Luca Di Gianventura
01c801108f
Fix: Markdoc Integration build when root folder contains spaces ( #8759 )
...
Co-authored-by: Arsh <69170106+lilnasy@users.noreply.github.com>
2023-10-27 17:45:02 +08:00
ematipico
678ba54056
[ci] format
2023-10-24 07:43:49 +00:00
AndyClifford
73b8d60f8c
feat(markdoc): allowIndentation integration option ( #8802 )
2023-10-24 08:40:54 +01:00
Bjorn Lu
c4270e4768
Use shikiji ( #8502 )
...
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2023-10-12 00:07:06 +08:00
Erika
de7a7fbdc3
nit: optimize images ( #8629 )
2023-09-22 12:04:39 +02:00
Bjorn Lu
353dcb23e8
Update non-major dependencies ( #8199 )
2023-08-23 19:52:13 +08:00
Arsh
8a5b0c1f3a
Switch build.inlineStylesheets
default to auto ( #8118 )
...
* switch inlineStylesheets default
* use previous default for astro/test
* use previous default for content-collections-render.test.js
* integrations: node, deno, mdx, markdown
* typedocs: switch inlineStylesheets default
* Update example to show non-default
* add changeset
* reword changeset
---------
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2023-08-18 07:52:06 +01:00
Erika
2484dc4080
config: remove ~/assets alias ( #8113 )
...
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
Co-authored-by: Mia Kanashi <chad@redpilled.dev>
2023-08-17 14:22:26 +02:00
Erika
b76c166bdd
feat: unflag experimental.assets ( #7921 )
...
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
Co-authored-by: Emanuele Stoppa <my.burning@gmail.com>
2023-08-16 10:21:05 +02: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
Erika
b3b640435b
nit: export props has been unnecessary.. forever ( #7646 )
2023-07-14 09:57:06 -04:00
Ben Holmes
8df6a423c5
Fix: Hyphens breaking Markdoc tags ( #7599 )
...
* fix: handle hyphens in tag names
* test: add hyphen in test suite
* chore: changeset
2023-07-07 16:50:06 -04:00