Static website for the Language Technologies Research Centre (LTRC) at IIIT Hyderabad. Built with Astro 5.
npm install
npm run dev # local dev server
npm run build # production build to dist/
npm run preview # preview the production build
Requires Node 18+.
To update your own profile, add yourself, or move your listing to alumni, follow the contribution guide. It explains where to edit your entry and what each profile field controls.
All site content lives in YAML files under content/. No code changes needed for routine updates.
| File | What it controls |
|---|---|
content/site.yaml |
Site name, navigation links, footer (address, contact, socials) |
content/homepage.yaml |
Hero section (title, subtitle, image, CTA buttons) |
content/people.yaml |
All people -- faculty, staff, students, alumni |
content/events.yaml |
Upcoming and past events |
content/news.yaml |
News items |
content/labs/*.yaml |
Per-lab pages (overview, research areas, projects, publications) |
Each YAML file is validated against a Zod schema in src/content.config.ts. The build will fail with a clear error if a required field is missing or has the wrong type.
content/people.yaml is the single source of truth for all person data. Each person has a type (faculty, staff, phd, ms, btech, alumni) and an optional labs array linking them to one or more labs. Lab detail pages pull their people section from this file -- there is no duplication.
The Alumni listing can be filtered by graduation year and sorted by year or name.
Add an optional graduation_year: 2025 (an unquoted four-digit integer) to a
alumni profile to include it in year filtering. Omit unknown years; they appear last
when sorting by year. See the contribution guide for details.
content/events.yaml has upcoming and past arrays. The homepage pulls upcoming events from the same file.
- Create
content/labs/your-lab.yamlfollowing the structure of existing lab files (name, slug, tagline, description, overview, research_areas, projects, publications). - Add people to
content/people.yamlwithlabs: ["Your Lab Name"]. - Optionally add the lab to the nav dropdown in
content/site.yaml.
The lab detail page at /labs/<slug> and the labs index page are generated automatically.
npm run build produces a fully static site in dist/. Deploy to any static host (Netlify, Vercel, GitHub Pages, a plain web server, etc.).
The server source checkout is /srv/ltrc/website; Nginx serves the built files
from /var/www/ltrc. Run scripts/deploy-server.sh on that server as dan
or a maintainer who can write both locations:
bash /srv/ltrc/website/scripts/deploy-server.sh --dry-run
bash /srv/ltrc/website/scripts/deploy-server.shThe script requires a clean main checkout, pulls origin/main with fast-forward
only, installs locked dependencies, builds, and syncs the output. It refuses to
publish local commits ahead of origin/main, and a lock prevents overlapping
runs. A failed install or build stops before publishing. Dry run still pulls
and builds, but only previews changes to published files.
Publishing preserves /plo, /sambhashana, and /vi_plo_test, including their
contents. Other stale Astro files are removed. Nginx needs no restart for static
file updates. This is a manual deployment command, separate from the GitHub
Pages workflow; no CI or automatic server deployment is configured by it.