Static webpages with Pelican

Similar documents
WebIOPi. Installation Walk-through Macros

Cassandra Installation over Ubuntu 1. Installing VMware player:

Configuring Apache HTTP Server as a Reverse Proxy Server for SAS 9.3 Web Applications Deployed on Oracle WebLogic Server

Configuring IBM HTTP Server as a Reverse Proxy Server for SAS 9.3 Web Applications Deployed on IBM WebSphere Application Server

Intelligent Video Analytics. Server Installation Guide. - Windows - Linux

Nupic Web Application development

CPE111 COMPUTER EXPLORATION

Partek Flow Installation Guide

1 Recommended Readings. 2 Resources Required. 3 Compiling and Running on Linux

Solr Bridge Search Installation Guide

4 Understanding. Web Applications IN THIS CHAPTER. 4.1 Understand Web page development. 4.2 Understand Microsoft ASP.NET Web application development

Cloud Homework instructions for AWS default instance (Red Hat based)

Web Developer Toolkit for IBM Digital Experience

ART 379 Web Design. HTML, XHTML & CSS: Introduction, 1-2

CREATE A CUSTOM THEME WEBSPHERE PORTAL

JISIS and Web Technologies

Welcome to CSE 330 Crea0ve Progamming and Rapid Prototyping. Course Informa0on

WEB DEVELOPMENT IA & IB (893 & 894)

Web Server using Apache. Heng Sovannarith

Modern Web Development From Angle Brackets to Web Sockets

PDG Software. Site Design Guide

Embedded Based Web Server for CMS and Automation System

CSET 3100 Advanced Website Design (3 semester credit hours) IT Required

Apache Configuration

An Introduction to Mercurial Version Control Software

The easy way to a nice looking website design. By a total non-designer (Me!)

Introduction to Ingeniux Forms Builder. 90 minute Course CMSFB-V6 P

Source Code Review Using Static Analysis Tools

An Introduction to Mercurial Version Control Software

Copyright 2014, SafeNet, Inc. All rights reserved.

Putting It All Together. Vagrant Drush Version Control

Make a folder named Lab3. We will be using Unix redirection commands to create several output files in that folder.

Tuskar UI Documentation

Web Browsing Examples. How Web Browsing and HTTP Works

Code::Blocks Student Manual

Web Development I & II*

Drupal CMS for marketing sites

CO Web Server Administration and Security. By: Szymon Machajewski

How to start with 3DHOP

Hadoop Data Warehouse Manual

This installation guide will help you install your chosen IceTheme Template with the Cloner Installer package.

HOW TO CREATE THEME IN MAGENTO 2

Treemap Visualisations

Installing & Customizing the OHMS Viewer Eric Weig


Developers Guide. Designs and Layouts HOW TO IMPLEMENT WEBSITE DESIGNS IN DYNAMICWEB. Version: English

IT3504: Web Development Techniques (Optional)

Short notes on webpage programming languages

depl Documentation Release depl contributors

Fermilab Central Web Service Site Owner User Manual. DocDB: CS-doc-5372

Linux Development Environment Description Based on VirtualBox Structure

INSTALLING KAAZING WEBSOCKET GATEWAY - HTML5 EDITION ON AN AMAZON EC2 CLOUD SERVER

Designing portal site structure and page layout using IBM Rational Application Developer V7 Part of a series on portal and portlet development

Mapping ITS s File Server Folder to Mosaic Windows to Publish a Website

How to add your Weebly website to a TotalCloud hosted Server

Richmond SupportDesk Web Reports Module For Richmond SupportDesk v6.72. User Guide

CISE Research Infrastructure: Mid-Scale Infrastructure - NSFCloud (CRI: NSFCloud)

Raspberry Pi Webserver

Setting up an online Java Jmonitor. server using the. EXPERIMENTAL code from. John Melton GØORX/N6LYT

LAMP Quickstart for Red Hat Enterprise Linux 4

Apache HTTP Server. Implementation Guide. (Version 5.7) Copyright 2013 Deepnet Security Limited

Implementing Reverse Proxy Using Squid. Prepared By Visolve Squid Team

Interactive Data Visualization for the Web Scott Murray

SUBJECT CODE : 4074 PERIODS/WEEK : 4 PERIODS/ SEMESTER : 72 CREDIT : 4 TIME SCHEDULE UNIT TOPIC PERIODS 1. INTERNET FUNDAMENTALS & HTML Test 1

Web Development with Flask and the Raspberry Pi Leading by Example CUAUHTEMOC CARBAJAL ITESM CEM 22/04/2014

Programming exercises (Assignments)

This document details the following four steps in setting up a Web Server (aka Internet Information Services -IIS) on Windows XP:

Setting up an Apache Web Server for Greenstone 2 Walkthrough

Monitor and Secure Linux System with Open Source Tripwire

Configuring Apache HTTP Server as a Reverse Proxy Server for SAS 9.2 Web Applications Deployed on BEA WebLogic Server 9.2

ITP 101 Project 3 - Dreamweaver

WWW. World Wide Web Aka The Internet. dr. C. P. J. Koymans. Informatics Institute Universiteit van Amsterdam. November 30, 2007

Mercurial. Why version control (Single users)

BT MAGAZINE. JOOMLA 3.x TEMPLATE. Total User Guide Version 1.0. Copyright 2013 Bowthemes.com

Dragonframe License Manager User Guide Version 1.2.2

Installation Guide for Windows May 2016

Extending Remote Desktop for Large Installations. Distributed Package Installs

Rstudio Server on Amazon EC2

T320 E-business technologies: foundations and practice

How To Install The Arcgis For Inspire Server Extension On A Microsoft Gis For Inspire Server Extension (For Microsoft) On A Pc Or Macbook Or Ipa (For Macbook)

Kentico CMS, 2011 Kentico Software. Contents. Mobile Development using Kentico CMS 6 2 Exploring the Mobile Environment 1

Getting Started Guide with WIZ550web

Step One: Installing Rsnapshot and Configuring SSH Keys

Logi Ad Hoc Reporting Configuration for Load Balancing (Sticky Sessions)

Using Steelhead Appliances and Stingray Aptimizer to Accelerate Microsoft SharePoint WHITE PAPER

Apache and Virtual Hosts Exercises

Installation of PHP, MariaDB, and Apache

Using Toaster in a Production Environment

IBM Tivoli Federated Identity Manager V6.2.2 Implementation. Version: Demo. Page <<1/10>>

Web Development. Owen Sacco. ICS2205/ICS2230 Web Intelligence

ResPAK Internet Module

Introduction to XML Applications

Transcription:

Static webpages with Pelican Denis Kramer FEEG6003 Advanced Computational Modelling 2 12 February 2015

Outline Web technology basics Separation of content and presentation From content to webpage (Pelican) Installing Pelican on lubuntu Cloning the blogs repository Start writing your topical blog

HTTP request 1 Request 2 Response Header 3 Response Body telnet www.example.com 80 GET /index.html HTTP/1.1 Host: localhost

HTML Hypertext-Markup Language is closely related to hxml/i This sentence has a <a href="somewhere" style="color:red;">red link</a>. 1 <tags> and </tags> to mark regions of text 2 Attributes to add information for the browser 3 A <html> (or <xml>) document is a tree of tags and text

Mixing content with presentation This sentence has a <a href="somewhere" style="color:red;">red link</a>. 1 href is content (it tells you where to go) 2 style is presentation (it tells the browser how to display)

Cascading Style Sheets (CSS) A web technology to move styling into separate document. HTML file: This sentence has a <a href="somewhere">red link</a>. CSS file: a { color: red; } Selectors to identify tags in the HTML source Style attributes to provide styling

Extensible Stylesheet Language (XSL) Allows to translate arbitrary XML documents into HTML XML document: This sentence has a <link>red link</link> XSL definition: <xsl:template match="link"> <a style="color:red;"><xsl:apply-templates/></a> </xsl:template> Transformed HTML: This sentence has a <a style="color:red;">red link</a>

Roadmap Blog http://computationalmodelling.bitbucket.org /tools/pelican-basics.html Virtual Machine Install VirtualBox (if not yet done) http://www.virtualbox.org Download lubuntu image Install Guest Extensions (optional) Install Pelican Python 2.x Make Mercurial (for webpage repository)

Installing the software stack Install Make and cpp sudo apt-get install make gcc Install Guest Additions (optional) cd /media/feeg6003/<name OF VBOXADDITIONS CD> sudo./vboxlinuxadditions.run Install Python package manager cd $HOME wget https://bootstrap.pypa.io/get-pip.py sudo python get-pip.py Install Pelican sudo pip install pelican markdown Install Mercurial sudo apt-get install mercurial meld

Clone blog repository Blogs are hosted on computationalmodelling.bitbucket.org Clone repository hg clone http://bitbucket.org/computationalmodelling/computationalmodelling.bitbucket.org blogs Hint: You can also fork the repository if you have a bitbucket.com account

Repository structure Repository root tools tools-pelican readme.rst index.html output directory source directory Read-me file (read it!) Dummy html file for host redirects Source folder (tools-pelican) content source folder with blog entries Makefile defines targets for make tool *.py Pelican configuration files themes folder for themes develop server.sh starts a development web server locally

Start your own blog Go to content folder cd content Create folder for your blog entry and go there mkdir <name> cd <name> Create a Markdown (restructuredtext) file for your blog nano blog-name.md

Blog entry Metadata title: My amazing first blog authors: You know who date: 2015-02-12 tags: demo, training slug: demo-post Link I learned how to use Pelican for blogging [here]({filename}/pelican-basics/pelican-basics.md)

Translating to HTML Running Pelican Make sure you are in the tools-pelican folder where the Makefile resides cd../.. Call Pelican using the make utility with the html target make html

Testing the page locally Test in local web server Use make with target serve to start a lightweight webserver make serve Point web browser to local port 8000 http://localhost:8000 Notice that the web server blocks the terminal while running. You can close the server with Ctrl+C. Happy blogging!