summaryrefslogtreecommitdiff
path: root/examples (follow)
AgeCommit message (Collapse)AuthorFilesLines
2023-01-13Implement redesign of portfolio example (#5765)Gravatar Chris Swithinbank 58-804/+1900
Co-authored-by: Yan Thomas <61414485+Yan-Thomas@users.noreply.github.com> Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
2023-01-12[ci] release (beta) (#5792)create-astro@2.0.0-beta.0astro@2.0.0-beta.2@astrojs/webapi@2.0.0-beta.0@astrojs/vue@2.0.0-beta.1@astrojs/vercel@3.0.0-beta.1@astrojs/telemetry@2.0.0-beta.0@astrojs/tailwind@3.0.0-beta.1@astrojs/svelte@2.0.0-beta.1@astrojs/solid-js@2.0.0-beta.0@astrojs/react@2.0.0-beta.0@astrojs/prism@2.0.0-beta.0@astrojs/preact@2.0.0-beta.0@astrojs/partytown@1.0.3-beta.0@astrojs/node@5.0.0-beta.1@astrojs/netlify@2.0.0-beta.2@astrojs/mdx@1.0.0-beta.2@astrojs/markdown-remark@2.0.0-beta.2@astrojs/lit@1.0.2-beta.0@astrojs/image@1.0.0-beta.2@astrojs/deno@4.0.0-beta.2@astrojs/cloudflare@6.0.0-beta.1Gravatar Fred K. Bot 27-52/+52
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-01-12 Add `.astro/` to `.gitignore` in example projects (#5841)Gravatar Chris Swithinbank 24-98/+46
* Delete committed types in with-content example * Add `.astro/` to `.gitignore` in example projects
2023-01-11[Content collections] Remove experimental flag (#5825)Gravatar Ben Holmes 1-3/+0
* refactor: remove experimental.cc from core * chore: remove experimental flag from tests * fix: mock contentDir in remark tests * fix: check vfile.path in rel-image-error plugin * fix: move .astro/ excludes to all test/fixtures * fix: include test/**/fixtures in ignore * chore: changeset
2023-01-10[ci] formatGravatar bholmesdev 1-39/+38
2023-01-10[Content collections] Move generated types to `.astro` directory (#5786)Gravatar Ben Holmes 2-38/+40
* feat: change cacheDir to `.astro` * feat: write reference in env.d.ts if none exists * chore: update with-content types * test: env.d.ts transform * nit: setUp -> add * refactor: content.d.ts -> types.d.ts * chore: update confirmation log * chore: changeset * feat: inject env.d.ts if none exists * feat: set up env.d.ts on `astro sync` * chore: duplicate envTsPathRelative * docs: update changeset * fix: make srcDir if none exists * fix: types.generated -> .astro in gitignore * feat: add env.d.ts to test gitignore * chore: remove env.d.ts from content-collections * test: move sync tests to `astro sync`, add file write test * refactor: simplify test gitignore to base * fix: add / to `.astro` bc that scares me
2023-01-10[ci] formatGravatar bholmesdev 1-39/+38
2023-01-10[Content Collections] Allow Zod unions, objects, and transforms as schemas ↵Gravatar Ben Holmes 2-44/+58
(#5770) * feat: require `schema: z.object({...})` * fix: update zod object type check * fix: update types template * chore: update with-content config * chore: update test fixture configs * test: zod union type * refactor: enumerate valid schema types
2023-01-09[ci] formatGravatar bluwy 3-8/+8
2023-01-06[ci] release (beta) (#5742)astro@2.0.0-beta.1@astrojs/tailwind@3.0.0-beta.0@astrojs/netlify@2.0.0-beta.1@astrojs/mdx@0.15.0-beta.1@astrojs/markdown-remark@2.0.0-beta.1@astrojs/image@0.13.0-beta.1@astrojs/deno@4.0.0-beta.1Gravatar Fred K. Bot 27-34/+34
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-01-04fix broken link in tailwind example docs (#5762)Gravatar Christopher Christofi 1-1/+1
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2023-01-03[ci] release (beta) (#5732)astro@2.0.0-beta.0@astrojs/vue@2.0.0-beta.0@astrojs/vercel@3.0.0-beta.0@astrojs/svelte@2.0.0-beta.0@astrojs/node@5.0.0-beta.0@astrojs/netlify@2.0.0-beta.0@astrojs/mdx@0.15.0-beta.0@astrojs/markdown-remark@2.0.0-beta.0@astrojs/image@0.13.0-beta.0@astrojs/deno@4.0.0-beta.0@astrojs/cloudflare@6.0.0-beta.0Gravatar Fred K. Bot 27-42/+42
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-01-03[ci] formatGravatar bholmesdev 1-39/+38
2023-01-03Change frontmatter injection ordering (#5687)Gravatar Ben Holmes 1-39/+40
* feat: make user frontmatter accessible in md * test: new frontmatter injection * refactor: move injection utils to remark pkg * fix: add dist/internal to remark exports * feat: update frontmater injection in mdx * tests: new mdx injection * chore: changeset * chore: simplify frontmatter destructuring * fix: remove old _internal references * refactor: injectedFrontmatter -> remarkPluginFrontmatter * docs: add content collections change * chore: changeset heading levels
2023-01-03Remove deprecated APIs (#5707)Gravatar Bjorn Lu 1-1/+1
* Remove deprecated Astro globals * Remove deprecated hook param * Fix test * Add changeset * Add TODO
2023-01-03[ci] release (#5718)astro@1.9.0Gravatar Fred K. Bot 27-27/+27
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-12-27[ci] release (#5645)astro@1.8.0@astrojs/vercel@2.4.0@astrojs/rss@2.0.0@astrojs/mdx@0.14.0@astrojs/markdown-remark@1.2.0Gravatar Fred K. Bot 27-33/+33
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-12-21[ci] formatGravatar delucis 1-1/+1
2022-12-21Add canonical URL to blog example (#5651)Gravatar Shivam 1-0/+5
2022-12-19[ci] release (#5642)astro@1.7.2Gravatar Fred K. Bot 27-29/+29
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-12-19Fix spelling mistakes found by codespell and mwic (#5627)Gravatar Anders Kaseorg 1-2/+2
2022-12-18Fix links in content used by docs (#5631)Gravatar Chris Swithinbank 1-1/+1
* Use canonical URLs with trailing slash * Always use full URL for JSDoc links
2022-12-16[ci] release (#5618)astro@1.7.1Gravatar Fred K. Bot 27-29/+29
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-12-16[ci] release (#5607)create-astro@1.2.4astro@1.7.0@astrojs/node@4.0.0@astrojs/netlify@1.3.0@astrojs/mdx@0.13.0@astrojs/deno@3.0.0@astrojs/cloudflare@5.0.0Gravatar Fred K. Bot 27-36/+36
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-12-16[ci] formatGravatar matthewp 9-101/+105
2022-12-16Content Collections (#5291)Gravatar Ben Holmes 31-0/+794
* feat: port content plugin as-is * feat: add `fetchContent` to `.astro` * refactor: move more logic to content-internals * refactor: move internals -> content dir * feat: nested dir support * feat: add with-content playground * edit: update README * fix: serialize route pattern for Netlify edge Co-authored-by: Jackie Macharia <jackiewmacharia> * wip: add ?astro-asset-ssr flag * wip: exclude astro-ssr-asset styles from build * revert: SSR asset flag babel changes * feat: only load CSS when mdx is rendered! * fix(vercel): Include all files inside `dist/` instead of only `entry.mjs` (#5175) * chore: only-allow pnpm (#5131) * [MDX] Support `recmaPlugins` config (#5146) * feat: support recma plugins * chore: add `test:match` to MDX * chore: changeset * docs: add recmaPlugins to README * removes default content-visibility styles from image components (#5180) * wip: check renderContent works * nit: injectDelayedAssetPlugin doesn't need enforce * feat: render content with generated entries * feat: renderContent style injection POC * wip: scrappy renderContent binding * deps: parse-imports * feat: only bind renderContent when imported * feat: new-and-improved render-content * fix: update example to use render-content * refactor: extract normalizeFilename helper * feat: move renderContent to `.astro` * feat: add `getStaticPaths` demo 👀 * chore: remove console log * refactor: internals -> internal * fix: style bleed on dynamic routes * chore: remove console log * refactor: move rendercontentmap inside same file * fix: style bleed in dev! * feat: clean up example * refactor: curry generateContent * nit: add datetime demo * refactor: rename and move content plugins * feat: granular content updates in development * chore: console.log * refactor: move write logic, fix edge cases * fix: use z.any() when ~schema is missing * refactor: clean up logging * fix: add delayed asset flag to render map * fix: use new server loader * chore: import type * fix: split delayed assets to separate chunks * chore: bad merge changesets * feat: rework content map to Vite globs * fix: formatted errors * fix: get `renderContent` working with new APIs * refactor: rename to getCollection, getEntry, renderEntry * feat: streamline type alias! * fix: check schema import is an import * refactor: change ~schema -> index with defineCollection * feat: auto apply env.d.ts reference * feat: expose `headings` on `renderEntry` * refactor: expose zod from astro/zod * feat: add Collection util type * refactor: generated types in src/content/ * edit: remove env.d.ts change from with-content * feat: collectionToPaths utility * refactor: migrate `examples/blog` * refactor: simplify [...slug] * fix: invalid date * fix: renderEntry * feat: migrate examples/docs to content! * refactor: union -> enum * fix: remove duplicate header * chore: changeset * Revert "fix: serialize route pattern for Netlify edge" This reverts commit ac46a0d3238af1e6f8c3b8f235163385be1ff732. * fix: lint * fix: include zod in package files * chore: push type gen for astro check * feat: move to single defineCollections file * feat: move examples to new collections model * chore: type check valid collection names * fix: ignore collections path in err logs * refactor: content/index -> content/config * refactor: defineCollections -> defineCollection * fix: update docs to defineCollection * chore: update with-content to new `astro:content` setup * fix: renderEntry styles * fix: bad Collection type * fix: blog types generated * feat: expose injectedFrontmatter on renderEntry * chore: `import type` * chore: add MDX to changeset * fix: template package file * fix: unneeded log on content config change * chore: add `injectedFrontmatter` to generated types * fix: escape import.meta.env in `body` * fix: escape import.meta.env in frontmatter * chore: unused import * fix: use URL for config pathname * feat: allow zod async transforms * deps: devalue * feat: custom slugs + better type checking * fix: update types on config added or removed * chore: add error msg for MDX preview release * refactor: restore old normalizeFilename * fix: add loadContentConfig error classes back * Add initial tests for renderEntry * add fixture tests * Use head propagation APIs in renderEntry * chore: new type gen * fix: sort content keys before writing * fix: avoid writing '.' collection with warning * chore: docs types generated * fix: generated types only once in build * fix: use relative path to config for git * chore: update generated types * fix: glob pattern on valid exts * feat: warn on possible collection typos * chore: better error on bad lazy import * fix: clear gray-matter cache for rawData * fix: wait for config file while generating * test: get collection and get entry basic * test: multiple collections and entries * test: add publishedDate test on entry * tests: getStaticPaths integration * test: ssr endpoint integration * chore: consistent test names * refactor: simplify generates... test * chore: tests lockfile * feat: add `experimental` flag * chore: revert blog and docs examples * chore: add experimental flag to with-content * refactor: reuse contentFileExts * refactor: make contentCollectionCss required * chore: remove parse-imports dependency * chore: remove unresolved idea redundancy * chore: update changeset to minor v * chore: clean up with-content pass 1 * refactor: de-monolith vite-plugin-content * chore: remove maximum jank warning (it's acceptable jank) * refactor: extract types-generator to separate file * refactor: onEvent -> handleEvent * edit: change content log to "types generated" * fix: more experimental checks in prod build * refactor: 2 jsToTreeNode calls -> 1 * feat: change with-content example to blog example * fix: Content component type * Fix use of renderEntry within a slot * fix: warn for non-underscore _ files, refine logs * chore: Content type in tests * fix: types no updating with config changes * fix: remove `result: SSRResult` type * chore: entry var shadowing * fix: bad experimental flag call * wip: skip render entry tests * fix: path resolution for .relative on windows * chore: remove dead code * wip: log entryPath into * fix: use URL for entry * refactor: getEntryInfo normalization * refactor: move debounce to queueEvent only * fix: resolve loader on config error * fix: pathToFileURL -> new URL * fix: dangerous pathname comparison * refactor: move rawEvent -> event mapping to queueEvent * fix: bad type * wip: remove mkdir call * wip: log content paths * fix: more bad paths * wip: more logs * fix: correct glob path * fix: normalize virtual mod path * fix: content server file paths * chore: remove render entry test skip * wip: skip renderEntry tests (windows issues?) * chore: remove console log * feat: renderEntry -> render * chore: add `--experimental-content-collections` * refactor: only skip renderEntry tests on windows * refactor: index.ts barrel export * fix: cli type error * fix: proper test skip on windows * refactor: remove collectionToPaths :( * refactor: use AstroError for frontmatter error * nit: its schema, .* * fix: bad isWindows import * fix: await mod -> mod = await Co-authored-by: Juan Martín Seery <me@juanm04.com> Co-authored-by: 花果山大圣 <316783812@qq.com> Co-authored-by: Tony Sullivan <tony.f.sullivan@outlook.com> Co-authored-by: Matthew Phillips <matthew@skypack.dev> Co-authored-by: bholmesdev <bholmesdev@gmail.com>
2022-12-15Docs example: use HTTPS for `site` in `astro.config.mjs` (#5603)Gravatar Zihan Chen 1-1/+1
2022-12-14[ci] release (#5605)@astrojs/rss@1.2.1Gravatar Fred K. Bot 1-1/+1
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-12-13[ci] release (#5597)@astrojs/rss@1.2.0Gravatar Fred K. Bot 1-1/+1
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-12-12[ci] release (#5561)astro@1.6.15@astrojs/vue@1.2.2@astrojs/node@3.1.1@astrojs/mdx@0.12.2Gravatar Fred K. Bot 26-35/+35
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-12-08[ci] release (#5544)astro@1.6.14@astrojs/rss@1.1.0@astrojs/netlify@1.2.2@astrojs/deno@2.0.1@astrojs/cloudflare@4.1.1Gravatar Fred K. Bot 26-30/+30
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-12-06[ci] release (#5507)astro@1.6.13@astrojs/vercel@2.3.5@astrojs/mdx@0.12.1@astrojs/image@0.12.1Gravatar Fred K. Bot 26-31/+31
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-11-30[ci] release (#5485)astro@1.6.12@astrojs/image@0.12.0Gravatar Fred K. Bot 26-28/+28
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-11-24[ci] release (#5432)astro@1.6.11@astrojs/tailwind@2.1.3@astrojs/partytown@1.0.2@astrojs/mdx@0.12.0@astrojs/cloudflare@4.1.0Gravatar Fred K. Bot 26-32/+32
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-11-17[ci] release (#5419)astro@1.6.10@astrojs/node@3.1.0@astrojs/image@0.11.6Gravatar Fred K. Bot 26-30/+30
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-11-17fix: Docs Site - Table of contents highlight not working (#5411)Gravatar Rishi Raj Jain 4-40/+109
* fix: Docs Site - Table of contents highlight not working * Add html-escaper devDep * add html-escaper via pnpm
2022-11-16[ci] release (#5399)create-astro@1.2.3astro@1.6.9@astrojs/vercel@2.3.4@astrojs/image@0.11.5Gravatar Fred K. Bot 26-28/+28
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-11-15fix(template): delete extra css. (#5403)Gravatar 李瑞丰 1-1/+0
2022-11-14[ci] release (#5365)astro@1.6.8@astrojs/solid-js@1.2.3Gravatar Fred K. Bot 26-30/+30
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-11-14Preserve reactivity in Solid example component (#5386)Gravatar Josh Wilson 1-2/+2
2022-11-10[ci] release (#5359)astro@1.6.7@astrojs/image@0.11.4Gravatar Fred K. Bot 26-28/+28
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-11-10[ci] release (#5329)astro@1.6.6@astrojs/mdx@0.11.6@astrojs/image@0.11.3Gravatar Fred K. Bot 26-31/+31
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-11-10Fix `astro.config.mjs` in minimal example (#5350)Gravatar Chris Swithinbank 1-4/+1
2022-11-10Add “Open with CodeSandbox” buttons to example project READMEs (#5322)Gravatar Obinna Ekwuno 25-1/+26
Co-authored-by: Chris Swithinbank <swithinbank@gmail.com>
2022-11-08[ci] formatGravatar natemoo-re 1-4/+6
2022-11-08fix(examples): ts-check issue (#5332)Gravatar Nate Moore 1-6/+5
Co-authored-by: Nate Moore <nate@astro.build>
2022-11-08[ci] formatGravatar Princesseuh 16-158/+182
2022-11-08[ci] release (#5325)create-astro@1.2.2astro@1.6.5@astrojs/netlify@1.2.1@astrojs/image@0.11.2@astrojs/cloudflare@4.0.1Gravatar Fred K. Bot 26-28/+28
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-11-07[ci] release (#5296)astro@1.6.4@astrojs/node@3.0.0@astrojs/deno@2.0.0@astrojs/cloudflare@4.0.0Gravatar Fred K. Bot 26-31/+31
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-11-04[ci] formatGravatar matthewp 1-1/+1