Skip to content
Permalink
Browse files
Add pelican theme and project template
git-svn-id: https://svn.apache.org/repos/asf/allura/site/trunk@1691521 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information
Igor Bondarenko committed Jul 17, 2015
1 parent bd4c0b8 commit 7ec69641e7aac64ee2ec8dfc027592f7f2b27863
Showing 53 changed files with 3,703 additions and 0 deletions.
@@ -0,0 +1,41 @@
PY?=python
PELICAN?=pelican
PELICANOPTS=-t allura-theme

BASEDIR=$(CURDIR)
INPUTDIR=$(BASEDIR)/content
OUTPUTDIR=$(BASEDIR)/..
CONFFILE=$(BASEDIR)/pelicanconf.py

DEBUG ?= 0
ifeq ($(DEBUG), 1)
PELICANOPTS += -D
endif

RELATIVE ?= 0
ifeq ($(RELATIVE), 1)
PELICANOPTS += --relative-urls
endif

help:
@echo 'Makefile for a pelican Web site '
@echo ' '
@echo 'Usage: '
@echo ' make html (re)generate the web site '
@echo ' make regenerate regenerate files upon modification '
@echo ' make serve start dev server '
@echo ' '
@echo 'Set the DEBUG variable to 1 to enable debugging, e.g. make DEBUG=1 html '
@echo 'Set the RELATIVE variable to 1 to enable relative urls '
@echo ' '

html:
$(PELICAN) $(INPUTDIR) -o $(OUTPUTDIR) -s $(CONFFILE) $(PELICANOPTS)

regenerate:
$(PELICAN) -r $(INPUTDIR) -o $(OUTPUTDIR) -s $(CONFFILE) $(PELICANOPTS)

serve:
cd $(OUTPUTDIR) && python -m pelican.server

.PHONY: html regenerate publish

Some generated files are not rendered by default. Learn more.

0 comments on commit 7ec6964

Please sign in to comment.