summaryrefslogtreecommitdiff
path: root/examples (follow)
AgeCommit message (Collapse)AuthorFilesLines
2022-07-30[ci] release (#4086)astro@1.0.0-rc.3@astrojs/mdx@0.4.0@astrojs/markdown-component@0.2.1Gravatar Fred K. Bot 28-29/+29
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-07-28[ci] release (#4081)create-astro@0.14.3@astrojs/mdx@0.3.1Gravatar Fred K. Bot 1-1/+1
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-07-28[ci] release (#4056)astro@1.0.0-rc.2@astrojs/vercel@0.4.0@astrojs/svelte@0.5.1@astrojs/node@0.2.1@astrojs/image@0.3.0@astrojs/cloudflare@0.4.0Gravatar Fred K. Bot 28-32/+32
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-07-26[ci] release (#3972)create-astro@0.14.2astro@1.0.0-rc.1@astrojs/vue@0.5.0@astrojs/vercel@0.3.0@astrojs/tailwind@0.2.5@astrojs/svelte@0.5.0@astrojs/sitemap@0.3.0@astrojs/prefetch@0.0.6@astrojs/partytown@0.1.9@astrojs/node@0.2.0@astrojs/netlify@0.5.0@astrojs/mdx@0.3.0@astrojs/markdown-remark@0.13.0@astrojs/markdown-component@0.2.0@astrojs/lit@0.3.2@astrojs/image@0.2.0@astrojs/deno@0.2.0@astrojs/cloudflare@0.3.0Gravatar Fred K. Bot 28-44/+44
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-07-25Add the `output` option (#4015)Gravatar Matthew Phillips 1-0/+1
* Start of work on astroConfig.mode === 'server' * Add tests and more * adapter -> deploy in some places * Add fallback for `adapter` config * Update more tests * Update image tests * Fix clientAddress test * Updates based on PR review * Add a changeset * Update integrations tests + readme * Oops * Remove old option * Rename `mode` to `output` * Update Node adapter test * Update test * fred pass * fred pass * fred pass * fix test Co-authored-by: Fred K. Schott <fkschott@gmail.com>
2022-07-24Update `astro` version to `1.0.0-rc.0` (#4030)Gravatar Nate Moore 28-28/+28
* chore: update `astro` to `1.0.0-rc.0` * chore: update `astro` version in examples Co-authored-by: Nate Moore <nate@astro.build>
2022-07-23[ci] formatGravatar natemoo-re 1-1/+3
2022-07-23Rename Markdown util `getHeaders()` to `getHeadings()` (#4031)Gravatar Nate Moore 5-24/+24
* Renamed getHeaders() to getHeadings(), according to RFC #208. * chore: update changeset * fix: expose MarkdownHeading type from `astro` Co-authored-by: Félix Sanz <me@felixsanz.com> Co-authored-by: Nate Moore <nate@astro.build>
2022-07-21[MDX] Add Prism and Shiki support (#4002)Gravatar Ben Holmes 1-0/+12
* deps: add rehype-prism, shiki, rehype-pretty-code * wip: apply rehype plugins depending on config * wip: cherry-pick jsx-runtime fix? * deps: rehype-pretty-code -> shiki-twoslash, add rehype-raw * wip: add jsx-runtime fix * feat: get shiki working! * deps: add @astrojs/prism, prismjs, unist-util-visit * feat: add prism support * example: add small syntax highlight demo to with-mdx * deps: remove rehype-prism * chore: remove unused async * chore: add .test.js to all mdx tests * test: shiki, shikiConfig, prism * fix: remove "is:raw" from prism output * docs: add syntax highlighting section * chore: add changeset * nit: "Shiki config" -> Shiki config Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca> * Revert "wip: add jsx-runtime fix" This reverts commit 07f4528f449281afb7bbc154b09292244795a183. * docs: link to integration README from example Co-authored-by: Nate Moore <nate@astro.build> Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2022-07-21[ci] formatGravatar matthewp 3-3/+3
2022-07-21Replace/Rename Astro.canonicalURL with new Astro.url helper (#3959)Gravatar Fred K. Schott 11-11/+18
* add Astro.url * Add examples of how to create the canonicalURL Co-authored-by: Matthew Phillips <matthew@skypack.dev>
2022-07-20Move the Markdown component to its own package (#3986)Gravatar Matthew Phillips 21-403/+1
* Move the Markdown component to its own package * Update the examples * Updated lockfile * Use is:raw * Add a main field * Update the formatting of the readme * Rename to @astrojs/markdown-component
2022-07-19[ci] formatGravatar FredKSchott 1-1/+1
2022-07-18Migrate to Vite 3 ⚡️ (#3570)Gravatar Matthew Phillips 1-1/+7
* Vite 3 test * deps: bump to Vite beta.1 * refactor: move to use optimizeDeps.force option * refactor: stub out new updateModuleInfo params * nit: remove comment on deprecated Vite feature * nit: remove comment on deprecated vite feature * hail mary: destroy all ssr external / noexternal! * fix: use new middlewareMode config settings * fix: resolve npm package paths for rollup input * wip: revert to unresolved. Issue reported! * sad refactor: use legacy devDepsScanner for component HMR * fix: add astro/components to noExternal for Code component * refactor: use ALWAYS_NOEXTERNAL array * refactor: add package.json to all test runners for noExternal error * deps: bump to latest vite 3 beta * wip: add package.json to smoke * fix: remove accidental "force true" on create-vite * refactor: write smoke package.json programmatically * refactor: add fontsource to noExternal * fix: only add to ssr.noExternal if present in project * wip: what if we just... didn't have a memory test * deps: bump to latest vite beta * Revert "wip: what if we just... didn't have a memory test" This reverts commit 173729dbdc685e52881fc3333487b8f744add55f. * fix: add type check for plugin.name * feat: remove legacy.devDepsScanner. Vite 3 strat is now Vite 2.x strat! * fix: add ssr.noExternal to components ex * wip: ignore with-mdx starter * fix: add serviceEntryPoint to ssr.noExternal * temp: reset NODE_ENV on prod builds * fix: missing async tag * VITE 3 IS STABLE BABY * deps: bump svelte to vite 3 * deps: bump vue to vite 3 * fix: resolve plugins for proper sorting * sad fix: regex "export default" out of CSS ssr * chore: add TODO to understand sad fix * Revert "fix: resolve plugins for proper sorting" This reverts commit e67c194d3a8e11070487ed325947e7c59e8d69cd. * Revert "sad fix: regex "export default" out of CSS ssr" This reverts commit 721d40b62b61440dc9e488787901c915579659db. * fix: sort plugins WITHOUT resolveConfig * Revert "wip: ignore with-mdx starter" This reverts commit 7d4f7338e6a8427934668096dba35e2a06ab961f. * chore: revert memory test changes * chore: add nanostores/preact ot noexternal * chore: changeset * chore: changeset * deps: use Vite ^3.0.0 * fix: add back third party astro pkg scanner Co-authored-by: bholmesdev <hey@bholmes.dev>
2022-07-18[ci] release (#3939)create-astro@0.14.1astro@1.0.0-beta.73@astrojs/vue@0.4.1@astrojs/telemetry@0.4.1@astrojs/svelte@0.4.1@astrojs/solid-js@0.4.1@astrojs/rss@0.2.2@astrojs/react@0.4.2@astrojs/prism@0.6.1@astrojs/preact@0.5.2@astrojs/mdx@0.2.1@astrojs/markdown-remark@0.12.0@astrojs/image@0.1.3v1-betaGravatar Fred K. Bot 29-58/+58
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-07-15Handle metadata for MDX files during build (#3915)Gravatar Nate Moore 1-1/+1
* fix: metadata handling for MDX files * chore: add changeset * chore: update mdx example * fix: protect against infinite loops in jsx-runtime, properly hook console.error * chore: remove unused import * feat(mdx): support `client:only` * fix: prefer Symbol.for * fix(jsx): handle vnode check properly * chore: appease ts Co-authored-by: Nate Moore <nate@astro.build>
2022-07-14[ci] release (#3925)astro@1.0.0-beta.72@astrojs/react@0.4.1@astrojs/preact@0.5.1Gravatar Fred K. Bot 29-44/+44
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-07-14[ci] release (#3921)astro@1.0.0-beta.71@astrojs/markdown-remark@0.11.7Gravatar Fred K. Bot 29-32/+32
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-07-13[ci] release (#3903)create-astro@0.14.0astro@1.0.0-beta.70@astrojs/vue@0.4.0@astrojs/telemetry@0.4.0@astrojs/svelte@0.4.0@astrojs/solid-js@0.4.0@astrojs/rss@0.2.1@astrojs/react@0.4.0@astrojs/prism@0.6.0@astrojs/preact@0.5.0@astrojs/mdx@0.2.0@astrojs/markdown-remark@0.11.6Gravatar Fred K. Bot 29-58/+58
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-07-12[ci] formatastro@1.0.0-beta.69@astrojs/vue@0.3.1@astrojs/vercel@0.2.6@astrojs/telemetry@0.3.1@astrojs/tailwind@0.2.4@astrojs/svelte@0.3.1@astrojs/solid-js@0.3.1@astrojs/sitemap@0.2.6@astrojs/react@0.3.1@astrojs/prefetch@0.0.5@astrojs/preact@0.4.1@astrojs/partytown@0.1.8@astrojs/node@0.1.6@astrojs/netlify@0.4.10@astrojs/mdx@0.1.1@astrojs/markdown-remark@0.11.5@astrojs/image@0.1.2@astrojs/deno@0.1.10@astrojs/cloudflare@0.2.4Gravatar matthewp 3-9/+9
2022-07-12[ci] release (#3900)Gravatar Fred K. Bot 29-29/+29
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-07-12Example blog rework (#3896)Gravatar Ben Holmes 19-440/+316
* refactor: restructure components, kill dead code * nit: tweak base styles * nit: remove unneeded code comments * refactor: replace unused permalink with canonicalURL * refactor: add missing prop types * feat: make markdown examples more interesting * chore: consistent semis and quotes * chore: astro check failures * fix: bad url prop * fix: bad frontmatter quote * chore: more dead styles * chore: add header gap * refactor: use tsx for likebutton * fix: restore post sorting * chore: remove unused flex-row util * fix: small md formatting on README * chore: run through astro-plugin-prettier * fix: revert to double quotes * fix: manually move style outside <body> * fix: update file tree in README * refactor: publish-date -> time * refactor: remove unused div and margin * refactor: publishDate -> time on layout * refactor: .heroImage -> img * refactor: .logo -> svg * feat: update social image, remove jpg * fix: remove prism stylesheet!
2022-07-12[ci] release (#3899)Gravatar Fred K. Bot 29-29/+29
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-07-12[ci] release (#3894)Gravatar Fred K. Bot 29-63/+63
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-07-11Fix: reintroduce smoke tests across example projects (#3669)Gravatar Nate Moore 1-1/+1
* chore: update smoke tests * chore: bump smoke tests to node@16 * chore: remove gitmodules * chore(ci): prefer node@14 * wip: remove path from smoke clone step * feat: run build:examples from test:smoke * fix: remove no-frozen-lockfile * fix: checkout monorepo last for pnpm setup * wip: replace @astrojs/markdown/remark import from md * fix: remove type defs from generated file * fix: function order * chore: remove ssr-utils export * wip: remove windows from smoke test * fix: instantiate slugger in snippet * fix: exclude with-mdx from smoke (for now) * fix: add quotes on filter flag for safety * chore: changeset * wip: try reintroducing windows smoke * sad chore: remove client: directive from with-mdx * Revert "wip: try reintroducing windows smoke" This reverts commit 9529b1a45c007286c22861e106b82200545e4198. Co-authored-by: Nate Moore <nate@astro.build> Co-authored-by: bholmesdev <hey@bholmes.dev>
2022-07-11[ci] formatGravatar bholmesdev 4-13/+8
2022-07-11Update `with-nanostores` example to match docs walkthrough (#3840)Gravatar Ben Holmes 23-310/+306
* feat: replace with-nanostores with new example * docs: update README with docs call-out * chore: small formatting inconsistencies * nit: standardize to spaces :'( * nit: standardize to tabs! * refactor: use html "hidden" property * nit: beta.66 for sanity
2022-07-11[ci] release (#3887)create-astro@0.13.0astro@1.0.0-beta.66@astrojs/vue@0.3.0@astrojs/telemetry@0.3.0@astrojs/svelte@0.3.0@astrojs/solid-js@0.3.0@astrojs/react@0.3.0@astrojs/prism@0.5.0@astrojs/preact@0.4.0@astrojs/mdx@0.1.0@astrojs/markdown-remark@0.11.4Gravatar Fred K. Bot 29-62/+62
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-07-11fix: portfolio example JSX error (#3886)Gravatar Tom Lienard 1-2/+2
* fix: portfolio example JSX error * chore: add changeset * chore: update description
2022-07-11Move client types into Astro (#3851)Gravatar Matthew Phillips 28-55/+55
* Move client types into Astro * Adds a changeset * Fix path to local client * Reference vite/client in our HMR types * Add back in the expect-error * Update types comment
2022-07-08[ci] release (#3850)create-astro@0.12.5astro@1.0.0-beta.65@astrojs/vue@0.2.1@astrojs/vercel@0.2.5@astrojs/turbolinks@0.1.4@astrojs/telemetry@0.2.5@astrojs/tailwind@0.2.3@astrojs/svelte@0.2.1@astrojs/solid-js@0.2.1@astrojs/sitemap@0.2.5@astrojs/react@0.2.1@astrojs/prefetch@0.0.4@astrojs/preact@0.3.2@astrojs/partytown@0.1.7@astrojs/node@0.1.5@astrojs/netlify@0.4.9@astrojs/mdx@0.0.3@astrojs/lit@0.3.1@astrojs/image@0.1.0@astrojs/deno@0.1.9@astrojs/cloudflare@0.2.3Gravatar Fred K. Bot 29-68/+68
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-07-08Format astro files in examples (#3862)Gravatar Marcus Otterström 73-694/+957
2022-07-06[ci] release (#3818)astro@1.0.0-beta.64@astrojs/telemetry@0.2.4@astrojs/node@0.1.4Gravatar Fred K. Bot 29-30/+30
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-07-05Fix portfolio example to use lowercase srcset (#3829)Gravatar Matthew Phillips 1-1/+1
2022-07-01[ci] release (#3800)astro@1.0.0-beta.63Gravatar Fred K. Bot 29-29/+29
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-07-01[ci] formatGravatar natemoo-re 2-7/+2
2022-07-01Update MDX example to address failure (#3799)Gravatar Nate Moore 2-4/+9
* fix: do not use symbol in JSX runtime * chore: update MDX example Co-authored-by: Nate Moore <nate@astro.build>
2022-07-01[ci] release (#3789)astro@1.0.0-beta.62@astrojs/image@0.0.2Gravatar Fred K. Bot 29-29/+29
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-07-01[ci] release (#3783)Gravatar Fred K. Bot 29-29/+29
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-06-30[ci] release (#3774)astro@1.0.0-beta.60@astrojs/vercel@0.2.4@astrojs/telemetry@0.2.3@astrojs/sitemap@0.2.4@astrojs/prefetch@0.0.3@astrojs/partytown@0.1.6@astrojs/node@0.1.3@astrojs/netlify@0.4.8@astrojs/mdx@0.0.2@astrojs/deno@0.1.8Gravatar Fred K. Bot 29-34/+34
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-06-30[ci] formatGravatar natemoo-re 2-14/+9
2022-06-30MDX support (#3706)Gravatar Nate Moore 14-0/+149
* feat: first pass at MDX support * fix: move built-in JSX renderer to come first * chore: remove jsx example * chore: update lockfile * chore: cleanup example * fix: missing deps * refactor: move component render logic to `renderPage` * chore: update HMR script * chore: update MDX example * refactor: prefer unshit * refactor: remove TODO comment * fix: remove duplicate identifier * refactor: cleanup mdx entrypoint * fix: better html handling * fix: add tsconfig to mdx package * chore: update lockfile * fix: do not sort plugins unless mdx is enabled * chore: update compiler * fix(hmr): maybe render head for non-Astro pages * fix: set initial pageExtensions * refactor: cleanup addPageExtension * refactor: remove addPageExtensions from types * refactor: expose HookParameters type * fix: only default to astro for MDX * test: pick up jsx support in test fixtures * refactor: simplify mdx entrypoint * test: add basic MDX tests * test(e2e): add mdx + framework tests * chore: update lockfile * test(e2e): fix preact mdx e2e test * fix(mdx): disable .md support * test(e2e): fix vue-component test missing mdx * test(e2e): fix solid component needing import * fix: allow `client:only="solid"` as an alias to `solid-js` * chore: move to with-mdx example * chore: update MDX readme * chore: update example readme * chore: bump astro version * chore: update lockfile * Update mod.d.ts * feat: support `export const components` in MDX pages * chore: update mdx example * fix: update jsx-runtime with better slot support * refactor: remove object style support * chore: cleanup package exports * chore: add todo comment * refactor: improve isPage function, move to utils * refactor: dry up manual HMR updates * chore: add dev tests for MDX * chore: prefer set to array * chore: add changesets * fix(hmr): flip public/private route Co-authored-by: Nate Moore <nate@astro.build>
2022-06-30[ci] release (#3772)@astrojs/preact@0.3.1Gravatar Fred K. Bot 8-8/+8
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-06-29[ci] release (#3759)astro@1.0.0-beta.59@astrojs/telemetry@0.2.2@astrojs/preact@0.3.0Gravatar Fred K. Bot 28-36/+36
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-06-29Updates an error handler to expect updated `@astrojs/lit` behavior (#3766)Gravatar Tony Sullivan 6-24/+16
* fix: don't throw an error when the lit renderer doesn't provide a clientEntrypoint * updating the framework-lit example to match new behavior * fix: updating the playground example to latest lit syntax
2022-06-28improve performance by adding another preconnect (#3737)Gravatar Rychardt Rothwërkz 1-1/+2
* improve performance by adding another preconnect This is the code Google Fonts officially provides. The reason for adding a secound url is that the link: https://fonts.googleapis.com/css2?family=Inter:wght@100&display=swap lists src urls like this: @font-face { font-family: 'Inter'; font-style: normal; font-weight: 100; font-display: swap; src: url(https://fonts.gstatic.com/s/inter/v11/UcCO3FwrK3iLTeHuS_fvQtMwCp50KnMw2boKoduKmMEVuLyeAZ9hiA.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; } so for better performance both urls needs to be preconnected. * Update examples/portfolio/src/components/MainHead.astro Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
2022-06-28[ci] release (#3733)astro@1.0.0-beta.58@astrojs/telemetry@0.2.0@astrojs/tailwind@0.2.2@astrojs/sitemap@0.2.3@astrojs/prefetch@0.0.2@astrojs/netlify@0.4.7@astrojs/deno@0.1.7Gravatar Fred K. Bot 28-31/+31
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-06-28[ci] update lockfile (#3740)Gravatar Fred K. Bot 5-5/+5
Co-authored-by: FredKSchott <FredKSchott@users.noreply.github.com>
2022-06-27[ci] release (#3726)astro@1.0.0-beta.57Gravatar github-actions[bot] 28-28/+28
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-06-24[ci] release (#3707)astro@1.0.0-beta.56Gravatar github-actions[bot] 28-28/+28
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>