Editing the Einstein Toolkit website
Contents
Overview
The Einstein Toolkit website is at https://einsteintoolkit.org. The source is hosted in a subversion repository at https://svn.einsteintoolkit.org/www. Email users@einsteintoolkit.org if you want commit access. Authentication is via a CCT account.
To make a change, first check out the website. You will need to check out the entire website, as the pages link to absolute URLs in /global.
svn checkout --username <username> https://svn.einsteintoolkit.org/www EinsteinToolkitWeb
(you can of course use git-svn if you prefer).
Since the website uses PHP, you will need to use a web server to browse your local copy of the website.
Apache
If you are comfortable with Apache, you can set up a virtual host for the ET. You may find the following fragment of /etc/apache2/extra/httpd-vhosts.conf useful as a starting point.
<VirtualHost *:80> DocumentRoot "/path/to/Sites/EinsteinToolkitWeb" ServerName einsteintoolkit.local ErrorLog "/var/log/apache2/einsteintoolkit.localhost-error_log" CustomLog "/var/log/apache2/einsteintoolkit.localhost-access_log" common </VirtualHost>
Add
127.0.0.1 einsteintoolkit.local
to /etc/hosts and visit https://einsteintoolkit.local.
Docker
If you use docker, you can
docker run -it --rm -v $PWD/EinsteinToolkitWeb:/var/www/html -p 8080:80 --name etwebsite php:5.6-apache
then visit
http://<docker-ip>:8080
Committing
When you have checked your changes, just commit, and the ET website will be updated automatically.