README.md 1.42 KB
Newer Older
1
This repository contains all the sources needed to maintain the Debian blog
Ana Guerrero López's avatar
Ana Guerrero López committed
2
https://bits.debian.org and instructions to build the site.
3
4


Ana Guerrero López's avatar
Ana Guerrero López committed
5
## Contents
6

Ana Guerrero López's avatar
Ana Guerrero López committed
7
8
9
10
11
12
13
14
15
16
		Makefile
		pelicanconf.py  configuration file for pelican
		publishconf.py  publishing configuration file for pelican
		theme-bits/     contains the blog's theme and the templates used.
		content/        source files for the posts
		content/pages/  source files the static pages
		content/2013/   source files for the blog posts from 2013
		discarded/      source files for discarded blog posts
		output/         should be always empty, it is for generate the blog locally
		plugins/        pelican plugins
17
18


Ana Guerrero López's avatar
Ana Guerrero López committed
19
## Testing locally
20

Ana Guerrero López's avatar
Ana Guerrero López committed
21
* Install pelican
22

Ana Guerrero López's avatar
Ana Guerrero López committed
23
* Clone this repository
24

Ana Guerrero López's avatar
Ana Guerrero López committed
25
		$ git clone https://salsa.debian.org/publicity-team/bits.git && cd bits
26

Ana Guerrero López's avatar
Ana Guerrero López committed
27
* Build the site:
28

Ana Guerrero López's avatar
Ana Guerrero López committed
29
		$ make html
30

Ana Guerrero López's avatar
Ana Guerrero López committed
31
* Serve it locally to see if it's rendered properly:
32

Ana Guerrero López's avatar
Ana Guerrero López committed
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
		$ make serve

* Open <http://localhost:8000> in your browser.


## Updating the blog in dillon.d.o

This is only valid for people in the publicity group (the group of Linux
users in Debian machines).

* Log in dillon.debian.org and get a copy of the bits repository
or update your current copy:

		$ git clone https://salsa.debian.org/publicity-team/bits.git

* Execute:

		$ cd bits
		$ make mpublish

This will remove all the files at `/srv/bits-master.debian.org/htdocs`
and will regenerate a new copy of the website and propagate update
to all the static mirrors.