Commit graph

1801 commits

Author SHA1 Message Date
Fred K. Schott
d5ebd9d178
fix create-astro export map entry (#2150) 2021-12-07 10:21:42 -08:00
Fred K. Schott
0ef682c924
Validate Astro frontmatter JS/TS on compiler error (#2115)
* validate the astro component frontmatter ahead of compilation

* add test, update existing tests

* chore(lint): Prettier fix

* Update index.ts

* remove macos skip lines, no longer needed

Co-authored-by: GitHub Action <github-action@users.noreply.github.com>
2021-12-07 08:18:41 -08:00
GitHub Action
317c62a247 chore(lint): Prettier fix 2021-12-07 14:04:53 +00:00
Jonathan Neal
eb70732704
DOCS: Update "Publish to NPM" (#2134)
* DOCS: Update "Publish to NPM"

* nit: fix files link

* nit: update project root docs

* Update docs/src/pages/guides/publish-to-npm.md

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

Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
2021-12-07 09:03:53 -05:00
GitHub Action
09144e8e88 chore(lint): Prettier fix 2021-12-06 23:37:30 +00:00
borisv
31af8efa10
Recreating recent changes to German docs as performed in #2093 but overwritten (#2120)
* Update config.ts again

Recreating recent changes to the de menu section that got lost during some other PR using outdated data or whatever)))

* Update getting-started.md

Recreating re-routes in text links
Recreating replacement of snowpackjs by withastro in links

* Update quick-start.md

Recreating re-routes in text links
Recreating replacement of snowpackjs by withastro in links

* Update getting-started.md

Recreating title replacement in frontmatter

* Update installation.md

Recreating re-routes in text links
Recreating replacement of snowpackjs by withastro in links

* Update comparing-astro-vs-other-tools.md

Recreating re-routes in text links
Recreating replacement of snowpackjs by withastro in links

* Update quick-start.md

Adds missing preceding slash

* Update astro-components.md

Recreating re-routes in text links
Recreating replacement of the term Rückfall by Fallback
Updating frontmatter

* Update astro-pages.md

Recreating re-routes in text links
Recreating changes to frontmatter

* Update component-hydration.md

Recreating re-routes in text links
Recreating changes to frontmatter

* Update layouts.md

Recreating re-routes in text links
Recreating changes to frontmatter

* Update project-structure.md

Recreating re-routes in text links
Recreating changes to frontmatter

* Update routing.md

Recreating re-routes in text links
Recreating replacement of snowpackjs by withastro in links
Recreating changes to frontmatter

* Update 0.21.0.md

Small grammar fix
2021-12-06 16:36:34 -07:00
github-actions[bot]
a7e2070abc
chore: release (#2136)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2021-12-06 17:10:43 -06:00
Drew Powers
da7b41f5b8
Fix build missing styles (affecting docs) (#2112)
* Revert "remove odd docs regression caused by Astro.fetchContent()"

This reverts commit df47077978.

* Fix build missing styles
2021-12-06 16:01:32 -07:00
Nate Moore
cc1dae55c8
fix(#2129): exclude 404 from sitemap (#2137)
* fix(#2129): exclude 404 from sitemap

* chore(lint): Prettier fix

* chore: trigger ci

Co-authored-by: GitHub Action <github-action@users.noreply.github.com>
2021-12-06 16:50:30 -06:00
Nate Moore
ddac977748
Skip flaky macOS Sass test (#2138)
* test: skip flaky macOS test

* test: skip flaky macOS test
2021-12-06 16:32:07 -06:00
Nate Moore
77c3fda379
Make fetch injection safe to existing code (#2135)
* fix: inject `fetch` only if not declared

* test: improve fetch test

* chore(lint): Prettier fix

* chore: trigger ci

* fix: improve type narrowing

Co-authored-by: GitHub Action <github-action@users.noreply.github.com>
2021-12-06 16:08:00 -06:00
github-actions[bot]
1298fd8678
chore: release (#2133)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2021-12-06 15:15:14 -06:00
GitHub Action
ec6cdef62d chore(lint): Prettier fix 2021-12-06 19:24:10 +00:00
Elliott Marquez
d9d3906a3c
test(lit): add reflected property tests (#2116) 2021-12-06 13:23:09 -06:00
Leosvel Pérez Espinosa
c0f29bcf8c
Parse --renderers flag correctly when passed to the create-astro cli (#2124) 2021-12-06 09:19:22 -05:00
Leon
2e1936f116
Fix a link syntax (#2114) 2021-12-03 18:02:19 -07:00
github-actions[bot]
fe11bdb5f7
chore: release (#2118)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2021-12-03 16:29:11 -06:00
Nate Moore
8346a1f2b9
Update Compiler (#2117)
* chore: update compiler

* chore: update compiler

* Revert "chore: update compiler"

This reverts commit 5742c24542.
2021-12-03 16:10:05 -06:00
Mikkel Tønder
3e4cfea4e2
Make aliases work on windows (#2109)
* Make aliases work on windows

Change all occurrences of path.posix to path.

* Remove console log statement

* Update index.ts

* Update index.ts

* Update index.ts

* Edit changeset
2021-12-03 10:53:11 -05:00
GitHub Action
213a2622e2 chore(lint): Prettier fix 2021-12-03 14:40:46 +00:00
Andreas Koutsoukos
a7a5546429
Update styling.md (#2084)
I found that the require is better way to import postcss plugins: https://github.com/postcss/postcss-load-config/issues/192
2021-12-03 09:39:37 -05:00
github-actions[bot]
4f546173b4
chore: release (#2108)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2021-12-03 09:30:45 -05:00
Matthew Phillips
583459d0b6
Fix support for ?url on CSS (#2106)
* Fix support for ?url on CSS

* Adds a changeset

* chore(lint): Prettier fix

Co-authored-by: GitHub Action <github-action@users.noreply.github.com>
2021-12-03 09:19:37 -05:00
Matthew Phillips
4c44467668
Remove use of URL module in runtime (#2107)
* Remove use of URL module

We can't use this module due to Vite not having a shim and this needing
to run inside Vite.

* Adding a changeset
2021-12-03 09:13:20 -05:00
Fred K. Schott
b098f04dc3 Revert "Docs: Add Themes page in Zh-TW (#1725)"
This reverts commit 3a8c9a6408.
2021-12-02 20:51:25 -08:00
Fred K. Schott
df47077978 remove odd docs regression caused by Astro.fetchContent() 2021-12-02 20:13:39 -08:00
github-actions[bot]
787e4e6497
chore: release (#2098)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2021-12-02 17:45:56 -05:00
Jonathan Neal
11798a3209
Update Astro dependencies (#2096)
* Update Astro dependencies

* changeset

* chore: update `@astro/compiler`
2021-12-02 17:33:24 -05:00
Nate Moore
a2aa7c0f1d chore(actions): update release messages 2021-12-02 16:16:57 -06:00
Nate Moore
e0414ac865
Cleanup Actions (#2088)
* chore: actions cleanup

* chore: make release messages more fun

* chore: fix casing

* chore(lint): Prettier fix

Co-authored-by: GitHub Action <github-action@users.noreply.github.com>
2021-12-02 14:04:11 -06:00
YM
3a8c9a6408
Docs: Add Themes page in Zh-TW (#1725)
* Add 'Themes' page in zh-TW for docs

* Update translations of Themes for Zh-tw in Doc

* Update relative path for zh-TW docs
2021-12-02 13:22:58 -06:00
github-actions[bot]
e57308d70c
[ci] release (#2071)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2021-12-02 13:01:17 -05:00
Drew Powers
0a826c999c
Allow special characters in filenames (#2091)
#2089
2021-12-02 10:45:54 -07:00
Matthew Phillips
97174e6ff4
Add tests for assets using imports (#2090) 2021-12-02 12:32:42 -05:00
Nate Moore
ac3e870280
fix: renderer behavior with no children (#2078)
* fix: renderer behavior with no children

* [ci] Prettier fix

* Force CI

* fix: properly handle falsy values

* [ci] Prettier fix

* chore: force ci

* [experiment] netlify ignore

Co-authored-by: GitHub Action <github-action@users.noreply.github.com>
2021-12-02 10:30:15 -06:00
Drew Powers
62a5e98c90
Improve CSS import ordering, fix empty CSS outputs (#2081)
Fixes #2060
2021-12-02 09:24:00 -07:00
Nate Moore
f6b15c3516 [experiment] ignore netlify builds outside of docs and www 2021-12-02 10:14:02 -06:00
Nate Moore
3fd59b8a3a
[experiment] Netlify Ignore (#2080)
* chore: ignore netlify builds for docs/

* chore: ignore netlify builds for www/

* chore: update netlify ignore to check against main
2021-12-02 10:07:54 -06:00
Matthew Phillips
1301f3daa9
Makes Astro.resolve return root-relative paths (#2048)
* Makes Astro.resolve return root-relative paths

* Adds a changeset

* Update the compiler version and PR review

* Fix linting

* [ci] Prettier fix

* Remove use of vitifyURL

Co-authored-by: GitHub Action <github-action@users.noreply.github.com>
2021-12-02 10:48:18 -05:00
Matthew Phillips
2a2eaadc2f
Invalidate based on modulePath (#2086)
* Invalidate based on modulePath

* Adds a changeset
2021-12-02 10:48:08 -05:00
Fred K. Schott
0b2650d713
Update ci.yml (#2077) 2021-12-01 21:58:34 -06:00
natemoo-re
638982663e [ci] yarn format 2021-12-01 21:27:46 +00:00
Tony Sullivan
920d3da135
Improving error messages for invalid client hydration directives (#2076)
* Adding check to make sure the hydration directive is valid

* remove temp debug logging

* Adding a check for media query with client:media + small refactor

* adding changeset

Co-authored-by: Tony Sullivan <tony.sullivan@hyperlab.se>
2021-12-01 15:26:17 -06:00
Matthew Phillips
bebb312b09
Upgrade compiler to 0.5.4 (#2057)
* Upgrade compiler to 0.4.0

* chore: update compiler to v0.5.1

* chore: update compiler to v0.5.3

* chore: upgrade @astrojs/compiler

* test: skip flaky test

Co-authored-by: Nate Moore <nate@skypack.dev>
2021-12-01 15:25:29 -06:00
Jonathan Neal
5bda895fcb
Render void elements as self-closing tags (#2064)
* Render void elements as self-closing tags

* changeset

* nit: only check void element names if there is no child content

* nit: only check void element names if there is no child content

* add tests
2021-12-01 15:43:22 -05:00
Drew Powers
b348ca6c9f
Allow importing of rehype plugins (#2075)
Fixes #2061
2021-12-01 12:03:04 -07:00
Nate Moore
1c40f6ed38
fix: release notes (#2074) 2021-12-01 10:40:55 -06:00
natemoo-re
49019aa2d6 [ci] yarn format 2021-12-01 16:38:57 +00:00
Ian VanSchooten
ee4ad43202
Prevent unknown keys in markdownOptions (#2073) 2021-12-01 10:37:54 -06:00
Ian VanSchooten
ec35fdd768
Add migration guide for markdownOptions (#2070) 2021-12-01 10:36:28 -06:00