Skip to content

Commit b2e6223

Browse files
committedJul 2, 2015
Nikola v7.6.0
Signed-off-by: Chris Warrick <kwpolska@gmail.com>
1 parent 4bee61f commit b2e6223

File tree

12 files changed

+567
-112
lines changed

12 files changed

+567
-112
lines changed
 

Diff for: ‎WhatIsNikola.rst

+6-6
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,12 @@
77
What is Nikola?
88
===============
99

10-
Nikola is a static site and blog generator, written in Python. It can
11-
use Mako and Jinja2 templates, and input in many popular markup
10+
Nikola is a static site and blog generator, written in Python.
11+
It can use Mako and Jinja2 templates, and input in many popular markup
1212
formats, such as reStructuredText and Markdown — and can even turn
13-
IPython Notebooks into blog posts! It also supports image galleries,
14-
and is multilingual. Nikola is flexible, and page builds are
15-
extremely fast, courtesy of doit (which is rebuilding only what has
16-
been changed).
13+
Jupyter (IPython) Notebooks into blog posts! It also supports image
14+
galleries, and is multilingual. Nikola is flexible, and page builds
15+
are extremely fast, courtesy of doit (which is rebuilding only what
16+
has been changed).
1717

1818
Find out more at the website: https://getnikola.com/

Diff for: ‎listings/conf.py

+5-5
Original file line numberDiff line numberDiff line change
@@ -541,7 +541,7 @@
541541
# INDEXES_STATIC = True
542542
#
543543
# (translatable) If PRETTY_URLS is set to True, this setting will be used to create
544-
# more pretty URLs for index pages, such as page/2/index.html instead of index-2.html.
544+
# prettier URLs for index pages, such as page/2/index.html instead of index-2.html.
545545
# Valid values for this settings are:
546546
# * False,
547547
# * a list or tuple, specifying the path to be generated,
@@ -733,12 +733,12 @@
733733
# /robots.txt and /sitemap.xml, and to inform search engines about /sitemapindex.xml.
734734
# ROBOTS_EXCLUSIONS = ["/archive.html", "/category/*.html"]
735735

736-
# Instead of putting files in <slug>.html, put them in
737-
# <slug>/index.html. Also enables STRIP_INDEXES
736+
# Instead of putting files in <slug>.html, put them in <slug>/index.html.
737+
# No web server configuration is required. Also enables STRIP_INDEXES.
738738
# This can be disabled on a per-page/post basis by adding
739739
# .. pretty_url: False
740-
# to the metadata
741-
# PRETTY_URLS = False
740+
# to the metadata.
741+
PRETTY_URLS = False
742742

743743
# If True, publish future dated posts right away instead of scheduling them.
744744
# Defaults to False.

Diff for: ‎posts/nikola-v760-is-out.txt

+80
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,80 @@
1+
.. title: Nikola v7.6.0 is out!
2+
.. slug: nikola-v760-is-out
3+
.. date: 2015-07-02 12:11:48 UTC
4+
.. tags: nikola, planet, python, programming, release
5+
.. author: Chris Warrick
6+
.. category:
7+
.. link:
8+
.. description:
9+
.. type: text
10+
11+
On behalf of the Nikola team, I am pleased to announce the immediate
12+
availability of Nikola v7.6.0. It fixes some bugs and adds new
13+
features.
14+
15+
What is Nikola?
16+
===============
17+
18+
Nikola is a static site and blog generator, written in Python.
19+
It can use Mako and Jinja2 templates, and input in many popular markup
20+
formats, such as reStructuredText and Markdown — and can even turn
21+
Jupyter (IPython) Notebooks into blog posts! It also supports image
22+
galleries, and is multilingual. Nikola is flexible, and page builds
23+
are extremely fast, courtesy of doit (which is rebuilding only what
24+
has been changed).
25+
26+
Find out more at the website: https://getnikola.com/
27+
28+
Key Changes since v7.5.1
29+
========================
30+
31+
* ``nikola auto`` fixed for Python 3 and while rebuilding
32+
* ``nikola auto`` now uses watchdog and supports **Windows**
33+
* Support for Jupyter Notebooks: you can now use non-Python ``.ipynb``
34+
files with Nikola (``ipynb@KERNEL`` to pick a kernel)
35+
* Added ``nikola new_post -F`` to list available compilers
36+
* Better print CSS
37+
* Per-post filters via metadata
38+
39+
Downloads
40+
=========
41+
42+
Get it on `GitHub`__ and `PyPI`__.
43+
44+
__ https://github.com/getnikola/nikola/releases/tag/v7.6.0
45+
__ https://pypi.python.org/pypi/Nikola/7.6.0
46+
47+
Changes
48+
=======
49+
50+
Features
51+
--------
52+
53+
* Translate ``Write your post here.`` to default language (Issue #1621)
54+
* Enable ``PRETTY_URLS`` by default on new sites created by the wizard
55+
(Issue #1838)
56+
* Add ``-F``, ``--available-compilers`` option to ``nikola new_post``
57+
and ``nikola new_page`` (Issue #1837)
58+
* Add print CSS to all default themes (Issue #1817)
59+
* Support other kernels for ipynb/Jupyter using
60+
``nikola new_post -f ipynb@kernel`` (Issues #1774, #1834)
61+
* Add distinct styling for the site footer in bootstrap3
62+
* Bootstrap v3.3.5 (Issue #1828)
63+
* Use ``watchdog`` in ``nikola auto`` (Issue #1810)
64+
* Add redirection for tags in Wordpress importer (Issue #1168)
65+
* Add support for ``html_tidy_withconfig`` to use a ``tidy5.conf`` file
66+
(Issue #1795)
67+
* Change default tidy5 filters not to drop empty elements (Issue #1795)
68+
* Apply per-post filters via metadata (Issue #914)
69+
70+
Bugfixes
71+
--------
72+
73+
* Nikola auto was broken in python 3 (Issue #1830)
74+
* Read configuration when importing into an existing site (Issue #1823)
75+
* Don’t crash on non-UTF-8 files during sitemap generation (Issue #1842)
76+
* Unnecessary rebuilds of yearly archives (Issue #1833)
77+
* Quietly ignore non-existent files in ``nikola check -l`` (Issue #1831)
78+
* Don’t rebuild all tag or category pages when changing tag/category descriptions
79+
* Fix crash in wordpress code importer (Issue #1819)
80+
* Call correct command in ``nikola auto``

Diff for: ‎stories/CHANGES.txt

+36-1
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,46 @@
1+
New in v7.6.0
2+
=============
3+
4+
Features
5+
--------
6+
7+
* Translate ``Write your post here.`` to default language (Issue #1621)
8+
* Enable ``PRETTY_URLS`` by default on new sites created by the wizard
9+
(Issue #1838)
10+
* Add ``-F``, ``--available-compilers`` option to ``nikola new_post``
11+
and ``nikola new_page`` (Issue #1837)
12+
* Add print CSS to all default themes (Issue #1817)
13+
* Support other kernels for ipynb/Jupyter using
14+
``nikola new_post -f ipynb@kernel`` (Issues #1774, #1834)
15+
* Add distinct styling for the site footer in bootstrap3
16+
* Bootstrap v3.3.5 (Issue #1828)
17+
* Use ``watchdog`` in ``nikola auto`` (Issue #1810)
18+
* Add redirection for tags in Wordpress importer (Issue #1168)
19+
* Add support for ``html_tidy_withconfig`` to use a ``tidy5.conf`` file
20+
(Issue #1795)
21+
* Change default tidy5 filters not to drop empty elements (Issue #1795)
22+
* Apply per-post filters via metadata (Issue #914)
23+
24+
Bugfixes
25+
--------
26+
27+
* Nikola auto was broken in python 3 (Issue #1830)
28+
* Read configuration when importing into an existing site (Issue #1823)
29+
* Don’t crash on non-UTF-8 files during sitemap generation (Issue #1842)
30+
* Unnecessary rebuilds of yearly archives (Issue #1833)
31+
* Quietly ignore non-existent files in ``nikola check -l`` (Issue #1831)
32+
* Don’t rebuild all tag or category pages when changing tag/category descriptions
33+
* Fix crash in wordpress code importer (Issue #1819)
34+
* Call correct command in ``nikola auto``
35+
136
New in v7.5.1
237
=============
338

439
Features
540
--------
641

742
* Suggest misspelled commands (Issue #1807)
8-
* New implementation of the ``nikola auto`` command.
43+
* New implementation of the ``nikola auto`` command
944
* ``requests`` is now required for all Nikola sites
1045
* New ``nikola version --check`` option (Issue #1767)
1146

Diff for: ‎stories/conf.txt

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
.. title: Nikola v7.5.1 configuration file
1+
.. title: Nikola v7.6.0 configuration file
22
.. slug: conf
33
.. date: 2014-11-08 18:51:30 UTC
44
.. description: The Nikola configuration file.
55
.. type: text
66

7-
The default config file for Nikola v7.5.1 is reproduced below.
7+
The default config file for Nikola v7.6.0 is reproduced below.
88

99
.. listing:: conf.py python

Diff for: ‎stories/extending.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
Extending Nikola
99
================
1010

11-
:Version: 7.5.1
11+
:Version: 7.6.0
1212
:Author: Roberto Alsina <ralsina@netmanagers.com.ar>
1313

1414
.. class:: alert alert-info pull-right

Diff for: ‎stories/manual.txt

+125-9
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
The Nikola Handbook
88
===================
99

10-
:Version: 7.5.1
10+
:Version: 7.6.0
1111

1212
.. class:: alert alert-info pull-right
1313

@@ -19,7 +19,7 @@ All You Need to Know
1919

2020
After you have Nikola `installed <#installing-nikola>`_:
2121

22-
Create a empty site (with a setup wizard):
22+
Create an empty site (with a setup wizard):
2323
``nikola init mysite``
2424

2525
You can create a site with demo files in it with ``nikola init --demo mysite``
@@ -31,15 +31,14 @@ Create a post:
3131

3232
Edit the post:
3333
The filename should be in the output of the previous command.
34+
You can also use ``nikola new_post -e`` to open an editor automatically.
3435

3536
Build the site:
3637
``nikola build``
3738

38-
Start the test server:
39-
``nikola serve``
39+
Start the test server and open a browser (http://127.0.0.1:8000/):
40+
``nikola serve -b``
4041

41-
See the site:
42-
http://127.0.0.1:8000
4342

4443
That should get you going. If you want to know more, this manual will always be here
4544
for you.
@@ -57,7 +56,7 @@ that it takes some texts you wrote, and uses them to create a folder full
5756
of HTML files. If you upload that folder to a server, you will have a
5857
rather full-featured website, done with little effort.
5958

60-
It's original goal is to create blogs, but it supports most kind of sites, and
59+
Its original goal is to create blogs, but it supports most kind of sites, and
6160
can be used as a CMS, as long as what you present to the user is your own content
6261
instead of something the user generates.
6362

@@ -503,6 +502,9 @@ to your configuration::
503502
Like tags, except each post can have only one, and they usually have
504503
more descriptive names.
505504

505+
filters
506+
See the `Post Processing Filters`_ section.
507+
506508
hidetitle
507509
Set "True" if you do not want to see the **page** title as a
508510
heading of the output html file (does not work for posts).
@@ -821,6 +823,102 @@ setup.
821823
the same extension as is set in ``COMPILERS`` and configure the outputs
822824
properly.
823825

826+
Markdown
827+
````````
828+
829+
To use Markdown in your posts/pages, make sure ``markdown`` is in your
830+
``COMPILERS`` and that at least one of your desired extensions is defined in
831+
``POSTS`` and ``PAGES``.
832+
833+
You can use Python-Markdown extensions by setting the ``MARKDOWN_EXTENSIONS``
834+
config option:
835+
836+
.. code:: python
837+
838+
MARKDOWN_EXTENSIONS = ['fenced_code', 'codehilite', 'extra']
839+
840+
IPython Notebook/Jupyter
841+
````````````````````````
842+
843+
To use Jupyter notebooks (previously known as IPython Notebooks) as posts/pages,
844+
make sure ``ipynb`` is in your ``COMPILERS`` and that the ``.ipynb`` extension
845+
is defined in ``POSTS`` and ``PAGES``.
846+
847+
The ``-f`` argument to ``new_post`` should be used in the ``ipynb@KERNEL`` format.
848+
It defaults to Python in the version used by Nikola if not specified.
849+
850+
HTML
851+
````
852+
853+
To use plain HTML in your posts/pages, make sure ``html`` is in your
854+
``COMPILERS``
855+
and that the ``.html`` extension is defined in ``POSTS`` and ``PAGES``.
856+
857+
PHP
858+
```
859+
860+
There are two ways of using PHP within Nikola:
861+
862+
1. To use PHP in your posts/pages (inside your site, with the theme and
863+
everything), make sure ``php`` is in your ``COMPILERS`` and that the ``.php``
864+
extension is defined in ``POSTS`` and ``PAGES``.
865+
2. To use PHP as standalone files (without any modifications), put them in
866+
``files/`` (or whatever ``FILES_FOLDERS`` is configured to).
867+
868+
Pandoc
869+
``````
870+
871+
To use Pandoc, you must uncomment the entry in ``COMPILERS`` and set the
872+
extensions list to your desired extensions while also removing them from their
873+
original compilers. The input format is inferred from the extension by Pandoc.
874+
875+
Using Pandoc for reStructuredText, Markdown and other input formats that have a
876+
standalone Nikola plugin is **not recommended** as it disables plugins and
877+
extensions that are usually provided by Nikola.
878+
879+
Indexes
880+
~~~~~~~
881+
882+
All your posts that are not drafts, private or dated in the future, will be
883+
shown in indexes.
884+
885+
Settings
886+
````````
887+
888+
Indexes are put in the ``INDEX_PATH`` directory, which defaults to an empty
889+
string (site root). The “main” index is ``index.html``, and all the further
890+
indexes are ``index-*.html``, respectively.
891+
892+
By default, 10 posts are displayed on an index page. This can be changed with
893+
``INDEX_DISPLAY_POST_COUNT``. Indexes can show full posts or just the teasers,
894+
as controlled by the ``INDEX_TEASERS`` setting (defaults to ``False``).
895+
896+
Titles of the pages can be controlled by using ``INDEXES_TITLES``,
897+
``INDEXES_PAGES`` and ``INDEXES_PAGES_MAIN`` settings.
898+
899+
Categories and tags use simple lists by default that show only titles and
900+
dates; however, you can switch them to full indexes by using
901+
``CATEGORY_PAGES_ARE_INDEXES`` and ``TAG_PAGES_ARE_INDEXES``, respectively.
902+
903+
Static indexes
904+
``````````````
905+
906+
Nikola uses *static indexes* by default. This means that ``index-1.html`` has
907+
the oldest posts, and the newest posts past the first 10 are in
908+
``index-N.html``, where ``N`` is the highest number. Only the page with the
909+
highest number and the main page (``index-N.html`` and ``index.html``) are
910+
rebuilt (the others remain unchanged). The page that appears when you click
911+
*Older posts* on the index page, ``index-N.html``, might contain **less than 10
912+
posts** if there are not enough posts to fill up all pages.
913+
914+
This can be disabled by setting ``INDEXES_STATIC`` to ``False``. In that mode,
915+
``index-1.html`` contains all the newest posts past the first 10 and will
916+
always contain 10 posts (unless you have less than 20). The last page,
917+
``index-N.html``, contains the oldest posts, and might contain less than 10
918+
posts. This is how many blog engines and CMSes behave. Note that this will
919+
lead to rebuilding all index pages, which might be a problem for larger blogs
920+
(with a lot of index pages).
921+
824922
Creating a Page
825923
---------------
826924

@@ -1364,6 +1462,21 @@ html_tidy_wrap_attr
13641462
html_tidy_mini
13651463
Minify HTML 5 into smaller documents with `tidy5 <http://www.html-tidy.org/>`_
13661464

1465+
html_tidy_withconfig
1466+
Run `tidy5 <http://www.html-tidy.org/>`_ with ``tidy5.conf`` as the config file (supplied by user)
1467+
1468+
html5lib_minify
1469+
Minify HTML5 using html5lib_minify
1470+
1471+
html5lib_xmllike
1472+
Format using html5lib
1473+
1474+
typogrify
1475+
Improve typography using `typogrify <http://static.mintchaos.com/projects/typogrify/>`__
1476+
1477+
typogrify_sans_widont
1478+
Same as typogrify without the widont filter
1479+
13671480
minify_lines
13681481
**THIS FILTER HAS BEEN TURNED INTO A NOOP** and currently does nothing.
13691482

@@ -1379,8 +1492,11 @@ optipng
13791492
jpegoptim
13801493
Compress JPEG files using `jpegoptim <http://www.kokkonen.net/tjko/projects.html>`_
13811494

1382-
typogrify
1383-
Improve typography using `typogrify <https://github.com/mintchaos/typogrify>`_
1495+
1496+
You can apply filters to specific posts or pages by using the ``filters`` metadata field::
1497+
1498+
.. filters:: filters.html_tidy_nowrap, "sed s/foo/bar"
1499+
13841500

13851501

13861502
Optimizing Your Website

Diff for: ‎stories/social_buttons.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
Using Alternative Social Buttons with Nikola
99
============================================
1010

11-
:Version: 7.5.1
11+
:Version: 7.6.0
1212

1313
.. class:: alert alert-info pull-right
1414

0 commit comments

Comments
 (0)
Please sign in to comment.