Skip to content

Commit e7ba241

Browse files
committed
Initial content.
0 parents  commit e7ba241

35 files changed

+12033
-0
lines changed

.github/workflows/pages.yml

Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
name: GitHub Pages Build
2+
3+
on:
4+
push:
5+
tags:
6+
- "v*.*"
7+
workflow_dispatch:
8+
9+
permissions:
10+
contents: read
11+
pages: write
12+
id-token: write
13+
14+
concurrency:
15+
group: "pages"
16+
cancel-in-progress: false
17+
18+
jobs:
19+
build:
20+
runs-on: ubuntu-latest
21+
defaults:
22+
run:
23+
working-directory: .
24+
steps:
25+
- name: Checkout
26+
uses: actions/checkout@v4
27+
28+
- name: Setup Node
29+
uses: actions/setup-node@v4
30+
with:
31+
node-version: "lts/*"
32+
cache: npm
33+
cache-dependency-path: "./package-lock.json"
34+
35+
- name: Restore cache
36+
uses: actions/cache@v4
37+
with:
38+
path: |
39+
~/.npm
40+
${{ github.workspace }}/.next/cache
41+
# Generate a new cache whenever packages or source files change.
42+
key: ${{ runner.os }}-nextjs-${{ hashFiles('**/package-lock.json') }}-${{ hashFiles('**/*.js', '**/*.jsx', '**/*.ts', '**/*.tsx') }}
43+
# If source files changed but packages didn't, rebuild from a prior cache.
44+
restore-keys: |
45+
${{ runner.os }}-nextjs-${{ hashFiles('**/package-lock.json') }}-
46+
47+
- name: Install deps
48+
run: npm ci
49+
50+
- name: Build with Astro
51+
env:
52+
PUPPETEER_CACHE_DIR: ./node_modules/.puppeteer_cache
53+
uses: withastro/action@v3
54+
55+
deploy:
56+
runs-on: ubuntu-latest
57+
needs: build
58+
environment:
59+
name: github-pages
60+
url: ${{ steps.deployment.outputs.page_url }}
61+
steps:
62+
- name: Deploy to GitHub Pages
63+
id: deployment
64+
uses: actions/deploy-pages@v4

.gitignore

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# build output
2+
dist/
3+
# generated types
4+
.astro/
5+
6+
# dependencies
7+
node_modules/
8+
9+
# logs
10+
npm-debug.log*
11+
yarn-debug.log*
12+
yarn-error.log*
13+
pnpm-debug.log*
14+
15+
16+
# environment variables
17+
.env
18+
.env.production
19+
20+
# macOS-specific files
21+
.DS_Store

.vscode/extensions.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"recommendations": ["astro-build.astro-vscode"],
3+
"unwantedRecommendations": []
4+
}

.vscode/launch.json

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"version": "0.2.0",
3+
"configurations": [
4+
{
5+
"command": "./node_modules/.bin/astro dev",
6+
"name": "Development server",
7+
"request": "launch",
8+
"type": "node-terminal"
9+
}
10+
]
11+
}

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# Rubinius Website

astro.config.mjs

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
// @ts-check
2+
import { defineConfig } from 'astro/config';
3+
import solidJs from '@astrojs/solid-js';
4+
import markdoc from '@astrojs/markdoc';
5+
6+
export default defineConfig({
7+
output: "static",
8+
site: 'https://rubinius.com',
9+
base: '/',
10+
11+
integrations: [solidJs(), markdoc()],
12+
});

markdoc.config.ts

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
import { defineMarkdocConfig, component } from "@astrojs/markdoc/config";
2+
3+
export default defineMarkdocConfig({
4+
tags: {
5+
mermaid: {
6+
// map to an Astro component
7+
render: component("./src/components/content/Mermaid.astro"),
8+
// we let authors either do {% mermaid %}...{% /mermaid %} or pass code=""
9+
attributes: {
10+
code: { type: String, required: false },
11+
title: { type: String, required: false },
12+
},
13+
},
14+
},
15+
});

0 commit comments

Comments
 (0)