Switch to quartz

This commit is contained in:
ryan 2026-01-22 18:07:28 -08:00
parent c2108c4f83
commit 455acb3b74
339 changed files with 5000 additions and 4288 deletions

19
.direnv/bin/nix-direnv-reload Executable file
View File

@ -0,0 +1,19 @@
#!/usr/bin/env bash
set -e
if [[ ! -d "/home/ryan/Documents/Code/blog" ]]; then
echo "Cannot find source directory; Did you move it?"
echo "(Looking for "/home/ryan/Documents/Code/blog")"
echo 'Cannot force reload with this script - use "direnv reload" manually and then try again'
exit 1
fi
# rebuild the cache forcefully
_nix_direnv_force_reload=1 direnv exec "/home/ryan/Documents/Code/blog" true
# Update the mtime for .envrc.
# This will cause direnv to reload again - but without re-building.
touch "/home/ryan/Documents/Code/blog/.envrc"
# Also update the timestamp of whatever profile_rc we have.
# This makes sure that we know we are up to date.
touch -r "/home/ryan/Documents/Code/blog/.envrc" "/home/ryan/Documents/Code/blog/.direnv"/*.rc

View File

@ -0,0 +1 @@
/nix/store/01x5k4nlxcpyd85nnr0b9gm89rm8ff4x-source

View File

@ -0,0 +1 @@
/nix/store/2snh2qw3d3z9af6snydqcav79fcm9wig-source

View File

@ -0,0 +1 @@
/nix/store/a47in4d39ig0vxdv8p3lsxbllpl1vvny-source

View File

@ -0,0 +1 @@
/nix/store/yj1wxm9hh8610iyzqnz75kvs6xl8j3my-source

View File

@ -0,0 +1 @@
/nix/store/sal211jvvqhwiclcs2ndmhg6y3wq0syy-nix-shell-env

File diff suppressed because it is too large Load Diff

34
.gitignore vendored
View File

@ -1,25 +1,11 @@
# build output
dist/
# generated types
.astro/
# dependencies
node_modules/
# logs
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*
# environment variables
.env
.env.production
# macOS-specific files
.DS_Store
# Direnv junk
.direnv/*
*/.direnv/*
.gitignore
node_modules
public
prof
tsconfig.tsbuildinfo
.obsidian
.quartz-cache
private/
.replit
replit.nix

View File

@ -1,12 +1,11 @@
FROM node:lts AS runtime
WORKDIR /app
FROM node:22-slim AS builder
WORKDIR /usr/src/app
COPY package.json .
COPY package-lock.json* .
RUN npm ci
FROM node:22-slim
WORKDIR /usr/src/app
COPY --from=builder /usr/src/app/ /usr/src/app/
COPY . .
RUN npm install
RUN npm run build
ENV HOST=0.0.0.0
ENV PORT=4321
EXPOSE 4321
CMD node ./dist/server/entry.mjs
CMD ["npx", "quartz", "build", "--serve"]

View File

@ -1,43 +1,17 @@
# Astro Starter Kit: Minimal
# Quartz v4
```sh
pnpm create astro@latest -- --template minimal
```
> “[One] who works with the door open gets all kinds of interruptions, but [they] also occasionally gets clues as to what the world is and what might be important.” — Richard Hamming
> 🧑‍🚀 **Seasoned astronaut?** Delete this file. Have fun!
Quartz is a set of tools that helps you publish your [digital garden](https://jzhao.xyz/posts/networked-thought) and notes as a website for free.
## 🚀 Project Structure
🔗 Read the documentation and get started: https://quartz.jzhao.xyz/
Inside of your Astro project, you'll see the following folders and files:
[Join the Discord Community](https://discord.gg/cRFFHYye7t)
```text
/
├── public/
├── src/
│ └── pages/
│ └── index.astro
└── package.json
```
## Sponsors
Astro looks for `.astro` or `.md` files in the `src/pages/` directory. Each page is exposed as a route based on its file name.
There's nothing special about `src/components/`, but that's where we like to put any Astro/React/Vue/Svelte/Preact components.
Any static assets, like images, can be placed in the `public/` directory.
## 🧞 Commands
All commands are run from the root of the project, from a terminal:
| Command | Action |
| :------------------------ | :----------------------------------------------- |
| `pnpm install` | Installs dependencies |
| `pnpm dev` | Starts local dev server at `localhost:4321` |
| `pnpm build` | Build your production site to `./dist/` |
| `pnpm preview` | Preview your build locally, before deploying |
| `pnpm astro ...` | Run CLI commands like `astro add`, `astro check` |
| `pnpm astro -- --help` | Get help using the Astro CLI |
## 👀 Want to learn more?
Feel free to check [our documentation](https://docs.astro.build) or jump into our [Discord server](https://astro.build/chat).
<p align="center">
<a href="https://github.com/sponsors/jackyzha0">
<img src="https://cdn.jsdelivr.net/gh/jackyzha0/jackyzha0/sponsorkit/sponsors.svg" />
</a>
</p>

View File

@ -1,20 +0,0 @@
// @ts-check
import { defineConfig } from 'astro/config';
import mdx from '@astrojs/mdx';
import node from '@astrojs/node';
import tailwindcss from '@tailwindcss/vite';
// https://astro.build/config
export default defineConfig({
site: 'https://ryanpandya.com',
integrations: [mdx()],
adapter: node({
mode: 'standalone'
}),
vite: {
plugins: [tailwindcss()],
},
});

View File

@ -1,5 +1,5 @@
{
"syncToken": "s15_108_10_8_22_1_32_28_0_1_1",
"syncToken": "s16_124_12_8_23_1_33_29_0_1_1",
"filter": null,
"appserviceUsers": {},
"appserviceTransactions": {},

1299
bun.lock

File diff suppressed because it is too large Load Diff

4
content/index.md Normal file
View File

@ -0,0 +1,4 @@
---
title: Hi, I'm Ryan
---

3
content/index.md~ Normal file
View File

@ -0,0 +1,3 @@
# Ryan Pandya
More to come.

View File

Before

Width:  |  Height:  |  Size: 129 KiB

After

Width:  |  Height:  |  Size: 129 KiB

View File

Before

Width:  |  Height:  |  Size: 132 KiB

After

Width:  |  Height:  |  Size: 132 KiB

View File

Before

Width:  |  Height:  |  Size: 76 KiB

After

Width:  |  Height:  |  Size: 76 KiB

View File

Before

Width:  |  Height:  |  Size: 88 KiB

After

Width:  |  Height:  |  Size: 88 KiB

View File

Before

Width:  |  Height:  |  Size: 572 KiB

After

Width:  |  Height:  |  Size: 572 KiB

View File

Before

Width:  |  Height:  |  Size: 108 KiB

After

Width:  |  Height:  |  Size: 108 KiB

View File

Before

Width:  |  Height:  |  Size: 171 KiB

After

Width:  |  Height:  |  Size: 171 KiB

View File

Before

Width:  |  Height:  |  Size: 90 KiB

After

Width:  |  Height:  |  Size: 90 KiB

View File

Before

Width:  |  Height:  |  Size: 150 KiB

After

Width:  |  Height:  |  Size: 150 KiB

View File

Before

Width:  |  Height:  |  Size: 72 KiB

After

Width:  |  Height:  |  Size: 72 KiB

View File

Before

Width:  |  Height:  |  Size: 36 KiB

After

Width:  |  Height:  |  Size: 36 KiB

View File

Before

Width:  |  Height:  |  Size: 36 KiB

After

Width:  |  Height:  |  Size: 36 KiB

View File

Before

Width:  |  Height:  |  Size: 35 KiB

After

Width:  |  Height:  |  Size: 35 KiB

View File

Before

Width:  |  Height:  |  Size: 139 KiB

After

Width:  |  Height:  |  Size: 139 KiB

View File

Before

Width:  |  Height:  |  Size: 134 KiB

After

Width:  |  Height:  |  Size: 134 KiB

Some files were not shown because too many files have changed in this diff Show More