nicesandeep.com
git clone --recurse-submodules https://github.com/sanman1k98/www.git
[!NOTE] This project uses a private git submodule for the "cv" content collection which is used to generate the
/resume
page.
/
βββ .github/ # Workflows that deploy the site
β βββ ...
βββ scripts/ # CI/CD related
β βββ ...
βββ public/
β βββ ...
βββ src/ # Has a `tsconfig.json` path alias "@/*"
β βββ components/
β β βββ ...
β βββ content/
β β βββ cv/ # -> https://github.com/sanman1k98/cv.git
β β βββ info/ # Site links and socials
β β βββ photos/ # Contains an `index.yaml` and image files
β β βββ config.ts # Defines collections using "src/schemas"
β βββ layouts/
β β βββ BaseLayout.astro # HTML and slot for `<body>`
β β βββ MainLayout.astro # Components and slot for `<main>`
β βββ pages/
β β βββ photos/
β β βββ icons/[file].astro # Static file endpoint to generate favicons
β β βββ resume.astro # Uses "cv" collection entries
β β βββ index.astro # Landing page
β β βββ ...
β βββ schemas/ # Zod schemas for Astro Content Collections
β β βββ cv.ts # Exports multiple schemas for different types of CV entries
β β βββ info.ts # Site links and socials
β β βββ photos.ts # Parses, transforms, and validates EXIF metadata for each photo
β β βββ ...
β βββ utils/
β β βββ ...
β βββ content.ts # Content Collection Entries and types
βββ package.json
βββ ...
All commands are run from the root of the project, from a terminal:
Command | Action |
---|---|
bun install |
Installs dependencies |
bun run dev |
Starts local dev server at localhost:4321 |
bun run check |
Check project for type errors |
bun run build |
Build your production site to ./dist/ |
bun run preview |
Preview your build locally, before deploying |
bun run deploy |
Build and push to trigger deployment workflow |
bun run astro ... |
Run CLI commands like astro add , astro check |
bun run astro --help |
Get help using the Astro CLI |
The site is hosted on GitHub Pages using static files in the deploy
branch. Deployments are triggered when the repository owner (me) pushes to the deploy
branch.
git
: for example, git log deploy
gh_pages
Source code is licensed under MIT.