Skip to content

Commit a9f5361

Browse files
committed
set pnpm version in package.json to make github CI work
1 parent a9edf91 commit a9f5361

File tree

5 files changed

+305
-95
lines changed

5 files changed

+305
-95
lines changed

.github/workflows/deploy.yml

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,10 @@
11
name: Deploy to GitHub Pages
22

33
on:
4-
# Trigger the workflow every time you push to the `main` branch
5-
# Using a different branch name? Replace `main` with your branch’s name
64
push:
75
branches: [ main ]
8-
# Allows you to run this workflow manually from the Actions tab on GitHub.
96
workflow_dispatch:
107

11-
# Allow this job to clone the repo and create a page deployment
128
permissions:
139
contents: read
1410
pages: write
@@ -21,13 +17,7 @@ jobs:
2117
- name: Checkout your repository using git
2218
uses: actions/checkout@v4
2319
- name: Install, build, and upload your site
24-
uses: withastro/action@v3
25-
# with:
26-
# path: . # The root location of your Astro project inside the repository. (optional)
27-
# node-version: 20 # The specific version of Node that should be used to build your site. Defaults to 20. (optional)
28-
# package-manager: pnpm@latest # The Node package manager that should be used to install dependencies and build your site. Automatically detected based on your lockfile. (optional)
29-
# env:
30-
# PUBLIC_POKEAPI: 'https://pokeapi.co/api/v2' # Use single quotation marks for the variable value. (optional)
20+
uses: withastro/action@v4
3121

3222
deploy:
3323
needs: build

.vscode/settings.json

Lines changed: 0 additions & 22 deletions
This file was deleted.

astro.config.mjs

Lines changed: 54 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -1,68 +1,70 @@
1-
import {defineConfig} from "astro/config";
2-
import starlight from "@astrojs/starlight";
3-
import fs from "node:fs";
4-
import tailwindcss from '@tailwindcss/vite';
1+
import { defineConfig } from "astro/config"
2+
import starlight from "@astrojs/starlight"
3+
import fs from "node:fs"
4+
import tailwindcss from '@tailwindcss/vite'
55

66
// https://astro.build/config
77
export default defineConfig(
8-
{
9-
i18n: {
10-
defaultLocale: "en",
11-
locales: ["en"],
12-
},
8+
{
9+
i18n: {
10+
defaultLocale: "en",
11+
locales: ["en"],
12+
},
1313

14-
site: "https://c3-lang.org",
14+
site: "https://waveproc.github.io/c3-web",
15+
base: "/c3-web",
1516

16-
redirects: {
17-
'/docs': '/getting-started',
18-
'/guide': '/getting-started',
19-
'/introduction': '/getting-started',
17+
redirects: {
18+
'/docs': '/getting-started',
19+
'/guide': '/getting-started',
20+
'/introduction': '/getting-started',
2021

21-
'/guide/basic-types-and-values': '/language-fundamentals/basic-types-and-values',
22+
'/guide/basic-types-and-values': '/language-fundamentals/basic-types-and-values',
2223

23-
'/guide/my-first-hello-world': '/getting-started/hello-world',
24-
'/guide/my-first-project': '/getting-started/projects',
25-
'/references/development': '/get-involved',
24+
'/guide/my-first-hello-world': '/getting-started/hello-world',
25+
'/guide/my-first-project': '/getting-started/projects',
26+
'/references/development': '/get-involved',
2627

27-
'/references': '/getting-started/design-goals',
28-
'/introduction/design-goals': '/getting-started/design-goals',
28+
'/references': '/getting-started/design-goals',
29+
'/introduction/design-goals': '/getting-started/design-goals',
2930

30-
'/references/getting-started/prebuilt-binaries': '/getting-started/prebuilt-binaries',
31-
'/install-c3/prebuilt-binaries': '/getting-started/prebuilt-binaries',
31+
'/references/getting-started/prebuilt-binaries': '/getting-started/prebuilt-binaries',
32+
'/install-c3/prebuilt-binaries': '/getting-started/prebuilt-binaries',
3233

33-
'/references/getting-started/setup': '/getting-started/compile',
34-
'/install-c3/compile': '/getting-started/compile',
34+
'/references/getting-started/setup': '/getting-started/compile',
35+
'/install-c3/compile': '/getting-started/compile',
3536

36-
'/references/docs/examples': '/language-overview/examples',
37-
'/references/getting-started/primer': '/language-overview/primer',
37+
'/references/docs/examples': '/language-overview/examples',
38+
'/references/getting-started/primer': '/language-overview/primer',
3839

3940

40-
'/references/getting-started/allfeatures': '/faq/allfeatures',
41-
'/introduction/roadmap': '/getting-started/roadmap',
42-
'/compare': '/faq/compare-languages',
43-
'/references/docs/compare': '/faq/compare-languages'
41+
'/references/getting-started/allfeatures': '/faq/allfeatures',
42+
'/introduction/roadmap': '/getting-started/roadmap',
43+
'/compare': '/faq/compare-languages',
44+
'/references/docs/compare': '/faq/compare-languages'
4445

45-
},
46+
},
4647

47-
integrations: [
48-
starlight(
49-
{
50-
favicon: "/ico.svg",
51-
title: "C3",
52-
customCss: ["./src/content/docs.css"],
53-
expressiveCode: {
54-
shiki: {
55-
langs: [JSON.parse(fs.readFileSync("./c3-grammar.json", "utf-8"))],
56-
themes: {
57-
light: 'github-light',
58-
dark: 'github-dark',
59-
},
60-
},
61-
},
62-
}),
63-
],
48+
integrations: [
49+
starlight(
50+
{
51+
favicon: "/ico.svg",
52+
title: "C3",
53+
customCss: ["./src/content/docs.css"],
54+
expressiveCode: {
55+
shiki: {
56+
langs: [JSON.parse(fs.readFileSync("./c3-grammar.json", "utf-8"))],
57+
themes: {
58+
light: 'github-light',
59+
dark: 'github-dark',
60+
},
61+
},
62+
},
63+
}),
64+
],
6465

65-
vite: {
66-
plugins: [tailwindcss()]
67-
}
68-
})
66+
vite: {
67+
plugins: [tailwindcss()]
68+
}
69+
})
70+

package.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@
1515
"astro": "5.13.4",
1616
"astro-expressive-code": "0.41.3",
1717
"boxicons": "^2.1.4",
18+
"sharp": "^0.34.3",
1819
"tailwindcss": "4.1.12"
19-
}
20-
}
20+
},
21+
"packageManager": "[email protected]"
22+
}

0 commit comments

Comments
 (0)