Skip to content

Commit a05afaa

Browse files
committed
New astro site
1 parent c927d60 commit a05afaa

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

47 files changed

+9446
-476
lines changed

.github/workflows/deploy.yml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
# see https://docs.astro.build/en/guides/deploy/github/
2+
3+
name: Deploy to GitHub Pages
4+
5+
on:
6+
# Trigger the workflow every time you push to the `main` branch
7+
# Using a different branch name? Replace `main` with your branch’s name
8+
push:
9+
branches: [ main ]
10+
# Allows you to run this workflow manually from the Actions tab on GitHub.
11+
workflow_dispatch:
12+
13+
# Allow this job to clone the repo and create a page deployment
14+
permissions:
15+
contents: read
16+
pages: write
17+
id-token: write
18+
19+
jobs:
20+
build:
21+
runs-on: ubuntu-latest
22+
steps:
23+
- name: Checkout your repository using git
24+
uses: actions/checkout@v5
25+
- name: Install, build, and upload your site
26+
uses: withastro/action@v5
27+
# with:
28+
# path: . # The root location of your Astro project inside the repository. (optional)
29+
# node-version: 24 # The specific version of Node that should be used to build your site. Defaults to 22. (optional)
30+
# package-manager: pnpm@latest # The Node package manager that should be used to install dependencies and build your site. Automatically detected based on your lockfile. (optional)
31+
# build-cmd: pnpm run build # The command to run to build your site. Runs the package build script/task by default. (optional)
32+
# env:
33+
# PUBLIC_POKEAPI: 'https://pokeapi.co/api/v2' # Use single quotation marks for the variable value. (optional)
34+
35+
deploy:
36+
needs: build
37+
runs-on: ubuntu-latest
38+
environment:
39+
name: github-pages
40+
url: ${{ steps.deployment.outputs.page_url }}
41+
steps:
42+
- name: Deploy to GitHub Pages
43+
id: deployment
44+
uses: actions/deploy-pages@v4

.gitignore

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,24 @@
1+
# build output
2+
dist/
3+
# generated types
4+
.astro/
15

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
22+
23+
# jetbrains setting folder
24+
.idea/

.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", "unifiedjs.vscode-mdx"],
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+
}

404.html

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

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
# nicknettleton.github.io
2-
NickNettleton.com web page
2+
3+
NickNettleton.com website
-276 KB
Binary file not shown.

astro.config.mjs

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
// @ts-check
2+
3+
import mdx from '@astrojs/mdx';
4+
import sitemap from '@astrojs/sitemap';
5+
import { defineConfig } from 'astro/config';
6+
7+
import tailwindcss from '@tailwindcss/vite';
8+
9+
import react from '@astrojs/react';
10+
import remarkMath from "remark-math";
11+
import rehypeKatex from "rehype-katex";
12+
13+
import { remarkReadingTime } from './remark-reading-time.mjs';
14+
15+
16+
import icon from 'astro-icon';
17+
18+
// https://astro.build/config
19+
export default defineConfig({
20+
site: 'https://nicknettleton.github.io', // see https://docs.astro.build/en/guides/deploy/github/
21+
// base: '/nicknettleton.github.io', // not needed, see above
22+
integrations: [mdx(), sitemap(), react(), icon()],
23+
24+
vite: {
25+
plugins: [tailwindcss()],
26+
},
27+
markdown: {
28+
remarkPlugins: [
29+
remarkReadingTime,
30+
remarkMath,
31+
// remarkToc,
32+
// [remarkCollapse, { test: "Table of contents" }],
33+
],
34+
rehypePlugins: [rehypeKatex],
35+
},
36+
});

0 commit comments

Comments
 (0)