Commit graph

1360 commits

Author SHA1 Message Date
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
Mihkel Eidast
44fb8ebcc4
Fix linter errors and warnings (#1218)
* fix lint issues, enable lint in ci

* add changeset
2021-08-24 15:50:24 -04:00
Matthew Phillips
9482fadeb8
Fix resolution of Astro.resolve in nested components (#1213)
* Fix resolution of Astro.resolve in nested components

Components were previously tested, however nested folders were not.

* Adds a changeset
2021-08-24 13:38:07 -04:00
Caleb Jasik
d0e7fcfc06
Lazy load the youtube embed to boost homepage loading times (#1205) 2021-08-24 01:18:05 -05:00
FredKSchott
3835856f2b [ci] yarn format 2021-08-24 05:32:44 +00:00
Joohoon Cha
b3a1c0cdcc
[i18n][Docs] Add Korean Translation of Getting Started page (#1189)
* translate getting-started.md into KR

* add kr to KNOWN_LANGUAGES

* add kr config to sidebar

* add kr option to the language selector
2021-08-23 22:31:24 -07:00
Fred K. Schott
5be1c7694b remove ignored lint rule 2021-08-23 22:18:27 -07:00
Fred K. Schott
3ab89e04da update deps 2021-08-23 14:47:18 -07:00
github-actions[bot]
582220c8a1
Version Packages (#1206)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2021-08-23 14:18:18 -07:00
FredKSchott
884a2ea76a [ci] yarn format 2021-08-23 21:17:45 +00:00
Fred K. Schott
2538325a46 fix docs on config api 2021-08-23 14:16:29 -07:00
FredKSchott
69272dc8d1 [ci] yarn format 2021-08-23 21:08:16 +00:00
Fred K. Schott
f9cd031033
Add zod schema validation (#1198)
* add zod schema validation

* update pageUrlFormat config name

* add trailing slash support to config
2021-08-23 14:07:03 -07:00
matthewp
010c71e16a [ci] yarn format 2021-08-23 20:44:36 +00:00
Caleb Jasik
efb41f22c3
Add Astro <Debug/> component (#675)
* Initial MVP Debug component

* Document the prettifying of the input

* Just make `<Debug/>` a wrapper around `<Prism/>` lol

* feat: add details/summary debug component

* chore: remove Props (unused)

* fix: prefer `div` to semantic elements

* chore: format

* fix: prop-drill `class` into components

* fix: ensure `astro/components` are evaluated lazily

* feat(debug): export debug component from `astro/debug`

* fix: minimal example local snowpack config

* docs: add debugging docs

* chore: add changeset

* docs: update debug docs

Co-authored-by: Nate Moore <nate@skypack.dev>
2021-08-23 16:43:22 -04:00
Caleb Jasik
2fd004dcd9
Add a titleClosure to the HeadSEO.astro component (#1140)
* Testing out adding a `titleClosure` to the `HeadSEO.astro` component

I think the api needs a bit of improvement, but the basic idea is you can pass this in to a published astro component for specifying how you want it to format your title!

* Refactor to make it pretty

* Rename the `titleClosure()` prop to `formatTitle()` to be more clear

* Use title, with site title as the fallback (#1143)

See og:title guidance (https://developers.facebook.com/docs/sharing/webmasters/)

Co-authored-by: Jonathan Neal <jonathantneal@hotmail.com>
2021-08-23 15:08:20 -05:00
github-actions[bot]
3963cef963
Version Packages (#1181)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2021-08-23 15:59:55 -04:00