Softpanorama

May the source be with you, but remember the KISS principle ;-)
Home Switchboard Unix Administration Red Hat TCP/IP Networks Neoliberalism Toxic Managers
(slightly skeptical) Educational society promoting "Back to basics" movement against IT overcomplexity and  bastardization of classic Unix

Nikola - static blogs and website generator written in Python

Nikola is blog and static web sites generators written in Python. It has many features, but here are some of the nicer ones:

Overview

Overview is based on http://savepearlharbor.com/?p=198342

Technology, on the basis of which operate websites, quite often, is a variant of "hunting sparrows with a 5" cannon". I wonder can anybody expain to me the rational of creating wensite of companies using the database such as MySQL? After all such sites are updated once a year, do not providing any feedback to the visitors and often contian just two dosen pages.

It looks that not only me is thinging this way. That's why there are several engines and quite a lot of software that help to create sites based on static pages without database engine that supports the display of pages to ordinary visitors.

Moreover, as it turned out, people are thinking hard about in the direction of the static sites and there are tools ready to connect to these sites dynamic component, implemented by third services, of course through AJAX it. For example comment and search...

And writing about this topic a lot. Here, for example, you can read:

http://habrahabr.ru/post/93499/
http://habrahabr.ru/post/142287/
http://habrahabr.ru/post/160431/
http://lifehacker.ru/2012/01/12/blogs-at-dropbox/

However, as with most other articles in the Network, mainly discussing one or two thoughts, and the same programs and services mentioned. And interesting technology/software, not included in the mainstream flow, difficult to find.

The General idea

Principle on which such generators work is very simple:

1. Initially, the author of the site accommodates future publications (articles, posts) in certain directories in ordinary text files.
2. The template pages are separate.
3. In separate text files or inside files publications are additional metadata, for example, categorization (tagging) publications, etc.
4. Start a program generator, which from all this creates a set of html, css and, sometimes, js file.
5. Run advanced automation tools that publish the resulting website. Or just copy generated pages to the target directory on the web server.

Part of all of the text can be  in more user friendly and simplified formats instead of HTML but this is not proncipal advantages, as complexity of HTMLK is greatly overblown.

Nikola and Tipue

There are several packages which can genrate static sites. One of the most popular emong them is Nikola. This is fairly well-developed software that is extensible, well documented. A smart tool with the ability to connect plugins. Implemented in Python.

One of the most interesting features of the generator Nikola - the ability to create pages with search engine without engine on the server side - the search is implemented in the browser. Implemented AJAX'ohms means Tipue

Generator static websites Nikola is well developed and well-documented system
Nikola provides the ability to use multimedia sites sich as Vimeo, Youtube, etc...
It also provided teasers and drafts. It also provides image gallery.

You can change the appearance (themes), which are on the official site devoted quite a lot of documentation, there are a dozen themes. Provided writing plug-ins to extend the functionality (plugins).

For a well-written and detailed documentation special thanks to the developer Roberto Alsina

How to try

All below was tested with Python 2.7, not Python 3.

Install the software using the package Manager for Python. I use pip. Sure you can do it using easy_install:

pip install nikola

If this is done under *nix, then those dependencies that require compilation, most likely, will be compiled normally. Well, under Windows, as few sets and configures required to compile some enhancements will likely be cursing:

running build_ext building 'PIL._imaging' extension error: Unable to find vcvarsall.bat

Such relationships are easier to establish in binary form, choose the appropriate version 32/64-bit and corresponds to your version of Python:

http://effbot.org/downloads/
http://www.lfd.uci.edu/~gohlke/pythonlibs/

The algorithm for the lazy is - launched the installation via "pip install ...", revered stumbled on what was installed from binaries what stumbled, ran the install via "pip install ..." again, and so on.

After the generator Nikola with dependency was installed with it, create a blank with demo data:

nikola init demo mysite

Then in the directory "mysite" you can edit text files, which after generation will be converted into pages on your website.

When you are done with editing run Nikola so that the directory "mysite" would be the current (i.e. from inside the directory "mysite"):

nikola build

In the subdirectory "output" you will see a static website. In order to work properly search for AJAX you want to view the site through a web server.

For testing you can use by the generator Nikola as a web server:

nikola serve

Then the site will be available at http://127.0.0.1:8000

The format of the source data

Special mention is the format of the source text files. It is written using lightweight markup language ReStructuredText. Additional information (metadata) on the publication (article, post) are placed directly in the text.

In addition to "ReStructuredText" can be used markup using the "bbcode", "wiki", "markdown", "html", "txt2tags" and "textile"..

Recommended Links

Google matched content

Softpanorama Recommended

Top articles

Sites

Top articles

Sites

Nikola

The Nikola Handbook

32 static website generators for your site, blog or wiki



Etc

Society

Groupthink : Two Party System as Polyarchy : Corruption of Regulators : Bureaucracies : Understanding Micromanagers and Control Freaks : Toxic Managers :   Harvard Mafia : Diplomatic Communication : Surviving a Bad Performance Review : Insufficient Retirement Funds as Immanent Problem of Neoliberal Regime : PseudoScience : Who Rules America : Neoliberalism  : The Iron Law of Oligarchy : Libertarian Philosophy

Quotes

War and Peace : Skeptical Finance : John Kenneth Galbraith :Talleyrand : Oscar Wilde : Otto Von Bismarck : Keynes : George Carlin : Skeptics : Propaganda  : SE quotes : Language Design and Programming Quotes : Random IT-related quotesSomerset Maugham : Marcus Aurelius : Kurt Vonnegut : Eric Hoffer : Winston Churchill : Napoleon Bonaparte : Ambrose BierceBernard Shaw : Mark Twain Quotes

Bulletin:

Vol 25, No.12 (December, 2013) Rational Fools vs. Efficient Crooks The efficient markets hypothesis : Political Skeptic Bulletin, 2013 : Unemployment Bulletin, 2010 :  Vol 23, No.10 (October, 2011) An observation about corporate security departments : Slightly Skeptical Euromaydan Chronicles, June 2014 : Greenspan legacy bulletin, 2008 : Vol 25, No.10 (October, 2013) Cryptolocker Trojan (Win32/Crilock.A) : Vol 25, No.08 (August, 2013) Cloud providers as intelligence collection hubs : Financial Humor Bulletin, 2010 : Inequality Bulletin, 2009 : Financial Humor Bulletin, 2008 : Copyleft Problems Bulletin, 2004 : Financial Humor Bulletin, 2011 : Energy Bulletin, 2010 : Malware Protection Bulletin, 2010 : Vol 26, No.1 (January, 2013) Object-Oriented Cult : Political Skeptic Bulletin, 2011 : Vol 23, No.11 (November, 2011) Softpanorama classification of sysadmin horror stories : Vol 25, No.05 (May, 2013) Corporate bullshit as a communication method  : Vol 25, No.06 (June, 2013) A Note on the Relationship of Brooks Law and Conway Law

History:

Fifty glorious years (1950-2000): the triumph of the US computer engineering : Donald Knuth : TAoCP and its Influence of Computer Science : Richard Stallman : Linus Torvalds  : Larry Wall  : John K. Ousterhout : CTSS : Multix OS Unix History : Unix shell history : VI editor : History of pipes concept : Solaris : MS DOSProgramming Languages History : PL/1 : Simula 67 : C : History of GCC developmentScripting Languages : Perl history   : OS History : Mail : DNS : SSH : CPU Instruction Sets : SPARC systems 1987-2006 : Norton Commander : Norton Utilities : Norton Ghost : Frontpage history : Malware Defense History : GNU Screen : OSS early history

Classic books:

The Peter Principle : Parkinson Law : 1984 : The Mythical Man-MonthHow to Solve It by George Polya : The Art of Computer Programming : The Elements of Programming Style : The Unix Haterís Handbook : The Jargon file : The True Believer : Programming Pearls : The Good Soldier Svejk : The Power Elite

Most popular humor pages:

Manifest of the Softpanorama IT Slacker Society : Ten Commandments of the IT Slackers Society : Computer Humor Collection : BSD Logo Story : The Cuckoo's Egg : IT Slang : C++ Humor : ARE YOU A BBS ADDICT? : The Perl Purity Test : Object oriented programmers of all nations : Financial Humor : Financial Humor Bulletin, 2008 : Financial Humor Bulletin, 2010 : The Most Comprehensive Collection of Editor-related Humor : Programming Language Humor : Goldman Sachs related humor : Greenspan humor : C Humor : Scripting Humor : Real Programmers Humor : Web Humor : GPL-related Humor : OFM Humor : Politically Incorrect Humor : IDS Humor : "Linux Sucks" Humor : Russian Musical Humor : Best Russian Programmer Humor : Microsoft plans to buy Catholic Church : Richard Stallman Related Humor : Admin Humor : Perl-related Humor : Linus Torvalds Related humor : PseudoScience Related Humor : Networking Humor : Shell Humor : Financial Humor Bulletin, 2011 : Financial Humor Bulletin, 2012 : Financial Humor Bulletin, 2013 : Java Humor : Software Engineering Humor : Sun Solaris Related Humor : Education Humor : IBM Humor : Assembler-related Humor : VIM Humor : Computer Viruses Humor : Bright tomorrow is rescheduled to a day after tomorrow : Classic Computer Humor

The Last but not Least Technology is dominated by two types of people: those who understand what they do not manage and those who manage what they do not understand ~Archibald Putt. Ph.D


Copyright © 1996-2021 by Softpanorama Society. www.softpanorama.org was initially created as a service to the (now defunct) UN Sustainable Development Networking Programme (SDNP) without any remuneration. This document is an industrial compilation designed and created exclusively for educational use and is distributed under the Softpanorama Content License. Original materials copyright belong to respective owners. Quotes are made for educational purposes only in compliance with the fair use doctrine.

FAIR USE NOTICE This site contains copyrighted material the use of which has not always been specifically authorized by the copyright owner. We are making such material available to advance understanding of computer science, IT technology, economic, scientific, and social issues. We believe this constitutes a 'fair use' of any such copyrighted material as provided by section 107 of the US Copyright Law according to which such material can be distributed without profit exclusively for research and educational purposes.

This is a Spartan WHYFF (We Help You For Free) site written by people for whom English is not a native language. Grammar and spelling errors should be expected. The site contain some broken links as it develops like a living tree...

You can use PayPal to to buy a cup of coffee for authors of this site

Disclaimer:

The statements, views and opinions presented on this web page are those of the author (or referenced source) and are not endorsed by, nor do they necessarily reflect, the opinions of the Softpanorama society. We do not warrant the correctness of the information provided or its fitness for any purpose. The site uses AdSense so you need to be aware of Google privacy policy. You you do not want to be tracked by Google please disable Javascript for this site. This site is perfectly usable without Javascript.

Last modified: March, 12, 2019