Last active
August 29, 2015 14:06
-
-
Save doole/53eee0623f377b478372 to your computer and use it in GitHub Desktop.
Pelican installation on Arch Linux
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
#### | |
# Documentation | |
# http://docs.getpelican.com/en/3.4.0/importer.html#import | |
# https://wiki.archlinux.org/index.php/Haskell#Haskell_platform | |
#### | |
# =Setup | |
pyvenv ./env | |
source env/bin/activate | |
# =Installation | |
pip install pelican Markdown typogrify | |
# =Dependencies for WordPress import... | |
# ==Python | |
pip install lxml beautifulsoup4 | |
# ==Haskell | |
pacman -S cabal-install ghc | |
cabal update | |
cabal install pandoc | |
export PATH=$PATH:$HOME/.cabal/bin | |
pelican-import --wpfile --dir-page -o content -m markdown wordpress.xml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- # | |
from __future__ import unicode_literals | |
AUTHOR = u'Myselft' | |
SITENAME = u'Pelican Web' | |
SITEURL = 'http://localhost:8000' | |
PATH = 'content' | |
TIMEZONE = 'Europe/Berlin' | |
DEFAULT_LANG = u'sr' | |
# Feed generation is usually not desired when developing | |
FEED_ALL_ATOM = None | |
CATEGORY_FEED_ATOM = None | |
TRANSLATION_FEED_ATOM = None | |
AUTHOR_FEED_ATOM = None | |
AUTHOR_FEED_RSS = None | |
# Blogroll | |
LINKS = (('Pelican', 'http://getpelican.com/'), | |
('Python.org', 'http://python.org/'), | |
('Jinja2', 'http://jinja.pocoo.org/'),) | |
# Social widget | |
SOCIAL = (('Google', '#'), | |
('Twitter', '#'),) | |
DEFAULT_PAGINATION = 10 | |
# Uncomment following line if you want document-relative URLs when developing | |
#RELATIVE_URLS = True | |
THEME = 'themes/nest' | |
# git clone https://github.com/yuex/pelican-chameleon.git | |
# git clone https://github.com/gfidente/pelican-svbhack.git | |
# git clone https://github.com/molivier/nest.git | |
# git clone https://github.com/spinner-dev/ptemplate.git | |
# AUTHORS = { | |
# u'Myselft': '#', | |
# u'Myselft2': '#', | |
# } | |
# STATIC_PATHS = [] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Jinja2==2.7.3 | |
Markdown==2.4.1 | |
MarkupSafe==0.23 | |
Pygments==1.6 | |
Unidecode==0.04.16 | |
beautifulsoup4==4.3.2 | |
blinker==1.3 | |
docutils==0.12 | |
feedgenerator==1.7 | |
lxml==3.4.0 | |
pelican==3.4.0 | |
python-dateutil==2.2 | |
pytz==2014.7 | |
six==1.8.0 | |
smartypants==1.8.6 | |
typogrify==2.0.6 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment