Giter Club home page Giter Club logo

site's Introduction

Pelican Static Site Generator

These are my notes for setting up a virtual environment for Pelican, the static site generator that I use to build my blog.

Reasons for using this guide

This document guides you through the processes of setting up a virtual environment, this way you can use the lastest version of Pelican, pulling it fron pypi without worrying about breaking or poluting your system.

  • This ensure true portability and reproducible environments.

Installing virtualenv and pip

Fedora

su -c 'dnf install python2-virtualenv.noarch python3-virtualenv.noarch'
su -c 'dnf install python2-pip.noarch python3-pip.noarch'

Create a directory for virtualenvs

cd ~/Documents
mkdir virtualenvs
cd virtualenvs

Create a virtualenv for Pelican

Use the virtualenv-3 or the virtualenv-3.6 command.

virtualenv-3 --no-site-packages pelican
cd pelican

Activate the virtualenv

source bin/activate

Install upgrade the setuptools and pip

pip install --upgrade setuptools pip

Install Optional Packages

pip install Markdown typogrify

Install Pelican

pip install pelican

Upgrading Everything

pip install --upgrade pelican Markdown typogrify setuptools pip

Clone the github repo

git clone [email protected]:porfiriopaiz/site.git

Pelican commands

Build a site after edit or new post

make html

Serve site locally at http://localhost:8000/:

make serve

Github serving

git checkout master
git subtree split --prefix output -b gh-pages
git push -f origin gh-pages:gh-pages
git branch -D gh-pages

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.