publishconf.py 791 Bytes
Newer Older
Marco Mancini's avatar
Marco Mancini committed
1 2 3 4 5 6 7 8 9 10 11 12
#!/usr/bin/env python
# -*- coding: utf-8 -*- #
from __future__ import unicode_literals

# This file is only used if you use `make publish` or
# explicitly specify it as your config file.

import os
import sys
sys.path.append(os.curdir)
from pelicanconf import *

Matthieu Boileau's avatar
Matthieu Boileau committed
13 14 15 16 17 18 19 20 21

# Get git_branch from gitlab-ci environment variable or fallback to master
git_branch = os.environ.get('CI_COMMIT_REF_NAME', 'master')

if git_branch == 'master':
    SITEURL = 'https://calcul.math.unistra.fr'
else:
    SITEURL = 'https://calcul-dev.math.unistra.fr/{}'.format(git_branch)

Marco Mancini's avatar
Marco Mancini committed
22 23 24
RELATIVE_URLS = False

FEED_ALL_ATOM = 'feeds/all.atom.xml'
Matthieu Boileau's avatar
Matthieu Boileau committed
25
CATEGORY_FEED_ATOM = 'feeds/{slug}.atom.xml'
Marco Mancini's avatar
Marco Mancini committed
26

27
DELETE_OUTPUT_DIRECTORY = False
Marco Mancini's avatar
Marco Mancini committed
28 29 30 31 32

# Following items are often useful when publishing

#DISQUS_SITENAME = ""
#GOOGLE_ANALYTICS = ""