Commit graph

1987 commits

Author SHA1 Message Date
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
borisv
3a45925415
German translation - docs (#1830)
* New translation of getting-started.md

Rework of the basic translation, resolving a bunch of issues and correcting misconceptions in terminologies.

* Spelling correction

* Omitting redundant paragraph. Minor corrections.

* New translation

Fixing errors and grammatical misconceptions. Rectifying terminology.

* Minor corrections in quick-start.md

* Update quick-start.md

Minor corrections

* Update quick-start.md

Small fix

* Update quick-start.md

* Update getting-started.md

* Update quick-start.md

* Update quick-start.md

* Update quick-start.md

* New translation installation.md

New translation leveraging a consistent nomenklatura, fixing spelling errors

* Update installation.md

* Update installation.md

* Update installation.md

* Update docs/src/pages/de/getting-started.md

Co-authored-by: Kim Schneider <web@schneider.kim>

* Update docs/src/pages/de/getting-started.md

Co-authored-by: Kim Schneider <web@schneider.kim>

* Update docs/src/pages/de/getting-started.md

Co-authored-by: Kim Schneider <web@schneider.kim>

* Update docs/src/pages/de/installation.md

Co-authored-by: Kim Schneider <web@schneider.kim>

* Update docs/src/pages/de/quick-start.md

Co-authored-by: Kim Schneider <web@schneider.kim>

* Update docs/src/pages/de/quick-start.md

Co-authored-by: Kim Schneider <web@schneider.kim>

* Update docs/src/pages/de/quick-start.md

Co-authored-by: Kim Schneider <web@schneider.kim>

* Update docs/src/pages/de/installation.md

Co-authored-by: Kim Schneider <web@schneider.kim>

* Update docs/src/pages/de/getting-started.md

Co-authored-by: Kim Schneider <web@schneider.kim>

* [ci] yarn format

* Create 0.21.0.md

First translation

* [ci] yarn format

* Create themes.astro

First translation

* Create 404.astro

First translation

* Update 0.21.0.md

Small changes according to the reviews.  Additionally changing 'Hydratation' to 'Anreicherung' in the code example (76), which is far more closer to the fact.

* [ci] yarn format

* Update themes.astro

Changed 'Motive' to 'Vorlagen' throughout this document

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

First translation. Last missing page from the first documentation section 'SETUP'

* [ci] yarn format

* Create astro-components.md

First translation

* [ci] yarn format

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

Corrected reference to Vue in Nuxt section

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

Replaced 'Vorlagen' with the english term 'Templates' for consistency inside nomenclature across all document pages.

* Create astro-pages.md

First translation

* [ci] yarn format

* Create project-structure.md

First translation

* Create component-hydration.md

New translation

* [ci] yarn format

* Create layouts.md

First translation

* Create routing.md

First translation

* [ci] yarn format

* Update quick-start.md

Changed expression to 'Entwickeln'

* Update installation.md

Changed expression to 'Entwickeln'

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

Changed all occurences of 'partielle Anreicherung' to 'Partial Hydration'

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

Minor punctuation fix

* Update astro-components.md

Bunch of suggestions worked in

* [ci] yarn format

* Update astro-pages.md

Added suggestions

* Update component-hydration.md

Added suggestions

* Update layouts.md

Added suggestions

* [ci] yarn format

* Update project-structure.md

Added suggestions

* Update routing.md

Added suggestions

* Update installation.md

Added suggestions

* Update 0.21.0.md

Added suggestions

* Update quick-start.md

added suggestions

* Update themes.astro

Added suggestions

* Update 0.21.0.md

Added suggestion

* Update astro-components.md

Minor punctuation fix

* [ci] yarn format

* Update astro-components.md

Replaced last of 'Anreicherung'

* Update astro-components.md

Punctuation fix, again(((

* [ci] yarn format

* Update docs/src/pages/de/core-concepts/astro-components.md

Minor punctioation fix

Co-authored-by: Kim Schneider <web@schneider.kim>

* [ci] yarn format

* Update astro-components.md

Added code example, since github hickubs when only removing ';'

* Added sidebar links (de) config.ts

Added links to the first two sections of the German translation

* Update config.ts

Replaced Getting Started with 'Erste Schritte'

* Update config.ts

Replaced Themes with 'Vorlagen'

* Update config.ts

Changed Migration to 'Umstellung'

* Fixing routing error(((

* Fixing routing errors((

* reverse and fix routing errors(((

Co-authored-by: Kim Schneider <web@schneider.kim>
Co-authored-by: borisv <borisv@users.noreply.github.com>
Co-authored-by: smplrtrn <smplrtrn@gmail.com>
2021-12-01 08:27:47 -07:00
Drew Powers
c6e4e2831e
Enforce consistent import order of CSS (#2065)
Partially fixes #2060
2021-12-01 08:23:18 -07:00
github-actions[bot]
754ac42478
[ci] release (#2059)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2021-11-30 22:33:45 -07:00
Drew Powers
96ba37ef02
Modify changeset for #2052 (#2067) 2021-11-30 22:23:04 -07:00
Drew Powers
f5efbe141c
Add changeset for #2052 (#2066) 2021-11-30 22:01:44 -07:00
Drew Powers
03cabc5171
Fix Windows dev script proxying (#2052)
* Add tests for script proxying

* Fix Windows script proxying

#2053
2021-11-30 11:54:37 -07:00
Nate Moore
606fa81b94
chore: fix changeset (#2058) 2021-11-30 11:14:31 -06:00
Joshua Jackson
247b6a027b
Rename the markdownOptions "parser" property to "render" (#2030)
The `parser` key isn't valid, `render` needs to be used instead so just updating the docs to save anyone else a headache.
2021-11-29 21:12:42 -06:00
Nate Moore
4e06767c01
fix(#2007): astro preview port retry (#2050)
* fix(#2007): astro preview port retry

* docs: update preview comment
2021-11-29 17:39:38 -06:00
Drew Powers
c491d1f423
Fix Sass WASM crashes (#2049)
Partially addresses #2032
2021-11-29 14:44:55 -07:00
Nate Moore
c6b5909b93 chore(action): fix changeset action 2021-11-29 15:36:46 -06:00
Nate Moore
6f77acc07b chore(actions): fix changeset 2021-11-29 15:23:08 -06:00
Nate Moore
4067151aec
Improve GitHub Actions (#2041)
* chore(actions): test new CI action

* chore(actions): switch action order

* chore(actions): update registry

* chore(actions): remove debug

* chore(actions): target all packages

* chore(actions): test artifacts

* chore(actions): try moving artifacts

* chore(actions): test moving

* chore(actions): test tar approach

* chore(actions): test tar approach

* chore(actions): use artifacts/packages before tar

* chore(actions): test mv -vn

* chore(actions): mkdir first

* chore(actions): how does tar work?

* chore(actions): so good at bash

* chore(actions): test matrix

* chore(actions): fix test matrix

* chore(actions): fix windows?

* chore(actions): fix windows?

* chore(actions): fix windows!

* chore(actions): fix windows!

* chore(actions): add lint

* chore(actions): add back old actions

* chore(actions): test notification action

* chore(actions): test notification action again

* chore(actions): fix extract action

* chore(actions): fix action?

* chore(actions): fix action?

* chore(actions): fix newlines

* chore(actions): test --production flag

* chore(actions): test --production flag for test

* chore(actions): add execa to production deps

* chore(actions): add cheerio to production deps

* chore(actions): add production deps for tested examples

* chore(actions): fix changelog action

* chore(actions): attempt to use --prefer-offline

* chore(actions): revert dependencies/devDependencies change

* chore(actions): update all actions

* chore(actions): add smoke test

* chore(actions): update changelog deps

* chore(actions): move notify script

* chore(actions): consolidate main scripts

* chore(actions): update changelog name

* chore(actions): update congratsbot

* chore(actions): update ci

* chore(actions): change lint/format strategy

* chore(actions): expose GITHUB_TOKEN to linter

* chore(actions): update lint

* chore(actions): enable autofix

* chore(actions): fetch-depth 0

* chore(actions): fix eslint extensions

* chore(actions): debug lint

* chore(actions): fix eslint args

* chore(actions): fix eslint?

* [ci] ESLint fix

* [ci] Prettier fix

* chore(actions): fix lint!

* chore(actions): cleanup comments

* chore(actions): fix lint

* chore(actions): lint astro only

* chore(actions): ignore pattern

* chore(actions): no_verify

* chore(actions): disable no verify

* chore(actions): debug status

* chore(actions): add concurrency

* chore(actions): add comment about concurrency

* chore(actions): make release dependent on lint

* chore(actions): move lint first

* chore(actions): run CI on PR or `main` only

* chore(actions): remove GPR publish step

* chore: add back old actions

* chore: revert package.json

* chore: improve changelog with GitHub info

* chore(actions): try pull_request_target

* debug lint

* debug lint

* debug lint

* try pull_request_target

* update pull_request_target perms

* update pull_request_target

* fix perms

* fix run?

* fix run?

* fix run? (part 3)

* fix run? (part 4)

* fix run? (part 5)

* fix run!

* fix run!!

* fix run!!!

* fix run!!!!

* fix run!!!!!

* fix run!!!!!!

* add comment about forks

Co-authored-by: GitHub Actions <actions-user@github.com>
2021-11-29 15:11:15 -06:00
Ludovico Fischer
0f5e89f694
docs: update some Snowpack references to Vite (#2035)
* docs: update some Snowpack references to Vite

Vite has replaced Snowpack in 0.21.

* Apply suggestions from code review

Co-authored-by: Drew Powers <1369770+drwpow@users.noreply.github.com>

Co-authored-by: Drew Powers <1369770+drwpow@users.noreply.github.com>
2021-11-29 13:39:38 -07:00