astro/docs
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
..
public cleanup example favicons 2021-08-16 14:34:08 -07:00
reference Fix code examples that would fail if copy-pasted (#1050) 2021-08-07 23:38:38 -07:00
src Add support for client:only hydrator (#935) 2021-08-17 13:44:56 -04:00
.prettierignore merge in docs site (#705) 2021-07-15 14:13:35 -04:00
.prettierrc [ci] yarn format 2021-07-20 04:07:49 +00:00
astro.config.mjs [ci] yarn format 2021-07-31 05:41:22 +00:00
CHANGELOG.md Version Packages (#1064) 2021-08-11 15:01:00 -07:00
package.json Version Packages (next) (#1087) 2021-08-11 15:50:14 -07:00
README.md merge in docs site (#705) 2021-07-15 14:13:35 -04:00
snowpack.config.mjs [ci] yarn format 2021-07-20 04:07:49 +00:00
vercel.json Docs site cleanup (#948) 2021-07-30 22:39:15 -07:00

Astro Docs Astro logo

Contributing

Pull Requests

Every pull request needs to be reviewed by another contributor to the documentation to help with the overall quality of the documentation.

Running this project

  • Clone/Fork the project
  • This project uses yarn to manage dependencies. Make sure that you have yarn v1 installed.
  • Run yarn install to install latest dependencies.
  • Run yarn start to start the dev server.
  • Run yarn build to build the final site for production.

The environment variable SNOWPACK_PUBLIC_GITHUB_TOKEN must be set to a personal access token with public_repo permissions to prevent rate-limiting.