Skip to content

Commit

Permalink
Update URLs in code
Browse files Browse the repository at this point in the history
  • Loading branch information
onrirr committed Feb 17, 2024
1 parent 02c7f4c commit dccc625
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 12 deletions.
1 change: 0 additions & 1 deletion astro.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import fs from "node:fs";
// https://astro.build/config
export default defineConfig({
site: "https://c3-lang.org",
base: "/c3-web",
integrations: [
tailwind({
applyBaseStyles: false,
Expand Down
4 changes: 2 additions & 2 deletions src/components/community.astro
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@
>
<a
class="flex flex-col h-full text-center rounded-md hover:bg-gray-100 p-4 sm:p-6 dark:hover:bg-white/[.05]"
href="/c3-web/references/"
href="references/"
>
<box-icon
class="w-24 h-24 mx-auto text-black dark:text-white"
Expand All @@ -171,7 +171,7 @@
</a>
<a
class="flex flex-col h-full text-center rounded-md hover:bg-gray-100 p-4 sm:p-6 dark:hover:bg-white/[.05]"
href="/c3-web/guide/"
href="guide/"
>
<box-icon
class="w-24 h-24 mx-auto text-black dark:text-white"
Expand Down
6 changes: 3 additions & 3 deletions src/components/hero.astro
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import Navbar from "./navbar.astro";
class="flex justify-center content-center font-bold text-stone-950 text-2xl md:text-5xl lg:text-6xl dark:text-gray-200"
>
<img
src="https://raw.githubusercontent.com/onrirr/c3-web/a34e01d91fcaa6c7964efbe8e865ff41409a2b3a/public/logo.svg"
src="https://raw.githubusercontent.com/onrirra34e01d91fcaa6c7964efbe8e865ff41409a2b3a/public/logo.svg"
class="flex justfity-center"
/>
</h1>
Expand All @@ -26,7 +26,7 @@ import Navbar from "./navbar.astro";
<div class="mt-8 grid gap-3 w-full sm:inline-flex sm:justify-center">
<a
class="inline-flex justify-center items-center gap-x-3 text-center bg-gradient-to-tl from-blue-600 to-violet-600 hover:from-violet-600 hover:to-blue-600 border border-transparent text-white text-sm font-medium rounded-md focus:outline-none focus:ring-2 focus:ring-blue-600 focus:ring-offset-2 focus:ring-offset-white py-3 px-4 dark:focus:ring-offset-stone-950"
href="/c3-web/guide"
href="guide"
>
Get started
<svg
Expand Down Expand Up @@ -87,7 +87,7 @@ import Navbar from "./navbar.astro";
</svg>
<a
class="inline-flex items-center gap-x-1.5 text-sm text-blue-600 decoration-2 hover:underline font-medium"
href="/c3-web/references/getting-started/prebuilt-binaries/"
href="references/getting-started/prebuilt-binaries/"
>
Installation Guide
<svg
Expand Down
7 changes: 3 additions & 4 deletions src/components/navbar.astro
Original file line number Diff line number Diff line change
Expand Up @@ -168,16 +168,15 @@
>
<a
class="font-medium text-gray-500 hover:text-gray-400 sm:py-6 dark:text-gray-400 dark:hover:text-gray-500"
href="/c3-web/guide/">the C3 Guide</a
href="guide/">the C3 Guide</a
>
<a
class="font-medium text-gray-500 hover:text-gray-400 sm:py-6 dark:text-gray-400 dark:hover:text-gray-500"
href="/c3-web/references/docs/examples/">Examples</a
href="references/docs/examples/">Examples</a
>
<a
class="font-medium text-gray-500 hover:text-gray-400 sm:py-6 dark:text-gray-400 dark:hover:text-gray-500"
href="/c3-web/references/getting-started/prebuilt-binaries/"
>Download</a
href="references/getting-started/prebuilt-binaries/">Download</a
>

<div
Expand Down
2 changes: 1 addition & 1 deletion src/content/docs/guide/my-first-project.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Let's create our first C3 project. We will create a simple calculator app that w
But before that we need to install C3C, the compiler for C3.

:::note[Haven't installed C3C yet?]
You can follow [this link](/c3-web/references/getting-started/prebuilt-binaries/) to install the compiler on Mac, Windows and Linux.
You can follow [this link](references/getting-started/prebuilt-binaries/) to install the compiler on Mac, Windows and Linux.
:::
## Creating a new project

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ sidebar:
order: 3
---

You can use one of the precompiled binaries or [Build the compiler from source](/c3-web/references/getting-started/setup).
You can use one of the precompiled binaries or [Build the compiler from source](references/getting-started/setup).

# Prebuilt binaries
- Windows x64 [download](https://github.com/c3lang/c3c/releases/download/latest/c3-windows.zip), [install instructions](https://github.com/c3lang/c3c#installing-on-windows-with-precompiled-binaries).
Expand Down
1 change: 1 addition & 0 deletions src/pages/index.astro
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ import Community from "../components/community.astro";
name="og:description"
content="C3 is a simple, fast, and modern programming language."
/>

<meta name="og:image" content="/logo.svg" />
<link rel="icon" href="/logo.svg" />
<title>C3 | An evolution, not a revolution</title>
Expand Down

0 comments on commit dccc625

Please sign in to comment.