Aucune description
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.
Reinhard Müller 0953ce99bb Add new script to build everything that is not up to date il y a 1 mois
status change ignoring and keeping of folders to prevent dirty directories when dealing with the fsfe-website git and its .gitignore il y a 1 an
.gitignore Add a docker dev setup (#3) il y a 1 an
Dockerfile Removes less from docker (#5) il y a 1 an
LICENSE adding README and license il y a 3 ans
README.md Add a docker dev setup (#3) il y a 1 an
config.cfg.docker Add a docker dev setup (#3) il y a 1 an
config.cfg.sample fix paths il y a 1 an
create-mime.assign.pl initial commit il y a 3 ans
docker-cmd.sh Removes less from docker (#5) il y a 1 an
docker-compose.yml Add a docker dev setup (#3) il y a 1 an
docker-setup.sh Replace /bin/bash with /usr/bin/env bash (#4) il y a 1 an
fsfe-build.sh Add new script to build everything that is not up to date il y a 1 mois
fsfe-preview.sh Symlink instead of copy static files to destination il y a 1 an
lighttpd-fsfe.conf.sample fix paths il y a 1 an
pywebserver-fsfe.py adding option to use python simplehttp webserver module which doesn't require users to install lighttpd il y a 3 ans

README.md

FSFE Website Local Build

This is a collection of scripts, tools and configuration files necessary to build fsfe.org websites locally.

Full instructions can be found in FSFE’s wiki: https://wiki.fsfe.org/TechDocs/Mainpage/BuildLocally

Docker based development environment

For convenience local development you may want to use the docker contaienr provided by this repo.

The container contains everything you need to work on the website including serving a preview, building the static pages and the CSS files.

Requirements

Website Dev Instructions

Initial set up

Just run the following command for the initial setup:

./docker-setup.sh

⚠ The command may run some hours, since it does the initial full build of the website.

Development

Spin up the container (⚠ takes some minutes):

docker-compose up

The website should now be available on your machine under http://127.0.0.1:8000/.

Build a single page after changes (e.g. index.de.xhtml):

docker exec \
    --workdir /fsfe-local-build/fsfe.org \
    fsfe-local-build \
    bash ../fsfe-preview.sh ../fsfe-website/index.de.xhtml

Style modifications in fsfe-website/look trigger a re build of the styles. After modifications a page reload shoud show the changes.