Welcome to the repository for the EuroPython website! We use Astro in combination with pnpm to manage dependencies.
To get started, clone the repository and run pnpm install to fetch all the
dependencies. Then, use pnpm run dev to start the development server.
The website will be available at http://localhost:4321.
To ensure code quality and consistency, we use pre-commit hooks. Follow these
steps to set up prek on your local environment:
- Install
prek. You can follow the instructions from prek.j178.dev. - Run
prek installin the root of your local repository. - Now,
prekwill run automatically ongit commit. You can also run it manually on all files usingprek run --all-files.
This will help maintain a consistent coding style and catch common issues before submission.
If you want to run this in docker, run:
$ docker compose build
$ docker compose upThe website will be available at http://localhost:4321.
Docker Compose mounts volumes from your file system to enable live reload. If you're having problems starting the container, try this:
# Clean everything
docker compose down -v # Remove volumes
docker image rmi website-web # Clean unused images
docker rm website-web # Clean unused containers
# Remove local pnpm store if it exists
rm -rf .pnpm-store
# Rebuild from scratch
docker compose build --no-cache
docker compose up
The content of the site is store in this repository. We are using Astro's
content collections to manage the content. The collections are configure inside
src/content/config.ts.
Pages are stored in the src/content/pages directory. Each page is a md file
with frontmatter.
Meanwhile, our important deadlines β° are located inside the
src/content/deadlines directory.