Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
88 changes: 0 additions & 88 deletions .github/workflows/astro.yml

This file was deleted.

31 changes: 31 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Deploy to GitHub Pages

on:
push:
branches: [ main ]
workflow_dispatch:

permissions:
contents: read
pages: write
id-token: write

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout your repository using git
uses: actions/checkout@v4
- name: Install, build, and upload your site
uses: withastro/action@v4

deploy:
needs: build
runs-on: ubuntu-latest
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
22 changes: 0 additions & 22 deletions .vscode/settings.json

This file was deleted.

6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,11 @@ The C3 Website made with [Astro](https://astro.build/), [TailwindCSS](https://ta

<h1 style="font-size: 24px;">Get Started</h1>

After cloning the repository with `git clone`, you can run `npm run dev` and that's it!
1. Clone the repository with `git clone https://github.com/c3lang/c3-web`, move into the `c3-web` directory, and make sure you have [Node.js](https://nodejs.org/en/download) installed.
2. Enable pnpm with `corepack enable pnpm`.
3. Install the website's dependencies with `pnpm i`, then run `pnpm run astro build` to package the site for offline use.
4. To view the site in your web browser, run `pnpx http-server dist` and click the link (defaults to http://127.0.0.1:8080).
* Or, if you want to contribute to the site, run `pnpm run astro dev` and click the link (defaults to http://localhost:4321). Then create a pull request on Github with your changes.

<h1 style="display: flex; align-items: center; font-size: 24px;">Project Structure</h1>

Expand Down
104 changes: 52 additions & 52 deletions astro.config.mjs
Original file line number Diff line number Diff line change
@@ -1,68 +1,68 @@
import {defineConfig} from "astro/config";
import starlight from "@astrojs/starlight";
import fs from "node:fs";
import tailwindcss from '@tailwindcss/vite';
import { defineConfig } from "astro/config"
import starlight from "@astrojs/starlight"
import fs from "node:fs"
import tailwindcss from '@tailwindcss/vite'

// https://astro.build/config
export default defineConfig(
{
i18n: {
defaultLocale: "en",
locales: ["en"],
},
{
i18n: {
defaultLocale: "en",
locales: ["en"],
},

site: "https://c3-lang.org",
site: "https://c3-lang.org",

redirects: {
'/docs': '/getting-started',
'/guide': '/getting-started',
'/introduction': '/getting-started',
redirects: {
'/docs': '/getting-started',
'/guide': '/getting-started',
'/introduction': '/getting-started',

'/guide/basic-types-and-values': '/language-fundamentals/basic-types-and-values',
'/guide/basic-types-and-values': '/language-fundamentals/basic-types-and-values',

'/guide/my-first-hello-world': '/getting-started/hello-world',
'/guide/my-first-project': '/getting-started/projects',
'/references/development': '/get-involved',
'/guide/my-first-hello-world': '/getting-started/hello-world',
'/guide/my-first-project': '/getting-started/projects',
'/references/development': '/get-involved',

'/references': '/getting-started/design-goals',
'/introduction/design-goals': '/getting-started/design-goals',
'/references': '/getting-started/design-goals',
'/introduction/design-goals': '/getting-started/design-goals',

'/references/getting-started/prebuilt-binaries': '/getting-started/prebuilt-binaries',
'/install-c3/prebuilt-binaries': '/getting-started/prebuilt-binaries',
'/references/getting-started/prebuilt-binaries': '/getting-started/prebuilt-binaries',
'/install-c3/prebuilt-binaries': '/getting-started/prebuilt-binaries',

'/references/getting-started/setup': '/getting-started/compile',
'/install-c3/compile': '/getting-started/compile',
'/references/getting-started/setup': '/getting-started/compile',
'/install-c3/compile': '/getting-started/compile',

'/references/docs/examples': '/language-overview/examples',
'/references/getting-started/primer': '/language-overview/primer',
'/references/docs/examples': '/language-overview/examples',
'/references/getting-started/primer': '/language-overview/primer',


'/references/getting-started/allfeatures': '/faq/allfeatures',
'/introduction/roadmap': '/getting-started/roadmap',
'/compare': '/faq/compare-languages',
'/references/docs/compare': '/faq/compare-languages'
'/references/getting-started/allfeatures': '/faq/allfeatures',
'/introduction/roadmap': '/getting-started/roadmap',
'/compare': '/faq/compare-languages',
'/references/docs/compare': '/faq/compare-languages'

},
},

integrations: [
starlight(
{
favicon: "/ico.svg",
title: "C3",
customCss: ["./src/content/docs.css"],
expressiveCode: {
shiki: {
langs: [JSON.parse(fs.readFileSync("./c3-grammar.json", "utf-8"))],
themes: {
light: 'github-light',
dark: 'github-dark',
},
},
},
}),
],
integrations: [
starlight(
{
favicon: "/ico.svg",
title: "C3",
customCss: ["./src/content/docs.css"],
expressiveCode: {
shiki: {
langs: [JSON.parse(fs.readFileSync("./c3-grammar.json", "utf-8"))],
themes: {
light: 'github-light',
dark: 'github-dark',
},
},
},
}),
],

vite: {
plugins: [tailwindcss()]
}
})
vite: {
plugins: [tailwindcss()]
}
})
Loading