Skip to content

Commit fa1d877

Browse files
committed
docs: new website
1 parent dc9d4cf commit fa1d877

8 files changed

Lines changed: 2524 additions & 0 deletions

File tree

.github/workflows/website.yml

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
name: Build Website
2+
3+
on:
4+
push:
5+
paths:
6+
- 'docs/**'
7+
8+
jobs:
9+
build:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Checkout code
13+
uses: actions/checkout@v4
14+
- name: Setup Pages
15+
uses: actions/configure-pages@v4
16+
- name: Setup Node
17+
uses: actions/setup-node@v4
18+
with:
19+
node-version: 22
20+
cache: npm # or pnpm / yarn
21+
cache-dependency-path: ./docs/package-lock.json
22+
- name: Install dependencies
23+
working-directory: docs
24+
run: npm ci # or pnpm install / yarn install / bun install
25+
- name: VitePress build
26+
working-directory: docs
27+
run: |
28+
npm run build
29+
ls -l .vitepress/dist
30+
- name: Upload artifact
31+
uses: actions/upload-pages-artifact@v3
32+
with:
33+
path: docs/.vitepress/dist
34+
35+
deploy:
36+
environment:
37+
name: github-pages
38+
url: ${{ steps.deployment.outputs.page_url }}
39+
runs-on: ubuntu-latest
40+
name: Deploy
41+
if: github.ref == 'refs/heads/master'
42+
steps:
43+
- name: Deploy to GitHub Pages
44+
id: deployment
45+
uses: actions/deploy-pages@v4

.gitignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,8 @@
1010
/linux-*/
1111
/isl-*/
1212
/build/
13+
14+
# website in docs/
15+
.vitepress/dist
16+
.vitepress/cache
17+
node_modules

docs/.vitepress/config.mts

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
import { defineConfig } from 'vitepress'
2+
3+
// https://vitepress.dev/reference/site-config
4+
export default defineConfig({
5+
title: "musl dyne compilers",
6+
description: "C/C++ toolchains ready to use",
7+
themeConfig: {
8+
footer: {
9+
copyright: 'Copyright (C) 2025 <a href="https://dyne.org">Dyne.org</a> - MIT License'
10+
},
11+
// https://vitepress.dev/reference/default-theme-config
12+
nav: [
13+
{ text: 'Home', link: '/' },
14+
{ text: 'Dyne.org', link: 'https://dyne.org' },
15+
{ text: 'Musl', link: 'https://musl-libc.org' },
16+
{ text: 'GCC', link: 'https://gcc.gnu.org' }
17+
],
18+
sidebar: [
19+
{
20+
text: 'Links',
21+
items: [
22+
{ text: 'Readme', link: 'https://github.com/dyne/musl-dyne/blob/master/README.md' },
23+
{ text: 'Downloads', link: 'https://github.com/dyne/musl-dyne/releases' },
24+
{ text: 'Security', link: 'https://github.com/dyne/musl-dyne?tab=security-ov-file#readme' }
25+
]
26+
}
27+
],
28+
socialLinks: [
29+
{ icon: 'linkedin', link: 'https://www.linkedin.com/company/dyne-org' },
30+
{ icon: 'mastodon', link: 'https://toot.community/@dyne' },
31+
{ icon: 'github', link: 'https://github.com/dyne/musl-dyne' },
32+
{ icon: 'maildotru', link: 'mailto:info@dyne.org' }
33+
]
34+
},
35+
markdown: {
36+
theme: {
37+
light: "catppuccin-latte",
38+
dark: "catppuccin-mocha",
39+
}
40+
}
41+
})

docs/.vitepress/theme/custom.css

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
:root.dark img {
2+
filter: invert(1);
3+
}
4+
5+
:root:not(.dark) img {
6+
filter: invert(0);
7+
}

docs/.vitepress/theme/index.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
import DefaultTheme from "vitepress/theme";
2+
import "@catppuccin/vitepress/theme/mocha/teal.css";
3+
import "./custom.css";
4+
// import "@catppuccin/vitepress/theme/latte/rosewater.css";
5+
6+
export default DefaultTheme;

docs/index.md

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
---
2+
# https://vitepress.dev/reference/default-theme-home-page
3+
layout: home
4+
5+
hero:
6+
name: "musl dyne compilers"
7+
text: "C / C++ toolchains ready to use"
8+
tagline: Direct downloads (~50MB each) to extract into /opt/musl-dyne
9+
image:
10+
src: https://dyne.org/images/logos/black-transparent-Icon.svg
11+
alt: Hands-on, Dyne.org style
12+
actions:
13+
- theme: brand
14+
text: X86 64bit
15+
link: 'https://github.com/dyne/musl-dyne/releases/download/0.2.2/musl-dyne-x86_64_hf.tar.xz'
16+
- theme: alt
17+
text: ARM HF 32bit
18+
link: 'https://github.com/dyne/musl-dyne/releases/download/0.2.2/musl-dyne-arm_hf.tar.xz'
19+
- theme: alt
20+
text: ARM 64bit
21+
link: 'https://github.com/dyne/musl-dyne/releases/download/0.2.2/musl-dyne-arm_64.tar.xz'
22+
- theme: alt
23+
text: RISC-V 64bit
24+
link: 'https://github.com/dyne/musl-dyne/releases/download/0.2.2/musl-dyne-riscv_64.tar.xz'
25+
26+
features:
27+
- title: X86 64bit
28+
details: Lorem ipsum dolor sit amet, consectetur adipiscing elit
29+
- title: ARM 32bit
30+
details: Lorem ipsum dolor sit amet, consectetur adipiscing elit
31+
- title: ARM 64bit
32+
details: Lorem ipsum dolor sit amet, consectetur adipiscing elit
33+
- title: RISC-V 64bit
34+
details: Lorem ipsum dolor sit amet, consectetur adipiscing elit
35+
36+
---

0 commit comments

Comments
 (0)