GithubHelp home page GithubHelp logo

emberred / docker-pelican Goto Github PK

View Code? Open in Web Editor NEW

This project forked from timff/docker-pelican

0.0 1.0 0.0 156 KB

Dockerize pelican framework

License: MIT License

Shell 29.01% JavaScript 39.09% Python 31.90%

docker-pelican's Introduction

docker-pelican

Dockerize pelican framework

Installation

First, fork this repo, as it's going to contain your site source code (markdown), and clone it on your docker host:

git clone [email protected]:USERNAME/docker-pelican
cd docker-pelican

Build the image manually from the included Dockerfile:

make docker-build

Then update the following settings inside website/pelicanconf.py: AUTHOR = u'Author name' SITENAME = u'The name of your website' TIMEZONE = 'Europe/Paris' DEFAULT_LANG = u'en'

And inside Makefile : deploy_repo_url = [email protected]:jderuere/jderuere.github.io.git

Now, you're ready to use Pelican to build and deploy the HTML!

Usage

First run the command :

make docker-run

This wil enable you to have a preview to your website at localhost:8000.

You can now start writing posts into website/content (i.e article.md) :

---
   Title: My title
   Date: 2010-12-03 10:20
   Modified: 2010-12-05 19:30
   Category: Python
   Tags: pelican, publishing
   Slug: my-super-post
   Authors: jderuere
   Summary: Short version for index and feeds
---

Pelican will automatically build the html into website/output.

Stop the container

To stop the container, run the command :

make docker-kill

Push on github-page

Work on progress.

docker-pelican's People

Contributors

julien-deruere avatar

Watchers

 avatar

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.