Welcome to the repository containing the webpage of Computer Scientists at Uppsala University.
$ git clone [email protected]:uppsaladatavetare/datavetenskap.nu.git
$ cd datavetenskap.nu
$ virtualenv env
$ . env/bin/activate
$ pip install -r requirements.txt
Recompile upon modification and serve locally (the site should be available at http://localhost:8000):
$ make devserver
When you are done, stop the server:
$ make stopserver
- Fork this repositry.
- Clone your fork:
git clone [email protected]:YOUR_USERNAME/datavetenskap.nu.git
- Create a new branch:
git checkout -b some-improvement
- Create a reStructuredText file with your own content:
- Blog posts at
content/blog/YEAR/MONTH-DAY-SLUG.rst
- Articles at
content/article/SLUG.rst
- Blog posts at
- Commit the changes.
- Push the changes to your fork.
- Create a pull request and set the target branch to
origin/master
. - Await approval from one of the members of @uppsaladatavetare/website-managers.
As soon the managers have reviewed and merged your contribution, it will appear on the website.
WordPress is a cool piece of software, but is a bit of an overkill for our simple site that is basically static. What we do here instead is to store all the content in form of text files (in reStructuredText) and transform them into a static webpage using Pelican. The main advantage of this approach is that we now get a site that anyone can easily contribute to using Git.