Skip to content

Commit 8852ecb

Browse files
Redesign website from the ground up (#3)
* It works... I guess? * design :) * cross my fingers and hope that github actions works * fix a little * feat: fix workflow two * feat: fix three? * navbar * ykw I think it's ready to PR * Update README.md * Update CNAME * Update astro.config.mjs * Update .gitignore * Fix WIP #1 * Final Gitignore update
1 parent c6b9342 commit 8852ecb

22 files changed

Lines changed: 4069 additions & 135 deletions

.github/workflows/deploy.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Deploy to GitHub Pages
2+
3+
on:
4+
push:
5+
branches: [master]
6+
workflow_dispatch:
7+
8+
permissions:
9+
contents: read
10+
pages: write
11+
id-token: write
12+
13+
jobs:
14+
build:
15+
runs-on: ubuntu-latest
16+
steps:
17+
- name: Checkout your repository using git
18+
uses: actions/checkout@v4
19+
- name: Install, build, and upload your site
20+
uses: withastro/action@v2
21+
with:
22+
node-version: 20
23+
package-manager: pnpm@latest
24+
25+
deploy:
26+
needs: build
27+
runs-on: ubuntu-latest
28+
environment:
29+
name: github-pages
30+
url: ${{ steps.deployment.outputs.page_url }}
31+
steps:
32+
- name: Deploy to GitHub Pages
33+
id: deployment
34+
uses: actions/deploy-pages@v4

.gitignore

Lines changed: 30 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,30 @@
1-
/.idea
1+
# build output
2+
dist/*
3+
4+
# generated types
5+
.astro/*
6+
7+
# dependencies
8+
node_modules/*
9+
10+
# logs
11+
npm-debug.log*
12+
yarn-debug.log*
13+
yarn-error.log*
14+
pnpm-debug.log*
15+
16+
# environment variables
17+
.env
18+
.env.production
19+
20+
# macOS-specific files
21+
.DS_Store
22+
23+
# jetbrains setting folder
24+
.idea/*
25+
26+
# visual studio code
27+
.vscode/*
28+
29+
# dev stuff
30+
legacy/*

.prettierrc.mjs

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
/** @type {import("prettier").Config} */
2+
export default {
3+
plugins: ['prettier-plugin-astro'],
4+
overrides: [
5+
{
6+
files: '*.astro',
7+
options: {
8+
parser: 'astro',
9+
},
10+
},
11+
],
12+
};

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# ornithemc.github.io
2+
3+
the cool website that ornithe has

astro.config.mjs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
import { defineConfig } from "astro/config";
2+
3+
import tailwind from "@astrojs/tailwind";
4+
5+
// https://astro.build/config
6+
export default defineConfig({
7+
integrations: [tailwind()],
8+
site: "https://ornithemc.net",
9+
});

develop.html

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

index.html

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

package.json

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
{
2+
"name": "src",
3+
"type": "module",
4+
"version": "0.0.1",
5+
"scripts": {
6+
"dev": "astro dev",
7+
"start": "astro dev",
8+
"build": "astro build",
9+
"preview": "astro preview",
10+
"astro": "astro"
11+
},
12+
"dependencies": {
13+
"@astrojs/tailwind": "^5.1.0",
14+
"astro": "^4.14.5",
15+
"tailwindcss": "^3.4.10"
16+
},
17+
"devDependencies": {
18+
"prettier": "^3.3.3",
19+
"prettier-plugin-astro": "^0.14.1",
20+
"prettier-plugin-tailwindcss": "^0.6.6"
21+
}
22+
}

0 commit comments

Comments
 (0)