Skip to content
osgeoukPublic

About

The osgeo.uk website.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

OSGeo:UK

The website of OSGeo:UK, the UK chapter of the Open Source Geospatial Foundation. Built with Astro and deployed to GitHub Pages.

Requirements

  • Node.js 24 or newer
  • pnpm — the repo has a pnpm-lock.yaml, so pnpm is the supported package manager. Install it with npm install -g pnpm or corepack enable pnpm.

Clone

git clone https://github.com/dbauszus-glx/osgeo-astro.git
cd osgeo-astro

Install

pnpm install

sharp 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.

Run

pnpm dev

The 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.

Commands

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

Project structure

├── 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.

Newsletter archive

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.

Deployment

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.

About

The osgeo.uk website.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Contributors

Languages