Commit graph

309 commits

Author SHA1 Message Date
headapplesgithub
68294f777d
Update comparing-astro-vs-other-tools.md (#1169)
Removed duplicate paragraph in the section about Eleventy vs Astro performance.

Co-authored-by: Fred K. Schott <fkschott@gmail.com>
2021-08-20 08:53:12 -07:00
mundry
cdbe2e486d
Fix typos in the docs. (#1165)
Co-authored-by: mundry <mundry@users.noreply.github.com>
2021-08-19 17:56:58 -06:00
Jonathan Neal
e66872125d
add dev script, switch documentation from advising start to dev script (#1141) 2021-08-18 22:07:08 -07:00
Fred K. Schott
a79b6db152
Add Vitepress to "Astro vs. X" comparison page 2021-08-18 18:13:20 -07:00
drwpow
737c10101a [ci] yarn format 2021-08-18 23:46:47 +00:00
Marcus Otterström
b5e5dcfed0
[DOCS] Add more information about content.astro (markdown) (#1148)
* Correct heading levels

* Add more info about content.astro

* Remove accidental heading
2021-08-18 17:45:35 -06:00
kelvinsjk
52cf927564
docs: fix mobile sidebar toggle (#1158) 2021-08-18 15:03:26 -07:00
Fred K. Schott
72853afffa
Update api-reference.md 2021-08-18 09:33:18 -07:00
github-actions[bot]
986bed8ca4
Version Packages (#1150)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2021-08-18 09:24:09 -07:00
Magnus Markling
d18402de3a
Fix typo (#1151) 2021-08-18 09:04:11 -07:00
Fred K. Schott
f7b6e150d4
Astro v0.19 release blog post (#1135)
* wip

* Add support for `client:only` hydrator (#935)

* Adding support for client:only hydration

* Adding documentation for client:only

* Adding changeset

* Updating the test to use a browser-only API

* Adding a browser-specific import script, this reproduces the issue where client:only imports must be removed

* typo fix

* removing mispelled test component

* WIP: delaying inclusion of component imports until the hydration method is known

* WIP: tweaking the test to use window instead of document

* When only one renderer is included, use that for client:only hydration

* temporary test script snuck into the last commit

* WIP: adding check for a client:only renderer hint

* refactor: Remove client:only components instead of delaying all component import statements

* Updating the changeset and docs for the renderer hint

* refactor: pull client:only render matching out to it's own function

* Updating renderer hinting to match full name, with shorthand for internal renderers

Co-authored-by: Tony Sullivan <tony.f.sullivan@gmail.com>

* [ci] yarn format

* Update CONTRIBUTING.md (#1131)

* [ci] yarn format

* docs: fix select language in Safari (#1127) (#1128)

* docs: fix select language in Safari (#1127)

* docs: fix select language top position

* docs: fix select language position

* Make congratsbot not run in forks (#1145)

* add back dark-mode aware favicons

* make example favicons prefer non-dark mode

* Version Packages (next) (#1129)

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

* code review comments

Co-authored-by: Tony Sullivan <tony.f.sullivan@outlook.com>
Co-authored-by: Tony Sullivan <tony.f.sullivan@gmail.com>
Co-authored-by: matthewp <matthewp@users.noreply.github.com>
Co-authored-by: FredKSchott <FredKSchott@users.noreply.github.com>
Co-authored-by: Oleg <64708593+olejech@users.noreply.github.com>
Co-authored-by: Marcus Otterström <35617441+MarcusOtter@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2021-08-17 23:58:59 -07:00
github-actions[bot]
66a6c5b06f
Version Packages (next) (#1129)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2021-08-17 22:34:47 -07:00
Fred K. Schott
b3da04bb50 add back dark-mode aware favicons 2021-08-17 22:24:46 -07:00
Oleg
537e348b3e
docs: fix select language in Safari (#1127) (#1128)
* docs: fix select language in Safari (#1127)

* docs: fix select language top position

* docs: fix select language position
2021-08-17 22:03:13 -07:00
Tony Sullivan
1971ab3c60
Add support for client:only hydrator (#935)
* Adding support for client:only hydration

* Adding documentation for client:only

* Adding changeset

* Updating the test to use a browser-only API

* Adding a browser-specific import script, this reproduces the issue where client:only imports must be removed

* typo fix

* removing mispelled test component

* WIP: delaying inclusion of component imports until the hydration method is known

* WIP: tweaking the test to use window instead of document

* When only one renderer is included, use that for client:only hydration

* temporary test script snuck into the last commit

* WIP: adding check for a client:only renderer hint

* refactor: Remove client:only components instead of delaying all component import statements

* Updating the changeset and docs for the renderer hint

* refactor: pull client:only render matching out to it's own function

* Updating renderer hinting to match full name, with shorthand for internal renderers

Co-authored-by: Tony Sullivan <tony.f.sullivan@gmail.com>
2021-08-17 13:44:56 -04:00
Gautier Ben Aïm
64bbd89f42
docs: added 2 pages in French (#1114) 2021-08-16 22:01:02 -07:00
Fred K. Schott
5e0e276609 cleanup example favicons 2021-08-16 14:34:08 -07:00
matthewp
24a40bee63 [ci] yarn format 2021-08-16 20:44:46 +00:00
Matthew Phillips
78b5bde14c
Astro.resolve (#1085)
* add: Astro.resolve

* Add docs and tests for Astro.resolve

* Add warnings when using string literals

* Prevent windows errors

* Adds a changeset

* Use the astro logger to log the warning

* Use the .js extension

* Dont warn for data urls

* Rename nonRelative and better match

Co-authored-by: Jonathan Neal <jonathantneal@hotmail.com>
2021-08-16 16:43:06 -04:00
Marcus Otterström
47025a7c7d
Bold props interface words (#1123)
* Bold props interface words

* Turn it into blockquote
2021-08-16 13:19:18 -07:00
Caleb Jasik
9cc3c5236d
Remove font-weight:400; from anchor links - they should be the same weight as the text without a link. (#1116)
If we wanted to, we *could* set the font-weight as `heavier` maybe? Is that an option? So that it just chooses an increase in font-weight for differentiation from text outside of a link.

This was mainly a problem with headings that have links, the difference in font-weight stuck out like a sore thumb to me.
2021-08-16 09:18:36 -07:00
FredKSchott
71e396c3cc [ci] yarn format 2021-08-16 16:12:07 +00:00
Fred K. Schott
6322c99623
update astro comparisons (#1109) 2021-08-16 09:10:46 -07:00
Fred K. Schott
22da20d996 docs: small ul,ol margin change 2021-08-16 08:54:47 -07:00
Caleb Jasik
36b7a2724b
Revert short line-height for <ul>'s (#1121) 2021-08-16 08:45:22 -07:00
Fred K. Schott
ada4058a3e docs: rename sidebar "Components" to "Component Syntax" 2021-08-13 11:28:11 -07:00
Nate Moore
b3a6decc70 docs: trigger build 2021-08-13 11:49:41 -05:00
FredKSchott
aa20be9138 [ci] yarn format 2021-08-12 21:52:05 +00:00
Fred K. Schott
cfc72ae17d
minor typography changes (#1083) 2021-08-12 14:50:50 -07:00
Sia
4dab932f94
Remove sentence about dev server docs (#1095) 2021-08-12 13:25:09 -05:00
mundry
cbae535cad
Fix typos in the docs/ content (#1093)
Co-authored-by: mundry <mundry@users.noreply.github.com>
2021-08-12 13:24:06 -05:00
Naeem N
fbbb589d92
Nuxt.js official page url corrected (#1096) 2021-08-12 13:20:31 -05:00
github-actions[bot]
10d6fa4bca
Version Packages (next) (#1087)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2021-08-11 15:50:14 -07:00
FredKSchott
b63960f514 [ci] yarn format 2021-08-11 22:05:17 +00:00
Fred K. Schott
0f0cc2b9d8
Add file-based routing /w dynamic paths (#1010)
* wip: add file-based routing

* add pagination tests and nested pagination support
2021-08-11 15:04:09 -07:00
github-actions[bot]
b54c01bf66
Version Packages (#1064)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2021-08-11 15:01:00 -07:00
Fred K. Schott
1350d57997
Do not observe visible hydrate components more than once (#1015)
* add support for truely unique astro root uids

* update test to test uniqueness
2021-08-10 09:51:19 -07:00
Kus Cámara
adc767c515
change some Spanish translations (#1063) 2021-08-08 22:09:19 -07:00
FredKSchott
11c75d3f19 [ci] yarn format 2021-08-08 06:39:57 +00:00
Jonathan Neal
71882300b0
Fix code examples that would fail if copy-pasted (#1050) 2021-08-07 23:38:38 -07:00
FredKSchott
e530094330 [ci] yarn format 2021-08-06 22:23:50 +00:00
Fred K. Schott
73020fab0c another pass on alias docs 2021-08-06 15:22:35 -07:00
FredKSchott
dfafbe54d7 [ci] yarn format 2021-08-06 20:47:15 +00:00
V. Tinev
2da7078eff
[Docs] Added an "Aliases" page under Guides. [En] (#1042)
* Styled the dark version for the search bar. Changed some stlyes for both themes.

* [Docs] Added an "Aliases" page under Guides. [EN]

* [Docs] Added "Aliases" page under Guides. Removed styles from another PR.

* Revert theme.css.

* Revert Search.css.

* Edited the text.

Co-authored-by: Peter Singh <drgaud@hotmail.com>

* Text edits after review.

* Apply suggestions from documentation review.

Co-authored-by: Fred K. Schott <fkschott@gmail.com>

Co-authored-by: V. Tinev <vtinev@2create.studio>
Co-authored-by: Peter Singh <drgaud@hotmail.com>
Co-authored-by: Fred K. Schott <fkschott@gmail.com>
2021-08-06 13:46:09 -07:00
FredKSchott
c6b486e4bd [ci] yarn format 2021-08-06 18:55:50 +00:00
V. Tinev
57328fc056
Styled the dark version of the search bar. (#1041)
* Styled the dark version for the search bar. Changed some stlyes for both themes.

* Adjusted the SearchFooter glow.

Co-authored-by: Peter Singh <drgaud@hotmail.com>

* Removed search footer glow.

* Added inset shadow for the search modal.

Co-authored-by: V. Tinev <vtinev@2create.studio>
Co-authored-by: Peter Singh <drgaud@hotmail.com>
2021-08-06 11:54:42 -07:00
Marcus Otterström
50fed4902b
Fix contrast issue in lang picker (#1044) 2021-08-06 11:54:09 -07:00
FredKSchott
0ef3d100f5 [ci] yarn format 2021-08-06 18:21:49 +00:00
Philippe L'ATTENTION
b71ccc2b9d
[ADD][i18n][Docs] French translation of getting started page (#1040)
* [ADD][i18n][Docs] French translation of getting started page

- Add Sidebar translated menus
- Add lang code fr to language selection
- Add french translated getting-started page

* [ADD][i18n][Docs] Adding 'fr' key to known langs for automatic redirect
2021-08-06 11:20:36 -07:00
FredKSchott
a3dd4d6bc8 [ci] yarn format 2021-08-06 05:52:13 +00:00
V. Tinev
8330071509
Added Bulgarian translation for the Getting Started page. (#1032)
* Added translation for the Getting Started page.

* Removed remaining English text from the translated version.

* Added Bulgarian as a known langugage (index.astro).

* Added Bulgarian as a known langugage (index.astro).

Co-authored-by: V. Tinev <vtiev@2create.studio>
2021-08-05 22:51:07 -07:00
FredKSchott
dbf18b1130 [ci] yarn format 2021-08-06 05:35:05 +00:00
YM
036af0a790
Docs: Add zh-tw translation for Setup (#980)
* Add zh-tw translation of quick start in doc

* Add translation into zh-tw for Install in docs

* Update getting started for zh-tw

* Update language label for Traditional Chinese

* Update toc titles for zh-hant-TW

* Update lang attribute for zh-TW

* Add zh-tw translation of example in doc

* Update sidebar items for zh-TW in Docs
2021-08-05 22:33:55 -07:00
Fred K. Schott
eafbb45f04
update automatic docs redirect (#1014) 2021-08-04 14:22:11 -07:00
FredKSchott
6a4a9fe3a1 [ci] yarn format 2021-08-04 19:46:51 +00:00
Laura Caroline
c2723567d9
Add Portuguese Translation of Getting Started page (#981)
* Add Portuguese Translation of Getting Started page

Based on Brazilian Portuguese

* Fix/add improvement sugestions.

* Add missing preposition

* Update file to represent also the region

The Only changes to the existing files were the addition of the lang attribute

* Add language selection for Brazilian Portuguese
2021-08-04 12:45:22 -07:00
Abdullah Mzaien
81c885f54f
Adding Dir attribute to allow rtl languages to work (#982)
* Adding Dir attribute to allow rtl languges to work

* Update docs/src/layouts/MainLayout.astro

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

Co-authored-by: Fred K. Schott <fkschott@gmail.com>
Co-authored-by: Caleb Jasik <calebjasik@jasik.xyz>
2021-08-04 12:33:55 -07:00
Jesus Gil
a1e5d04118
Add spanish getting-started translation (#988)
* Add spanish getting-started translation

Translated getting-started page to spanish. Added spanish links to
config.ts, and spanish option to header language dropdown.

* add language code to frontmatter

Co-authored-by: Fred K. Schott <fkschott@gmail.com>
2021-08-04 11:06:19 -07:00
Joshua Stübner
935fe60070
Docs/add german translation (#1005)
* feat: add German getting started page

* feat: add missing links to German page to config and LanguageSelect

* feat: remove two dashes because that's considered bad practice

* Update LanguageSelect.tsx

Co-authored-by: Joshua <joshua.stuebner@bloxxter.com>
Co-authored-by: Fred K. Schott <fkschott@gmail.com>
2021-08-04 11:04:33 -07:00
FredKSchott
08b442dcf5 [ci] yarn format 2021-08-04 16:06:21 +00:00
Xinyuan Wang
2bd178d4f9
docs(translate):translate getting-started.md into ZH (CN & TW) (#979)
* 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>

Co-authored-by: Caleb Jasik <calebjasik@jasik.xyz>
2021-08-04 09:05:00 -07:00
Jonathan Neal
c7aca2c9b2
Reduce meta viewport tag (#1006) 2021-08-04 08:30:58 -04:00
Bryce Wray
058388c874
Update deploy.md (typo in newly added section) (#998) 2021-08-03 18:31:20 -05:00
matthewp
fc739c24d7 [ci] yarn format 2021-08-03 14:50:44 +00:00
Bryce Wray
07244a3782
Update deploy.md for Cloudflare Pages (#992)
* Update deploy.md for Cloudflare Pages

- Adding description of how to set up an Astro site in Cloudflare Pages.
- Minor grammatical fix in the “Credits” area. :-) [Sorry, I have OCD about “off of.”]

* Remove sentence fragment

Removing sentence fragment left behind when I was researching the Environment Variable part. :-/

* Update deploy.md (remove misplaced text)

Same as before, but removing potentially misleading reference to Node version (since we explain in "Environment variables (advanced)" part how to resolve).
2021-08-03 10:48:57 -04:00
Joshua Stübner
52ca7fafb0
Improve Collection docs for RSS (#990)
- Added missing but required link attribute
- Added note on how to create a full text feed
2021-08-03 08:18:25 -04:00
Caleb Jasik
c2d8cea41f
Add lang variable to docs frontmatter for translations (#984) 2021-08-02 13:45:28 -04:00
Bryce Wray
f935c5a9fa
Update styling.md re link-handling for .scss files (#977)
Adding a note to make clear that users of .scss files should still link to the final compiled .css files, as per https://discord.com/channels/830184174198718474/853350631389265940/871151798075949066.
2021-08-01 23:52:58 -07:00
Fred K. Schott
b3270728c2 add support for 4-letter language codes (ex: zh-TW) 2021-08-01 23:49:24 -07:00
FredKSchott
877f9d2702 [ci] yarn format 2021-08-02 06:40:02 +00:00
Fred K. Schott
94f89a3c88
full translation (#967) 2021-08-01 23:38:50 -07:00
Fred K. Schott
ca3c16a611 fix bad merge from outdated layout 2021-07-31 08:36:01 -07:00
Fred K. Schott
289450fce6 small cleanup to installation docs 2021-07-30 23:15:24 -07:00
Fred K. Schott
ee95351ee8 add finnish to language selector 2021-07-30 23:11:24 -07:00
Fred K. Schott
bc7dae9faf move finnish translations to fi 2021-07-30 23:05:24 -07:00
Vesa Piittinen
d55fe81d10
WIP: Documentation in Finnish (#837)
* Initial Finnish getting-started.md

* Initial Finnish `quick-start.md`

* Missing word

* Use a different test path name

* Initial Finnish `installation.md`

* Sync with `installation.md`

* WIP Finnish island-architecture.md

* Fix some sillyness

* Delete island-architecture.md

Co-authored-by: Fred K. Schott <fkschott@gmail.com>
2021-07-30 23:04:42 -07:00
Diogo Felix
5e9a47ffbc
📘 DOC: Add PostCSS configuration on Astro (#947) 2021-07-30 22:45:56 -07:00
FredKSchott
d7b0080da0 [ci] yarn format 2021-07-31 05:41:22 +00:00
allanvobraun
81d6960a16
Add svelte file extension to tailwind puge configuration. (#964)
Self explanatory.
2021-07-30 22:39:39 -07:00
Fred K. Schott
7c74496149
Docs site cleanup (#948)
* add language selector

* docs site cleanup

* review feedback

* code review comments
2021-07-30 22:39:15 -07:00
Marcus Otterström
d0b8485ddf
Ascii quotes (#928) 2021-07-30 17:34:07 -05:00
FredKSchott
01387674ba [ci] yarn format 2021-07-30 07:54:54 +00:00
Marcus Otterström
6d9ef9c0e9
Fix typos and clarify docs (#880)
* Add more missing words

* Add missing dot

* Add another missing dot

* Clarify what optimized css means (discussed on Discord)

* Remove oxford comma

Co-authored-by: Fred K. Schott <fkschott@gmail.com>
2021-07-30 00:53:24 -07:00
Fred K. Schott
e9d52bd1cc move translated nl docs 2021-07-29 22:03:56 -07:00
Chris Bongers
ea6af0392c
Started on the getting started dutch docs 🇳🇱 (#855) 2021-07-29 21:33:50 -07:00
Fred K. Schott
8fa228630b small docs font fix 2021-07-29 16:45:48 -07:00
matthewp
59cf6dcca8 [ci] yarn format 2021-07-29 20:33:19 +00:00
Mulai
09fefead88
Fix Github Action setup (#934) 2021-07-29 16:31:47 -04:00
Fred K. Schott
6eeafac715
Add algolia-powered search bar to docs site (#917)
* add search bar

* replace cmd+k with slash hotkey

* update api key

* add localhost support for search
2021-07-29 13:31:41 -07:00
Caleb Jasik
908139642a
📘 DOC: Improve SiteSidebar styles on mobile (#939) 2021-07-29 16:31:18 -04:00
Caleb Jasik
72898e3cd6
Add yarn lint:a11y to the docs project (#804) 2021-07-28 17:00:00 -04:00
matthewp
0849152d36 [ci] yarn format 2021-07-28 18:38:31 +00:00
github-actions[bot]
b4f7888be3
Version Packages (#912)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2021-07-28 14:37:29 -04:00
Maksim Markelov
70f0a09d30
Add remark-slug (#862)
* Add remark-slug

* Add remark-slug in documentation

* Add changeset
2021-07-28 12:33:19 -04:00
Nikola Hristov
5e3e828a44
Fixes typo (#902) 2021-07-28 10:43:09 -05:00
Fred K. Schott
7dfe22ecce remove warning from collections docs 2021-07-27 18:05:48 -07:00
Balázs Orbán
b7630b93e6
docs: add missing matchMedia reference (#895)
* docs: add missing `matchMedia` reference

* Update docs/src/pages/core-concepts/component-hydration.md

Co-authored-by: Caleb Jasik <calebjasik@jasik.xyz>
2021-07-27 17:22:27 -05:00
matthewp
365f3bd230 [ci] yarn format 2021-07-27 14:36:32 +00:00
Peter Singh
e3d73149f7
DOC: revisions made to the setup section (#864)
* this is the last time im changing these files....

* This is Thats these two files finished off...

* Updated the section setup, a bit

* trying to resolve the conflict

Co-authored-by: Matthew Phillips <matthew@matthewphillips.info>
2021-07-27 10:35:23 -04:00
Caleb Jasik
0c46a1dab2
Docs/show docsidebar on mobile (#878) 2021-07-27 01:31:07 -05:00