Personal research site: research, publications, projects, blog, CV. Built with Astro as static HTML and hosted on GitHub Pages.
Requires Node 22.12 or newer.
npm install
npm run dev # http://localhost:4321
npm run build # static site in dist/
npm run preview # serve dist/ locally| Path | What it holds |
|---|---|
src/pages/ |
One file per route |
src/layouts/BaseLayout.astro |
Page shell: SEO tags, theme script, nav, footer |
src/components/ |
Small reusable pieces |
src/styles/global.css |
Design tokens (light and dark) and base styles |
src/site.ts |
Site name, default description, nav items |
design-reference/landing-scene-spec.md |
Spec for the animated landing hero (with the reference files beside it) |
All content lives in src/content/ and is edited through the admin at
/admin (Decap CMS). Each save commits to main, and the deploy workflow
rebuilds the site. Only GitHub accounts with write access to this repository can save.
Uploaded images go to public/uploads/.
To try the admin on your own computer without logging in:
npx decap-server@3.11.3 # terminal 1: local file proxy on :8081
npm run dev # terminal 2: then open http://localhost:4321/admin/index.htmlLocal saves write files directly; nothing is committed until you commit.
If a save leaves content inconsistent (for example, a research entry whose status disagrees with its publication), the build stops with a plain message and the live site keeps its previous version until the content is fixed (the failed run shows in the repo's Actions tab).
GitHub Pages serves the site at https://docalnahiyan.github.io. The workflow in
.github/workflows/deploy.yml builds and publishes it on every push to main,
including saves from /admin. (Repo Settings → Pages → Source must be
"GitHub Actions".)
The admin's "Login with GitHub" is handled by a small sign-in service in
oauth-proxy/, deployed as the Netlify site alnahiyan-admin (see
oauth-proxy/README.md). Its GitHub OAuth credentials are Netlify environment
variables, never committed.
The previous React version of the site is kept as the tag archive/old-react-site.
© 2026 Al-Nahiyan Khushbu. All rights reserved: the code, design and content (text, CV, papers, photos and everything else in this repository). You're welcome to read the code and learn from it; copying, modifying or reusing any of it requires written permission. See LICENSE.