From ffb671c61a24a9086343b54bad080e145ff33fc5 Mon Sep 17 00:00:00 2001 From: Dererk Date: Tue, 15 Nov 2016 14:18:46 -0300 Subject: New upstream version 7.8.1 --- nikola/__init__.py | 4 +- nikola/__main__.py | 6 +- nikola/conf.py.in | 156 ++- nikola/data/samplesite/pages/1.rst | 11 + nikola/data/samplesite/pages/bootstrap-demo.rst | 1047 +++++++++++++++ nikola/data/samplesite/pages/charts.txt | 59 + nikola/data/samplesite/pages/creating-a-theme.rst | 1 + .../data/samplesite/pages/dr-nikolas-vendetta.rst | 468 +++++++ nikola/data/samplesite/pages/extending.txt | 1 + nikola/data/samplesite/pages/internals.txt | 1 + nikola/data/samplesite/pages/listings-demo.rst | 10 + nikola/data/samplesite/pages/manual.rst | 1 + nikola/data/samplesite/pages/path_handlers.txt | 1 + nikola/data/samplesite/pages/quickref.rst | 1348 ++++++++++++++++++++ nikola/data/samplesite/pages/quickstart.rst | 413 ++++++ nikola/data/samplesite/pages/slides-demo.rst | 17 + nikola/data/samplesite/pages/social_buttons.txt | 1 + nikola/data/samplesite/pages/theming.rst | 1 + nikola/data/samplesite/stories/1.rst | 11 - nikola/data/samplesite/stories/bootstrap-demo.rst | 1047 --------------- nikola/data/samplesite/stories/charts.txt | 59 - .../data/samplesite/stories/creating-a-theme.rst | 1 - .../samplesite/stories/dr-nikolas-vendetta.rst | 468 ------- nikola/data/samplesite/stories/extending.txt | 1 - nikola/data/samplesite/stories/internals.txt | 1 - nikola/data/samplesite/stories/listings-demo.rst | 10 - nikola/data/samplesite/stories/manual.rst | 1 - nikola/data/samplesite/stories/path_handlers.txt | 1 - nikola/data/samplesite/stories/quickref.rst | 1348 -------------------- nikola/data/samplesite/stories/quickstart.rst | 413 ------ nikola/data/samplesite/stories/slides-demo.rst | 17 - nikola/data/samplesite/stories/social_buttons.txt | 1 - nikola/data/samplesite/stories/theming.rst | 1 - nikola/data/samplesite/templates/book.tmpl | 2 +- nikola/data/shortcodes/jinja/raw.tmpl | 1 + nikola/data/shortcodes/mako/raw.tmpl | 1 + nikola/data/symlinked.txt | 18 +- nikola/data/themes/base-jinja/bundles | 2 - .../data/themes/base-jinja/templates/author.tmpl | 2 +- .../themes/base-jinja/templates/base_helper.tmpl | 2 +- .../templates/comments_helper_disqus.tmpl | 8 +- .../templates/comments_helper_facebook.tmpl | 4 +- .../base-jinja/templates/comments_helper_isso.tmpl | 2 +- .../base-jinja/templates/comments_helper_muut.tmpl | 2 +- .../data/themes/base-jinja/templates/gallery.tmpl | 2 +- nikola/data/themes/base-jinja/templates/index.tmpl | 3 + .../themes/base-jinja/templates/index_helper.tmpl | 26 +- .../themes/base-jinja/templates/list_post.tmpl | 2 +- .../data/themes/base-jinja/templates/listing.tmpl | 9 +- .../themes/base-jinja/templates/post_helper.tmpl | 28 +- .../base-jinja/templates/post_list_directive.tmpl | 8 +- nikola/data/themes/base-jinja/templates/story.tmpl | 2 +- nikola/data/themes/base-jinja/templates/tag.tmpl | 2 +- .../data/themes/base-jinja/templates/tagindex.tmpl | 22 +- nikola/data/themes/base/assets/css/rst.css | 2 +- nikola/data/themes/base/assets/css/theme.css | 4 +- nikola/data/themes/base/assets/js/jquery.min.map | 1 - nikola/data/themes/base/assets/xml/atom.xsl | 2 +- nikola/data/themes/base/assets/xml/rss.xsl | 2 +- nikola/data/themes/base/bundles | 4 +- nikola/data/themes/base/messages/messages_ar.py | 9 +- nikola/data/themes/base/messages/messages_az.py | 17 +- nikola/data/themes/base/messages/messages_bg.py | 43 +- nikola/data/themes/base/messages/messages_bs.py | 1 + nikola/data/themes/base/messages/messages_ca.py | 1 + nikola/data/themes/base/messages/messages_cs.py | 1 + nikola/data/themes/base/messages/messages_da.py | 1 + nikola/data/themes/base/messages/messages_de.py | 1 + nikola/data/themes/base/messages/messages_el.py | 1 + nikola/data/themes/base/messages/messages_en.py | 1 + nikola/data/themes/base/messages/messages_eo.py | 1 + nikola/data/themes/base/messages/messages_es.py | 1 + nikola/data/themes/base/messages/messages_et.py | 1 + nikola/data/themes/base/messages/messages_eu.py | 57 +- nikola/data/themes/base/messages/messages_fa.py | 17 +- nikola/data/themes/base/messages/messages_fi.py | 15 +- nikola/data/themes/base/messages/messages_fil.py | 1 + nikola/data/themes/base/messages/messages_fr.py | 1 + nikola/data/themes/base/messages/messages_gl.py | 77 +- nikola/data/themes/base/messages/messages_he.py | 44 + nikola/data/themes/base/messages/messages_hi.py | 17 +- nikola/data/themes/base/messages/messages_hr.py | 15 +- nikola/data/themes/base/messages/messages_hu.py | 1 + nikola/data/themes/base/messages/messages_id.py | 17 +- nikola/data/themes/base/messages/messages_it.py | 1 + nikola/data/themes/base/messages/messages_ja.py | 1 + nikola/data/themes/base/messages/messages_ko.py | 23 +- nikola/data/themes/base/messages/messages_lt.py | 44 + nikola/data/themes/base/messages/messages_nb.py | 1 + nikola/data/themes/base/messages/messages_nl.py | 1 + nikola/data/themes/base/messages/messages_pa.py | 13 +- nikola/data/themes/base/messages/messages_pl.py | 1 + nikola/data/themes/base/messages/messages_pt.py | 1 + nikola/data/themes/base/messages/messages_pt_br.py | 17 +- nikola/data/themes/base/messages/messages_ru.py | 9 +- nikola/data/themes/base/messages/messages_si_lk.py | 1 + nikola/data/themes/base/messages/messages_sk.py | 1 + nikola/data/themes/base/messages/messages_sl.py | 1 + nikola/data/themes/base/messages/messages_sq.py | 44 + nikola/data/themes/base/messages/messages_sr.py | 1 + .../data/themes/base/messages/messages_sr_latin.py | 1 + nikola/data/themes/base/messages/messages_sv.py | 1 + nikola/data/themes/base/messages/messages_te.py | 44 + nikola/data/themes/base/messages/messages_tl.py | 1 + nikola/data/themes/base/messages/messages_tr.py | 21 +- nikola/data/themes/base/messages/messages_uk.py | 9 +- nikola/data/themes/base/messages/messages_ur.py | 3 +- nikola/data/themes/base/messages/messages_zh_cn.py | 39 +- nikola/data/themes/base/messages/messages_zh_tw.py | 77 +- nikola/data/themes/base/templates/author.tmpl | 2 +- nikola/data/themes/base/templates/base_helper.tmpl | 2 +- .../base/templates/comments_helper_disqus.tmpl | 8 +- .../base/templates/comments_helper_facebook.tmpl | 4 +- .../base/templates/comments_helper_isso.tmpl | 2 +- .../base/templates/comments_helper_muut.tmpl | 2 +- nikola/data/themes/base/templates/gallery.tmpl | 2 +- nikola/data/themes/base/templates/index.tmpl | 3 + .../data/themes/base/templates/index_helper.tmpl | 26 +- nikola/data/themes/base/templates/list_post.tmpl | 2 +- nikola/data/themes/base/templates/listing.tmpl | 9 +- nikola/data/themes/base/templates/post_helper.tmpl | 28 +- .../themes/base/templates/post_list_directive.tmpl | 8 +- nikola/data/themes/base/templates/story.tmpl | 2 +- nikola/data/themes/base/templates/tag.tmpl | 2 +- nikola/data/themes/base/templates/tagindex.tmpl | 22 +- .../assets/css/bootstrap-theme.min.css.map | 1 + .../assets/css/bootstrap.min.css.map | 1 + .../themes/bootstrap3-jinja/assets/css/theme.css | 10 +- .../bootstrap3-jinja/assets/js/flowr.plugin.js | 4 +- .../themes/bootstrap3-jinja/templates/base.tmpl | 2 +- .../bootstrap3-jinja/templates/base_helper.tmpl | 15 +- .../themes/bootstrap3-jinja/templates/gallery.tmpl | 1 + .../themes/bootstrap3-jinja/templates/listing.tmpl | 8 +- .../assets/css/bootstrap-theme.min.css.map | 1 + .../bootstrap3/assets/css/bootstrap.min.css.map | 1 + nikola/data/themes/bootstrap3/assets/css/theme.css | 10 +- .../themes/bootstrap3/assets/js/flowr.plugin.js | 4 +- nikola/data/themes/bootstrap3/templates/base.tmpl | 2 +- .../themes/bootstrap3/templates/base_helper.tmpl | 15 +- .../data/themes/bootstrap3/templates/gallery.tmpl | 1 + .../data/themes/bootstrap3/templates/listing.tmpl | 8 +- nikola/filters.py | 42 +- nikola/image_processing.py | 116 +- nikola/nikola.py | 581 ++++++--- nikola/packages/README.md | 2 + nikola/packages/datecond/LICENSE | 30 + nikola/packages/datecond/__init__.py | 85 ++ nikola/plugin_categories.py | 44 +- nikola/plugins/basic_import.py | 37 +- nikola/plugins/command/__init__.py | 2 +- nikola/plugins/command/auto/__init__.py | 18 +- nikola/plugins/command/bootswatch_theme.py | 17 +- nikola/plugins/command/check.py | 40 +- nikola/plugins/command/console.py | 10 +- nikola/plugins/command/deploy.py | 69 +- nikola/plugins/command/github_deploy.py | 101 +- nikola/plugins/command/import_wordpress.py | 177 ++- nikola/plugins/command/init.py | 39 +- nikola/plugins/command/install_theme.py | 94 +- nikola/plugins/command/new_page.py | 2 +- nikola/plugins/command/new_post.py | 40 +- nikola/plugins/command/orphans.py | 2 +- nikola/plugins/command/plugin.py | 23 +- nikola/plugins/command/rst2html/__init__.py | 2 +- nikola/plugins/command/serve.py | 4 +- nikola/plugins/command/status.py | 58 +- nikola/plugins/command/theme.plugin | 13 + nikola/plugins/command/theme.py | 365 ++++++ nikola/plugins/command/version.py | 2 +- nikola/plugins/compile/__init__.py | 2 +- nikola/plugins/compile/html.py | 14 +- nikola/plugins/compile/ipynb.py | 60 +- nikola/plugins/compile/markdown/__init__.py | 16 +- nikola/plugins/compile/markdown/mdx_gist.py | 155 +-- nikola/plugins/compile/markdown/mdx_nikola.py | 2 +- nikola/plugins/compile/markdown/mdx_podcast.py | 2 +- nikola/plugins/compile/pandoc.py | 17 +- nikola/plugins/compile/php.py | 2 +- nikola/plugins/compile/rest/__init__.py | 96 +- nikola/plugins/compile/rest/chart.py | 103 +- nikola/plugins/compile/rest/doc.py | 52 +- nikola/plugins/compile/rest/listing.py | 8 +- nikola/plugins/compile/rest/media.py | 17 +- nikola/plugins/compile/rest/post_list.py | 233 +++- nikola/plugins/compile/rest/slides.py | 2 +- nikola/plugins/compile/rest/soundcloud.py | 17 +- nikola/plugins/compile/rest/thumbnail.py | 2 +- nikola/plugins/compile/rest/vimeo.py | 14 +- nikola/plugins/compile/rest/youtube.py | 18 +- nikola/plugins/misc/__init__.py | 2 +- nikola/plugins/misc/scan_posts.py | 28 +- nikola/plugins/shortcode/gist.plugin | 13 + nikola/plugins/shortcode/gist.py | 56 + nikola/plugins/task/__init__.py | 2 +- nikola/plugins/task/archive.py | 2 +- nikola/plugins/task/authors.py | 32 +- nikola/plugins/task/bundles.py | 2 +- nikola/plugins/task/copy_assets.py | 2 +- nikola/plugins/task/copy_files.py | 2 +- nikola/plugins/task/galleries.py | 58 +- nikola/plugins/task/gzip.py | 2 +- nikola/plugins/task/indexes.py | 72 +- nikola/plugins/task/listings.py | 62 +- nikola/plugins/task/pages.py | 4 +- nikola/plugins/task/posts.py | 2 +- nikola/plugins/task/py3_switch.py | 4 +- nikola/plugins/task/redirect.py | 4 +- nikola/plugins/task/robots.py | 2 +- nikola/plugins/task/rss.py | 5 +- nikola/plugins/task/scale_images.py | 8 +- nikola/plugins/task/sitemap/__init__.py | 6 +- nikola/plugins/task/sources.py | 2 +- nikola/plugins/task/tags.py | 196 +-- nikola/plugins/template/__init__.py | 2 +- nikola/plugins/template/jinja.py | 74 +- nikola/plugins/template/mako.py | 35 +- nikola/post.py | 88 +- nikola/shortcodes.py | 339 +++++ nikola/state.py | 92 ++ nikola/utils.py | 214 +++- nikola/winutils.py | 2 +- 221 files changed, 7331 insertions(+), 4924 deletions(-) create mode 100644 nikola/data/samplesite/pages/1.rst create mode 100644 nikola/data/samplesite/pages/bootstrap-demo.rst create mode 100644 nikola/data/samplesite/pages/charts.txt create mode 120000 nikola/data/samplesite/pages/creating-a-theme.rst create mode 100644 nikola/data/samplesite/pages/dr-nikolas-vendetta.rst create mode 120000 nikola/data/samplesite/pages/extending.txt create mode 120000 nikola/data/samplesite/pages/internals.txt create mode 100644 nikola/data/samplesite/pages/listings-demo.rst create mode 120000 nikola/data/samplesite/pages/manual.rst create mode 120000 nikola/data/samplesite/pages/path_handlers.txt create mode 100644 nikola/data/samplesite/pages/quickref.rst create mode 100644 nikola/data/samplesite/pages/quickstart.rst create mode 100644 nikola/data/samplesite/pages/slides-demo.rst create mode 120000 nikola/data/samplesite/pages/social_buttons.txt create mode 120000 nikola/data/samplesite/pages/theming.rst delete mode 100644 nikola/data/samplesite/stories/1.rst delete mode 100644 nikola/data/samplesite/stories/bootstrap-demo.rst delete mode 100644 nikola/data/samplesite/stories/charts.txt delete mode 120000 nikola/data/samplesite/stories/creating-a-theme.rst delete mode 100644 nikola/data/samplesite/stories/dr-nikolas-vendetta.rst delete mode 120000 nikola/data/samplesite/stories/extending.txt delete mode 120000 nikola/data/samplesite/stories/internals.txt delete mode 100644 nikola/data/samplesite/stories/listings-demo.rst delete mode 120000 nikola/data/samplesite/stories/manual.rst delete mode 120000 nikola/data/samplesite/stories/path_handlers.txt delete mode 100644 nikola/data/samplesite/stories/quickref.rst delete mode 100644 nikola/data/samplesite/stories/quickstart.rst delete mode 100644 nikola/data/samplesite/stories/slides-demo.rst delete mode 120000 nikola/data/samplesite/stories/social_buttons.txt delete mode 120000 nikola/data/samplesite/stories/theming.rst create mode 100644 nikola/data/shortcodes/jinja/raw.tmpl create mode 100644 nikola/data/shortcodes/mako/raw.tmpl delete mode 100644 nikola/data/themes/base-jinja/bundles delete mode 100644 nikola/data/themes/base/assets/js/jquery.min.map create mode 100644 nikola/data/themes/base/messages/messages_he.py create mode 100644 nikola/data/themes/base/messages/messages_lt.py create mode 100644 nikola/data/themes/base/messages/messages_sq.py create mode 100644 nikola/data/themes/base/messages/messages_te.py create mode 120000 nikola/data/themes/bootstrap3-jinja/assets/css/bootstrap-theme.min.css.map create mode 120000 nikola/data/themes/bootstrap3-jinja/assets/css/bootstrap.min.css.map create mode 120000 nikola/data/themes/bootstrap3/assets/css/bootstrap-theme.min.css.map create mode 120000 nikola/data/themes/bootstrap3/assets/css/bootstrap.min.css.map create mode 100644 nikola/packages/datecond/LICENSE create mode 100644 nikola/packages/datecond/__init__.py create mode 100644 nikola/plugins/command/theme.plugin create mode 100644 nikola/plugins/command/theme.py create mode 100644 nikola/plugins/shortcode/gist.plugin create mode 100644 nikola/plugins/shortcode/gist.py create mode 100644 nikola/shortcodes.py create mode 100644 nikola/state.py (limited to 'nikola') diff --git a/nikola/__init__.py b/nikola/__init__.py index 03d83da..a7f6fc6 100644 --- a/nikola/__init__.py +++ b/nikola/__init__.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- -# Copyright © 2012-2015 Roberto Alsina and others. +# Copyright © 2012-2016 Roberto Alsina and others. # Permission is hereby granted, free of charge, to any # person obtaining a copy of this software and associated @@ -29,7 +29,7 @@ from __future__ import absolute_import import os -__version__ = "7.7.3" +__version__ = '7.8.1' DEBUG = bool(os.getenv('NIKOLA_DEBUG')) from .nikola import Nikola # NOQA diff --git a/nikola/__main__.py b/nikola/__main__.py index a4bd989..f002768 100644 --- a/nikola/__main__.py +++ b/nikola/__main__.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- -# Copyright © 2012-2015 Roberto Alsina and others. +# Copyright © 2012-2016 Roberto Alsina and others. # Permission is hereby granted, free of charge, to any # person obtaining a copy of this software and associated @@ -68,7 +68,7 @@ _RETURN_DOITNIKOLA = False def main(args=None): """Run Nikola.""" colorful = False - if sys.stderr.isatty() and os.name != 'nt': + if sys.stderr.isatty() and os.name != 'nt' and os.getenv('NIKOLA_MONO') is None: colorful = True ColorfulStderrHandler._colorful = colorful @@ -332,6 +332,8 @@ class DoitNikola(DoitMain): if args[0] == 'help': self.nikola.init_plugins(commands_only=True) + elif args[0] == 'plugin': + self.nikola.init_plugins(load_all=True) else: self.nikola.init_plugins() diff --git a/nikola/conf.py.in b/nikola/conf.py.in index 7ef6927..5010278 100644 --- a/nikola/conf.py.in +++ b/nikola/conf.py.in @@ -95,12 +95,12 @@ THEME_COLOR = '#5670d4' # POSTS and PAGES contains (wildcard, destination, template) tuples. # -# The wildcard is used to generate a list of reSt source files -# (whatever/thing.txt). +# The wildcard is used to generate a list of source files +# (whatever/thing.rst, for example). # # That fragment could have an associated metadata file (whatever/thing.meta), # and optionally translated files (example for Spanish, with code "es"): -# whatever/thing.es.txt and whatever/thing.es.meta +# whatever/thing.es.rst and whatever/thing.es.meta # # This assumes you use the default TRANSLATIONS_PATTERN. # @@ -109,13 +109,15 @@ THEME_COLOR = '#5670d4' # # These files are combined with the template to produce rendered # pages, which will be placed at -# output / TRANSLATIONS[lang] / destination / pagename.html +# output/TRANSLATIONS[lang]/destination/pagename.html # # where "pagename" is the "slug" specified in the metadata file. +# The page might also be placed in /destination/pagename/index.html +# if PRETTY_URLS are enabled. # # The difference between POSTS and PAGES is that POSTS are added -# to feeds and are considered part of a blog, while PAGES are -# just independent HTML pages. +# to feeds, indexes, tag lists and archives and are considered part +# of a blog, while PAGES are just independent HTML pages. # POSTS = ${POSTS} @@ -168,14 +170,18 @@ TIMEZONE = ${TIMEZONE} # LOCALE_DEFAULT = locale to use for languages not mentioned in LOCALES; if # not set the default Nikola mapping is used. +# LOCALES = {} +# LOCALE_FALLBACK = None +# LOCALE_DEFAULT = None + # One or more folders containing files to be copied as-is into the output. # The format is a dictionary of {source: relative destination}. # Default is: # FILES_FOLDERS = {'files': ''} # Which means copy 'files' into 'output' -# One or more folders containing listings to be processed and stored into -# the output. The format is a dictionary of {source: relative destination}. +# One or more folders containing code listings to be processed and published on +# the site. The format is a dictionary of {source: relative destination}. # Default is: # LISTINGS_FOLDERS = {'listings': 'listings'} # Which means process listings from 'listings' into 'output/listings' @@ -271,12 +277,12 @@ POSTS_SECTIONS = True # output / TRANSLATION[lang] / TAG_PATH / index.html (list of tags) # output / TRANSLATION[lang] / TAG_PATH / tag.html (list of posts for a tag) # output / TRANSLATION[lang] / TAG_PATH / tag.xml (RSS feed for a tag) - # (translatable) +# (translatable) # TAG_PATH = "categories" # See TAG_PATH's "list of tags" for the default setting value. Can be overwritten # here any path relative to the output directory. - # (translatable) +# (translatable) # TAGS_INDEX_PATH = "tags.html" # If TAG_PAGES_ARE_INDEXES is set to True, each tag's page will contain @@ -391,6 +397,12 @@ HIDDEN_AUTHORS = ['Guest'] # output / TRANSLATION[lang] / INDEX_PATH / index-*.html # INDEX_PATH = "" +# Optional HTML that displayed on “main” blog index.html files. +# May be used for a greeting. (translatable) +FRONT_INDEX_HEADER = { + DEFAULT_LANG: '' +} + # Create per-month archives instead of per-year # CREATE_MONTHLY_ARCHIVE = False # Create one large archive instead of per-year @@ -422,9 +434,12 @@ HIDDEN_AUTHORS = ['Guest'] # If USE_BASE_TAG is True, then all HTML files will include # something like to help # the browser resolve relative links. -# In some rare cases, this will be a problem, and you can -# disable it by setting USE_BASE_TAG to False. -# USE_BASE_TAG = True +# Most people don’t need this tag; major websites don’t use it. Use +# only if you know what you’re doing. If this is True, your website +# will not be fully usable by manually opening .html files in your web +# browser (`nikola serve` or `nikola auto` is mandatory). Also, if you +# have mirrors of your site, they will point to SITE_URL everywhere. +USE_BASE_TAG = False # Final location for the blog main RSS feed is: # output / TRANSLATION[lang] / RSS_PATH / rss.xml @@ -463,13 +478,19 @@ REDIRECTIONS = ${REDIRECTIONS} # ] # } -# For user.github.io OR organization.github.io pages, the DEPLOY branch -# MUST be 'master', and 'gh-pages' for other repositories. -# GITHUB_SOURCE_BRANCH = 'master' -# GITHUB_DEPLOY_BRANCH = 'gh-pages' +# github_deploy configuration +# For more details, read the manual: +# https://getnikola.com/handbook.html#deploying-to-github +# You will need to configure the deployment branch on GitHub. +GITHUB_SOURCE_BRANCH = 'src' +GITHUB_DEPLOY_BRANCH = 'master' # The name of the remote where you wish to push to, using github_deploy. -# GITHUB_REMOTE_NAME = 'origin' +GITHUB_REMOTE_NAME = 'origin' + +# Whether or not github_deploy should commit to the source branch automatically +# before deploying. +GITHUB_COMMIT_SOURCE = True # Where the output site should be located # If you don't use an absolute path, it will be considered as relative @@ -555,12 +576,60 @@ REDIRECTIONS = ${REDIRECTIONS} # # If set to False, it will sort by filename instead. Defaults to True # GALLERY_SORT_BY_DATE = True + +# If set to True, EXIF data will be copied when an image is thumbnailed or +# resized. (See also EXIF_WHITELIST) +# PRESERVE_EXIF_DATA = False + +# If you have enabled PRESERVE_EXIF_DATA, this option lets you choose EXIF +# fields you want to keep in images. (See also PRESERVE_EXIF_DATA) +# +# For a full list of field names, please see here: +# http://www.cipa.jp/std/documents/e/DC-008-2012_E.pdf # -# Folders containing images to be used in normal posts or pages. Images will be -# scaled down according to IMAGE_THUMBNAIL_SIZE and MAX_IMAGE_SIZE options, but -# will have to be referenced manually to be visible on the site +# This is a dictionary of lists. Each key in the dictionary is the +# name of a IDF, and each list item is a field you want to preserve. +# If you have a IDF with only a '*' item, *EVERY* item in it will be +# preserved. If you don't want to preserve anything in a IDF, remove it +# from the setting. By default, no EXIF information is kept. +# Setting the whitelist to anything other than {} implies +# PRESERVE_EXIF_DATA is set to True +# To preserve ALL EXIF data, set EXIF_WHITELIST to {"*": "*"} + +# EXIF_WHITELIST = {} + +# Some examples of EXIF_WHITELIST settings: + +# Basic image information: +# EXIF_WHITELIST['0th'] = [ +# "Orientation", +# "XResolution", +# "YResolution", +# ] + +# If you want to keep GPS data in the images: +# EXIF_WHITELIST['GPS'] = ["*"] + +# Embedded thumbnail information: +# EXIF_WHITELIST['1st'] = ["*"] + +# Folders containing images to be used in normal posts or pages. +# IMAGE_FOLDERS is a dictionary of the form {"source": "destination"}, +# where "source" is the folder containing the images to be published, and +# "destination" is the folder under OUTPUT_PATH containing the images copied +# to the site. Thumbnail images will be created there as well. + +# To reference the images in your posts, include a leading slash in the path. +# For example, if IMAGE_FOLDERS = {'images': 'images'}, write +# +# ..image:: /images/tesla.jpg +# +# See the Nikola Handbook for details (in the “Embedding Images” and +# “Thumbnails” sections) + +# Images will be scaled down according to IMAGE_THUMBNAIL_SIZE and MAX_IMAGE_SIZE +# options, but will have to be referenced manually to be visible on the site # (the thumbnail has ``.thumbnail`` added before the file extension). -# The format is a dictionary of {source: relative destination}. IMAGE_FOLDERS = {'images': 'images'} # IMAGE_THUMBNAIL_SIZE = 400 @@ -751,13 +820,13 @@ COMMENT_SYSTEM_ID = ${COMMENT_SYSTEM_ID} # the "noannotations" metadata. # ANNOTATIONS = False -# Create index.html for page (story) folders? +# Create index.html for page folders? # WARNING: if a page would conflict with the index file (usually -# caused by setting slug to `index`), the STORY_INDEX +# caused by setting slug to `index`), the PAGE_INDEX # will not be generated for that directory. -# STORY_INDEX = False -# Enable comments on story pages? -# COMMENTS_IN_STORIES = False +# PAGE_INDEX = False +# Enable comments on pages (i.e. not posts)? +# COMMENTS_IN_PAGES = False # Enable comments on picture gallery pages? # COMMENTS_IN_GALLERIES = False @@ -835,9 +904,20 @@ PRETTY_URLS = ${PRETTY_URLS} # it's faster and the output looks better. # If you set USE_KATEX to True, you also need to add an extra CSS file # like this: -# EXTRA_HEAD_DATA = """""" +# EXTRA_HEAD_DATA = """""" # USE_KATEX = False +# If you want to use the old (buggy) inline math $.$ with KaTeX, then +# you might want to use this feature. +# KATEX_AUTO_RENDER = """ +# delimiters: [ +# {left: "$$", right: "$$", display: true}, +# {left: "\\\[", right: "\\\]", display: true}, +# {left: "$", right: "$", display: false}, +# {left: "\\\(", right: "\\\)", display: false} +# ] +# """ + # Do you want to customize the nbconversion of your IPython notebook? # IPYNB_CONFIG = {} # With the following example configuration you can use a custom jinja template @@ -855,6 +935,8 @@ MARKDOWN_EXTENSIONS = ['fenced_code', 'codehilite', 'extra'] # Extra options to pass to the pandoc comand. # by default, it's empty, is a list of strings, for example # ['-F', 'pandoc-citeproc', '--bibliography=/Users/foo/references.bib'] +# Pandoc does not demote headers by default. To enable this, you can use, for example +# ['--base-header-level=2'] # PANDOC_OPTIONS = [] # Social buttons. This is sample code for AddThis (which was the default for a @@ -871,7 +953,7 @@ MARKDOWN_EXTENSIONS = ['fenced_code', 'codehilite', 'extra'] #
  • # # -# +# # # """ @@ -932,7 +1014,7 @@ MARKDOWN_EXTENSIONS = ['fenced_code', 'codehilite', 'extra'] # # SEARCH_FORM = """ # -#