Skip to content

Commit

Permalink
Merge branch 'main' into email-signup
Browse files Browse the repository at this point in the history
  • Loading branch information
ElianCodes authored Jan 25, 2024
2 parents 3b1fa31 + b17c027 commit 06d97e6
Show file tree
Hide file tree
Showing 501 changed files with 997 additions and 660 deletions.
12 changes: 6 additions & 6 deletions astro.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@ import sitemap from "@astrojs/sitemap"
import solidJs from "@astrojs/solid-js"
import tailwind from "@astrojs/tailwind"
import vercel from "@astrojs/vercel/serverless"
import astroExpressiveCode from "astro-expressive-code"
import { defineConfig } from "astro/config"
import fs from "node:fs"
import houston from "./houston.theme.json"

/* https://vercel.com/docs/projects/environment-variables/system-environment-variables#system-environment-variables */
const VERCEL_PREVIEW_SITE =
Expand All @@ -20,14 +21,13 @@ export default defineConfig({
applyBaseStyles: false,
}),
solidJs(),
astroExpressiveCode({
themes: [houston],
frames: false,
}),
mdx(),
sitemap(),
],
markdown: {
shikiConfig: {
theme: JSON.parse(fs.readFileSync("./houston.theme.json", { encoding: "utf-8" })),
},
},
image: {
domains: ["v1.screenshot.11ty.dev"],
},
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
"@astrojs/tailwind": "^5.0.3",
"@fontsource-variable/inter": "^5.0.16",
"astro": "^4.0.4",
"astro-expressive-code": "^0.32.0",
"chart.js": "4.4.1",
"clsx": "^2.0.0",
"gray-matter": "^4.0.3",
Expand Down
179 changes: 179 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/content/blog/astro-025.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ We can't do anything about the first two, but we can make Astro even easier for

We'll share a lot more on this over the next two weeks, but you can start exploring the new API today [on our docs site.](https://docs.astro.build/en/guides/integrations-guide/). To migrate an existing Astro project to this new API, [read through our migration guide](https://docs.astro.build/en/migrate/#astro-integrations).

```diff
```diff lang="js"
// astro.config.js
+ import lit from '@astrojs/lit';
+ import react from '@astrojs/react';
Expand Down
2 changes: 1 addition & 1 deletion src/content/blog/astro-150.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ npm run preview

We will be updating the other first party Astro adapters to support preview over time. Adapters can opt-in to this feature by providing the `previewEntrypoint` via the `setAdapter` function in `astro:config:done` hook. The Node.js adapter's code looks like this:

```diff
```diff lang="js"
export default function() {
return {
name: '@astrojs/node',
Expand Down
2 changes: 1 addition & 1 deletion src/content/blog/astro-250.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ First, we've introduced a new `type: 'data'` property to store data formats like

Create data collections alongside your existing content collections:

```diff
```diff lang="js"
src/content/
blog/
week-1.md
Expand Down
Loading

0 comments on commit 06d97e6

Please sign in to comment.