The website of OSGeo:UK, the UK chapter of the Open Source Geospatial Foundation. Built with Astro and deployed to GitHub Pages.
- Node.js 24 or newer
- pnpm — the repo has a
pnpm-lock.yaml, so pnpm is the supported package manager. Install it withnpm install -g pnpmorcorepack enable pnpm.
git clone https://github.com/dbauszus-glx/osgeo-astro.git
cd osgeo-astropnpm installsharp and esbuild need to run their post-install build steps; these are already allowed in
pnpm-workspace.yaml, so no extra approval prompt should appear.
pnpm devThe dev server prints its address on start. Note that the site is configured with a base of
/osgeo-astro, so the local URL is http://localhost:4321/osgeo-astro — the bare
localhost:4321 returns a 404.
All commands are run from the project root.
| Command | Action |
|---|---|
pnpm install |
Install dependencies |
pnpm dev |
Start the dev server with hot reload |
pnpm build |
Build the production site to ./dist/ |
pnpm preview |
Serve the contents of ./dist/ to check a build locally |
pnpm astro ... |
Run Astro CLI commands, e.g. pnpm astro add |
├── public/ static assets served as-is
├── src/
│ ├── assets/ images, plus the newsletter archive (see below)
│ ├── components/ shared .astro components (Header, Footer, ...)
│ ├── content/ content collections: blog, events, gofundgeo, training
│ ├── layouts/ page shells
│ ├── pages/ routes — each file becomes a URL
│ ├── styles/global.css design tokens and all site styling
│ └── consts.ts site title, contact email, nav and social links
├── astro.config.mjs
└── package.json
Files in src/pages/ map directly to routes. Site-wide values — the contact address, navigation
entries, and the social links used by the footer icons — live in src/consts.ts, so that is
usually the file to edit rather than the components themselves.
Past newsletters are PDFs and complete saved HTML pages that reference their own _files/ asset
folders with relative URLs, so they cannot go through Astro's normal build. A small integration in
astro.config.mjs serves src/assets/newsletter/ under /newsletter/ during development and
copies it into dist/newsletter/ after a build.
Pushing to main triggers .github/workflows/deploy.yaml, which
builds the site and publishes it to GitHub Pages. No manual deploy step is needed.
Because the site is served from a project subpath, astro.config.mjs sets base: '/osgeo-astro'.
If the site moves to its own domain, drop base and update site to the new domain.