Commit graph

1326 commits

Author SHA1 Message Date
Caleb Jasik
61e4f2cb1f
Remove caveat about Astro.request not being passed to components. (#1276) 2021-08-31 13:58:52 -04:00
FredKSchott
6c3416ef44 [ci] yarn format 2021-08-31 15:55:47 +00:00
Lachlan Young
5b24bd1768
Add v20 documentation for bundling assets (#1262)
* Add v20 documentation for bundling assets

* 🛁 Revert bad doc

* 🛁 Address CR

*  Use astro

* 🛁 Correct Link

* Update styling.md

Co-authored-by: Fred K. Schott <fkschott@gmail.com>
2021-08-31 08:54:35 -07:00
Xinyuan Wang
327d59287f
docs: translate astro vs other docs to zh comparing-astro-vs-other-tools.md (#1199)
* translate getting-started.md into ZH (CN & TW)

* fix translate the title for getting-started.md

* add zh CN & TW config in Docs

* fix config "locale"

* fix config.ts add route for CN & TW

* fix installation.md Next Steps title 's level

* translate quick-start.md &
installation.md & examples.md
into ZH (CN )

* Add lang variable to docs frontmatter
for translations

* Update docs/src/pages/zh-TW/getting-started.md

Co-authored-by: Caleb Jasik <calebjasik@jasik.xyz>

* docs: translate astro vs other docs to zh
comparing-astro-vs-other-tools.md

* Version Packages

* [ci] yarn format

* fix: Merge conflicts

* docs: add the part of gatsby

* [ci] yarn format

Co-authored-by: Caleb Jasik <calebjasik@jasik.xyz>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: ChelesteWang <ChelesteWang@users.noreply.github.com>
2021-08-30 14:21:04 -07:00
Mikkel Tønder
11a6f884be
create-astro: Format console logs and fix message about default renderers (#1257)
* create-astro: Format console logs and fix message about default renderers

Format the console log statements so the code is easier to read

Add a check to see if the renderers array is empty and only show the message about using the templates default renderers if it isn't

* Add changeset
2021-08-30 14:20:41 -07:00
Drew Powers
5b6c52eb41
Alphabetize API doc (#1270) 2021-08-30 14:15:20 -07:00
Sarah Rainsberger
3d73d7fbf2
Include lang="xxxx" in Prism component example (#1264) 2021-08-29 11:39:39 -05:00
Mikkel Tønder
9823f16f51
Add danish translation of the getting started page (#1243)
* Add danish translation of the getting started page

* Add danish to KNOWN_LANGUAGES
2021-08-27 16:01:06 -04:00
Fred K. Schott
210fdad42e fix bad README removal 2021-08-27 11:46:41 -07:00
github-actions[bot]
8d22e4eefe
Version Packages (#1252)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2021-08-27 14:15:29 -04:00
Matthew Phillips
290f203279
Fix knownEntrypoint warning for Fix __astro_hoisted_scripts.js (#1251)
* Add new internal module to the knownEntrypoints

* Adds a changeset
2021-08-27 13:49:08 -04:00
Patrick Gotthardt
3ab3115fbe
Fixes #1249 (#1250)
Adjust the layout imports in all md files so that they can be resolved.
2021-08-27 13:19:12 -04:00
github-actions[bot]
3bb97ea328
Version Packages (#1246)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2021-08-27 10:46:14 -04:00
matthewp
cd684eb95e [ci] yarn format 2021-08-27 14:45:59 +00:00
Matthew Phillips
24dce41c4c
Add changeset for #1090 (#1248) 2021-08-27 10:44:25 -04:00
Jonathan Neal
5d2ea57841
Remove unused namespace redirection from the astro parser (#1245)
* nit: remove unused namespace checking from astro parser

* test: add tests for namespaced attributes, including one removed attribute

* add changeset
2021-08-27 10:43:58 -04:00
matthewp
5cc7947a58 [ci] yarn format 2021-08-27 14:13:41 +00:00
Matthew Phillips
788c769d78
Implementation of hoisted scripts (#1178)
* Implementation of hoisted scripts

* Use the facade id

* Adds docs on hoisted scripts

* Don't try to run rollup if there are no hoisted scripts

* Handle scripts possibly being undefined (client:only)

* Get rid of changes to the portfolio example

* Adds a changeset

* Remove a todo

* Fix lint errors

* Rename TransformResult property to hoistedScripts

* Move Hoisted Scripts docs to astro-components page

* Fixes lint errors

* Fix path join for windows
2021-08-27 10:12:27 -04:00
matthewp
dc493b39f7 [ci] yarn format 2021-08-27 13:42:16 +00:00
Matthew Phillips
4c4c797020
Update Tailwind docs for path to css (#1240)
* Update Tailwind docs for path to css

* Remove other references to public in the styling guide

* Remove unnecessary (pages)
2021-08-27 09:40:40 -04:00
matthewp
c8c9917c1d [ci] yarn format 2021-08-27 12:27:58 +00:00
Mark Teekman
110fdb1ac1
Add new Astro components package (#1242) 2021-08-27 08:26:18 -04:00
Fred K. Schott
e0c39fb217 improve introduction page of example/docs 2021-08-26 15:18:45 -07:00
Fred K. Schott
9f2b1d6071 improve introduction page of example/docs 2021-08-26 15:10:25 -07:00
Fred K. Schott
db0934bb5a improve introduction page of example/docs 2021-08-26 15:09:54 -07:00
Fred K. Schott
fdd701dd88 Merge branch 'okikio/main' (#1111) 2021-08-26 15:04:44 -07:00
Fred K. Schott
2e8db7ad23 add algolia and cleanup docs readme 2021-08-26 15:03:21 -07:00
github-actions[bot]
84c18d3030
Version Packages (#1239)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2021-08-26 15:20:38 -04:00
Okiki
b7ada11ddb WIP update examples/docs/ 2021-08-26 12:15:33 -07:00
FredKSchott
59cc62f7bd [ci] yarn format 2021-08-26 19:10:14 +00:00
Fred K. Schott
ff92be637f
add "astro preview" command (#1226)
* add "astro preview" command

* Update green-buttons-reflect.md

* Update cli-reference.md
2021-08-26 12:08:52 -07:00
Fred K. Schott
155676275b remove unpublished blog post from docs 2021-08-26 11:25:54 -07:00
Matthew Phillips
c4cfc0d5fb
Remove VSCode and Langauge Server from this monorepo (#1230)
* Remove VSCode and Langauge Server from this monorepo

* Adds back in the syntax files
2021-08-26 13:14:47 -04:00
github-actions[bot]
c83d481733
Version Packages (#1228)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2021-08-26 12:56:36 -04:00
FredKSchott
d3499fc6dd [ci] yarn format 2021-08-26 04:45:36 +00:00
Rafid Muhymin Wafi
d6798d7ae6
added bengali translation of the getting started page (#1215) 2021-08-25 21:44:26 -07:00
Mark Howard
ba4eefdd09
updated comment 'threw' to 'through' (#1235) 2021-08-25 22:24:31 -05:00
Matthew Phillips
033c480e8e
Fix path to CSS file in www site (#1233)
* Fix path to CSS file in www site

* remove console.log
2021-08-25 16:36:37 -04:00
semvis123
4d7dccfb58
NL docs typo fixes (#1232)
Fixes 2 small typos in the Dutch documentation
2021-08-25 14:57:31 -04:00
Anneke Sinnema
72d3dd00ee
Update getting-started.md (#1231) 2021-08-25 14:56:37 -04:00
FredKSchott
3c8698fb60 [ci] yarn format 2021-08-25 18:52:22 +00:00
Fred K. Schott
affcd04f0f
stop building, bundling, and transforming public/ files (#1210)
* stop bundling public/ files

* update www and examples
2021-08-25 11:51:04 -07:00
matthewp
c819b3dade [ci] yarn format 2021-08-25 16:12:44 +00:00
حمد بنقالي
7ea0cb3368
Arabic getting-started translation (#1166)
Co-authored-by: = <=>
2021-08-25 12:11:29 -04:00
E. Berke KARAGÖZ
f097c88d2e
Fix typo Mardown on line 219 (#1229) 2021-08-25 12:09:56 -04:00
Fred K. Schott
96ecb3da5f
docs: fix header rtl logo view (#1224) 2021-08-25 08:18:04 -04:00
Robin Métral
397d8f3d84
Upgrade unified deps and improve unified plugins types (#1200)
* Upgrade @astrojs/markdown-support deps and update types

* Add changeset

* Update changeset

* Switch astro-markdown-plugins example to use rehype-autolink-headings

Usage of remark-autolink-headings is discouraged in favor of the rehype counterpart: https://github.com/remarkjs/remark-autolink-headings\#remark-autolink-headings

* Add stricter types for unified plugins

This includes a few suggestions from a code review:
- use vfile.toString instead of vfile.value.toString
- refactor plugins to follow unified best practices instead of returning functions that return a plugin
- use any instead of any[] for plugin options types

* Narrow down types to more specific hast or mdast typings
2021-08-25 08:17:45 -04:00
Marcus Otterström
3bfd8c125e
Fix CSS in docs example (#1221) 2021-08-24 16:41:42 -07:00
github-actions[bot]
a4a7685be1
Version Packages (#1217)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2021-08-24 16:11:51 -04:00
matthewp
749617b2fb [ci] yarn format 2021-08-24 19:51:59 +00:00