Skip to content

Commit

Permalink
Standardize on PluginCategory spelling
Browse files Browse the repository at this point in the history
Signed-off-by: Chris Warrick <kwpolska@gmail.com>
  • Loading branch information
Kwpolska committed Jan 7, 2017
1 parent 7ce23c2 commit e3749be
Show file tree
Hide file tree
Showing 67 changed files with 68 additions and 68 deletions.
4 changes: 2 additions & 2 deletions nikola/nikola.py
Expand Up @@ -1013,7 +1013,7 @@ def init_plugins(self, commands_only=False, load_all=False):
if not load_all:
for p in self.plugin_manager._candidates:
if commands_only:
if p[-1].details.has_option('Nikola', 'plugincategory'):
if p[-1].details.has_option('Nikola', 'PluginCategory'):
# FIXME TemplateSystem should not be needed
if p[-1].details.get('Nikola', 'PluginCategory') not in {'Command', 'Template'}:
bad_candidates.add(p)
Expand All @@ -1026,7 +1026,7 @@ def init_plugins(self, commands_only=False, load_all=False):
self.disabled_compilers[p[-1].name] = p
utils.LOGGER.debug('Not loading unneeded compiler {}', p[-1].name)
if p[-1].name not in self.config['COMPILERS'] and \
p[-1].details.has_option('Nikola', 'plugincategory') and p[-1].details.get('Nikola', 'PluginCategory') in ('Compiler', 'PageCompiler'):
p[-1].details.has_option('Nikola', 'PluginCategory') and p[-1].details.get('Nikola', 'PluginCategory') in ('Compiler', 'PageCompiler'):
bad_candidates.add(p)
self.disabled_compilers[p[-1].name] = p
utils.LOGGER.debug('Not loading unneeded compiler {}', p[-1].name)
Expand Down
2 changes: 1 addition & 1 deletion nikola/plugins/command/auto.plugin
Expand Up @@ -9,5 +9,5 @@ website = https://getnikola.com/
description = Automatically detect site changes, rebuild and optionally refresh a browser.

[Nikola]
plugincategory = Command
PluginCategory = Command

2 changes: 1 addition & 1 deletion nikola/plugins/command/bootswatch_theme.plugin
Expand Up @@ -9,5 +9,5 @@ website = https://getnikola.com/
description = Given a swatch name and a parent theme, creates a custom theme.

[Nikola]
plugincategory = Command
PluginCategory = Command

2 changes: 1 addition & 1 deletion nikola/plugins/command/check.plugin
Expand Up @@ -9,5 +9,5 @@ website = https://getnikola.com/
description = Check the generated site

[Nikola]
plugincategory = Command
PluginCategory = Command

2 changes: 1 addition & 1 deletion nikola/plugins/command/console.plugin
Expand Up @@ -9,5 +9,5 @@ website = https://getnikola.com/
description = Start a debugging python console

[Nikola]
plugincategory = Command
PluginCategory = Command

2 changes: 1 addition & 1 deletion nikola/plugins/command/deploy.plugin
Expand Up @@ -9,5 +9,5 @@ website = https://getnikola.com/
description = Deploy the site

[Nikola]
plugincategory = Command
PluginCategory = Command

2 changes: 1 addition & 1 deletion nikola/plugins/command/github_deploy.plugin
Expand Up @@ -9,5 +9,5 @@ website = https://getnikola.com/
description = Deploy the site to GitHub pages.

[Nikola]
plugincategory = Command
PluginCategory = Command

2 changes: 1 addition & 1 deletion nikola/plugins/command/import_wordpress.plugin
Expand Up @@ -9,5 +9,5 @@ website = https://getnikola.com/
description = Import a wordpress site from a XML dump (requires markdown).

[Nikola]
plugincategory = Command
PluginCategory = Command

2 changes: 1 addition & 1 deletion nikola/plugins/command/init.plugin
Expand Up @@ -9,5 +9,5 @@ website = https://getnikola.com/
description = Create a new site.

[Nikola]
plugincategory = Command
PluginCategory = Command

2 changes: 1 addition & 1 deletion nikola/plugins/command/install_theme.plugin
Expand Up @@ -9,5 +9,5 @@ website = https://getnikola.com/
description = Install a theme into the current site.

[Nikola]
plugincategory = Command
PluginCategory = Command

2 changes: 1 addition & 1 deletion nikola/plugins/command/new_page.plugin
Expand Up @@ -9,5 +9,5 @@ website = https://getnikola.com/
description = Create a new page.

[Nikola]
plugincategory = Command
PluginCategory = Command

2 changes: 1 addition & 1 deletion nikola/plugins/command/new_post.plugin
Expand Up @@ -9,5 +9,5 @@ website = https://getnikola.com/
description = Create a new post.

[Nikola]
plugincategory = Command
PluginCategory = Command

2 changes: 1 addition & 1 deletion nikola/plugins/command/orphans.plugin
Expand Up @@ -9,5 +9,5 @@ website = https://getnikola.com/
description = List all orphans

[Nikola]
plugincategory = Command
PluginCategory = Command

2 changes: 1 addition & 1 deletion nikola/plugins/command/plugin.plugin
Expand Up @@ -9,5 +9,5 @@ website = https://getnikola.com/
description = Manage Nikola plugins

[Nikola]
plugincategory = Command
PluginCategory = Command

2 changes: 1 addition & 1 deletion nikola/plugins/command/rst2html.plugin
Expand Up @@ -9,5 +9,5 @@ website = https://getnikola.com/
description = Compile reStructuredText to HTML using the Nikola architecture

[Nikola]
plugincategory = Command
PluginCategory = Command

2 changes: 1 addition & 1 deletion nikola/plugins/command/serve.plugin
Expand Up @@ -9,5 +9,5 @@ website = https://getnikola.com/
description = Start test server.

[Nikola]
plugincategory = Command
PluginCategory = Command

2 changes: 1 addition & 1 deletion nikola/plugins/command/status.plugin
Expand Up @@ -9,5 +9,5 @@ website = https://getnikola.com
description = Site status

[Nikola]
plugincategory = Command
PluginCategory = Command

2 changes: 1 addition & 1 deletion nikola/plugins/command/theme.plugin
Expand Up @@ -9,5 +9,5 @@ website = https://getnikola.com/
description = Manage Nikola themes

[Nikola]
plugincategory = Command
PluginCategory = Command

2 changes: 1 addition & 1 deletion nikola/plugins/command/version.plugin
Expand Up @@ -9,5 +9,5 @@ website = https://getnikola.com/
description = Show nikola version

[Nikola]
plugincategory = Command
PluginCategory = Command

2 changes: 1 addition & 1 deletion nikola/plugins/compile/html.plugin
Expand Up @@ -9,5 +9,5 @@ website = https://getnikola.com/
description = Compile HTML into HTML (just copy)

[Nikola]
plugincategory = Compiler
PluginCategory = Compiler
friendlyname = HTML
2 changes: 1 addition & 1 deletion nikola/plugins/compile/ipynb.plugin
Expand Up @@ -9,5 +9,5 @@ website = http://www.damian.oquanta.info/
description = Compile IPython notebooks into Nikola posts

[Nikola]
plugincategory = Compiler
PluginCategory = Compiler
friendlyname = Jupyter/IPython Notebook
2 changes: 1 addition & 1 deletion nikola/plugins/compile/markdown.plugin
Expand Up @@ -9,5 +9,5 @@ website = https://getnikola.com/
description = Compile Markdown into HTML

[Nikola]
plugincategory = Compiler
PluginCategory = Compiler
friendlyname = Markdown
2 changes: 1 addition & 1 deletion nikola/plugins/compile/markdown/mdx_gist.plugin
Expand Up @@ -4,7 +4,7 @@ module = mdx_gist

[Nikola]
compiler = markdown
plugincategory = CompilerExtension
PluginCategory = CompilerExtension

[Documentation]
author = Roberto Alsina
Expand Down
2 changes: 1 addition & 1 deletion nikola/plugins/compile/markdown/mdx_nikola.plugin
Expand Up @@ -4,7 +4,7 @@ module = mdx_nikola

[Nikola]
compiler = markdown
plugincategory = CompilerExtension
PluginCategory = CompilerExtension

[Documentation]
author = Roberto Alsina
Expand Down
2 changes: 1 addition & 1 deletion nikola/plugins/compile/markdown/mdx_podcast.plugin
Expand Up @@ -4,7 +4,7 @@ module = mdx_podcast

[Nikola]
compiler = markdown
plugincategory = CompilerExtension
PluginCategory = CompilerExtension

[Documentation]
author = Roberto Alsina
Expand Down
2 changes: 1 addition & 1 deletion nikola/plugins/compile/pandoc.plugin
Expand Up @@ -9,5 +9,5 @@ website = https://getnikola.com/
description = Compile markups into HTML using pandoc

[Nikola]
plugincategory = Compiler
PluginCategory = Compiler
friendlyname = Pandoc
2 changes: 1 addition & 1 deletion nikola/plugins/compile/php.plugin
Expand Up @@ -9,5 +9,5 @@ website = https://getnikola.com/
description = Compile PHP into HTML (just copy and name the file .php)

[Nikola]
plugincategory = Compiler
PluginCategory = Compiler
friendlyname = PHP
2 changes: 1 addition & 1 deletion nikola/plugins/compile/rest.plugin
Expand Up @@ -9,5 +9,5 @@ website = https://getnikola.com/
description = Compile reSt into HTML

[Nikola]
plugincategory = Compiler
PluginCategory = Compiler
friendlyname = reStructuredText
2 changes: 1 addition & 1 deletion nikola/plugins/compile/rest/chart.plugin
Expand Up @@ -4,7 +4,7 @@ module = chart

[Nikola]
compiler = rest
plugincategory = CompilerExtension
PluginCategory = CompilerExtension

[Documentation]
author = Roberto Alsina
Expand Down
2 changes: 1 addition & 1 deletion nikola/plugins/compile/rest/doc.plugin
Expand Up @@ -4,7 +4,7 @@ module = doc

[Nikola]
compiler = rest
plugincategory = CompilerExtension
PluginCategory = CompilerExtension

[Documentation]
author = Manuel Kaufmann
Expand Down
2 changes: 1 addition & 1 deletion nikola/plugins/compile/rest/gist.plugin
Expand Up @@ -4,7 +4,7 @@ module = gist

[Nikola]
compiler = rest
plugincategory = CompilerExtension
PluginCategory = CompilerExtension

[Documentation]
author = Roberto Alsina
Expand Down
2 changes: 1 addition & 1 deletion nikola/plugins/compile/rest/listing.plugin
Expand Up @@ -4,7 +4,7 @@ module = listing

[Nikola]
compiler = rest
plugincategory = CompilerExtension
PluginCategory = CompilerExtension

[Documentation]
author = Roberto Alsina
Expand Down
2 changes: 1 addition & 1 deletion nikola/plugins/compile/rest/media.plugin
Expand Up @@ -4,7 +4,7 @@ module = media

[Nikola]
compiler = rest
plugincategory = CompilerExtension
PluginCategory = CompilerExtension

[Documentation]
author = Roberto Alsina
Expand Down
2 changes: 1 addition & 1 deletion nikola/plugins/compile/rest/post_list.plugin
Expand Up @@ -4,7 +4,7 @@ module = post_list

[Nikola]
compiler = rest
plugincategory = CompilerExtension
PluginCategory = CompilerExtension

[Documentation]
author = Udo Spallek
Expand Down
2 changes: 1 addition & 1 deletion nikola/plugins/compile/rest/slides.plugin
Expand Up @@ -4,7 +4,7 @@ module = slides

[Nikola]
compiler = rest
plugincategory = CompilerExtension
PluginCategory = CompilerExtension

[Documentation]
author = Roberto Alsina
Expand Down
2 changes: 1 addition & 1 deletion nikola/plugins/compile/rest/soundcloud.plugin
Expand Up @@ -4,7 +4,7 @@ module = soundcloud

[Nikola]
compiler = rest
plugincategory = CompilerExtension
PluginCategory = CompilerExtension

[Documentation]
author = Roberto Alsina
Expand Down
2 changes: 1 addition & 1 deletion nikola/plugins/compile/rest/thumbnail.plugin
Expand Up @@ -4,7 +4,7 @@ module = thumbnail

[Nikola]
compiler = rest
plugincategory = CompilerExtension
PluginCategory = CompilerExtension

[Documentation]
author = Pelle Nilsson
Expand Down
2 changes: 1 addition & 1 deletion nikola/plugins/compile/rest/vimeo.plugin
Expand Up @@ -4,7 +4,7 @@ module = vimeo

[Nikola]
compiler = rest
plugincategory = CompilerExtension
PluginCategory = CompilerExtension

[Documentation]
description = Vimeo directive
Expand Down
2 changes: 1 addition & 1 deletion nikola/plugins/compile/rest/youtube.plugin
Expand Up @@ -4,7 +4,7 @@ module = youtube

[Nikola]
compiler = rest
plugincategory = CompilerExtension
PluginCategory = CompilerExtension

[Documentation]
version = 0.1
Expand Down
2 changes: 1 addition & 1 deletion nikola/plugins/misc/post_encryption.plugin
Expand Up @@ -9,4 +9,4 @@ Website = https://getnikola.com/
Description = Encrypt posts with passwords

[Nikola]
plugincategory = SignalHandler
PluginCategory = SignalHandler
2 changes: 1 addition & 1 deletion nikola/plugins/misc/taxonomies_classifier.plugin
Expand Up @@ -9,4 +9,4 @@ website = https://getnikola.com/
description = Classifies the timeline into taxonomies.

[Nikola]
plugincategory = SignalHandler
PluginCategory = SignalHandler
2 changes: 1 addition & 1 deletion nikola/plugins/shortcode/gist.plugin
Expand Up @@ -3,7 +3,7 @@ name = gist
module = gist

[Nikola]
plugincategory = Shortcode
PluginCategory = Shortcode

[Documentation]
author = Roberto Alsina
Expand Down
2 changes: 1 addition & 1 deletion nikola/plugins/task/archive.plugin
Expand Up @@ -9,5 +9,5 @@ website = https://getnikola.com/
description = Generates the blog's archive pages.

[Nikola]
plugincategory = Taxonomy
PluginCategory = Taxonomy

2 changes: 1 addition & 1 deletion nikola/plugins/task/authors.plugin
Expand Up @@ -9,4 +9,4 @@ Website = http://getnikola.com
Description = Render the author pages and feeds.

[Nikola]
plugincategory = Taxonomy
PluginCategory = Taxonomy
2 changes: 1 addition & 1 deletion nikola/plugins/task/bundles.plugin
Expand Up @@ -9,5 +9,5 @@ website = https://getnikola.com/
description = Theme bundles using WebAssets

[Nikola]
plugincategory = Task
PluginCategory = Task

2 changes: 1 addition & 1 deletion nikola/plugins/task/categories.plugin
Expand Up @@ -9,4 +9,4 @@ website = https://getnikola.com/
description = Render the category pages and feeds.

[Nikola]
plugincategory = Taxonomy
PluginCategory = Taxonomy
2 changes: 1 addition & 1 deletion nikola/plugins/task/copy_assets.plugin
Expand Up @@ -9,5 +9,5 @@ website = https://getnikola.com/
description = Copy theme assets into output.

[Nikola]
plugincategory = Task
PluginCategory = Task

2 changes: 1 addition & 1 deletion nikola/plugins/task/copy_files.plugin
Expand Up @@ -9,5 +9,5 @@ website = https://getnikola.com/
description = Copy static files into the output.

[Nikola]
plugincategory = Task
PluginCategory = Task

2 changes: 1 addition & 1 deletion nikola/plugins/task/galleries.plugin
Expand Up @@ -9,5 +9,5 @@ website = https://getnikola.com/
description = Create image galleries automatically.

[Nikola]
plugincategory = Task
PluginCategory = Task

2 changes: 1 addition & 1 deletion nikola/plugins/task/gzip.plugin
Expand Up @@ -9,5 +9,5 @@ website = https://getnikola.com/
description = Create gzipped copies of files

[Nikola]
plugincategory = Task
PluginCategory = Task

2 changes: 1 addition & 1 deletion nikola/plugins/task/indexes.plugin
Expand Up @@ -9,4 +9,4 @@ website = https://getnikola.com/
description = Generates the blog's index pages.

[Nikola]
plugincategory = Taxonomy
PluginCategory = Taxonomy
2 changes: 1 addition & 1 deletion nikola/plugins/task/listings.plugin
Expand Up @@ -9,5 +9,5 @@ website = https://getnikola.com/
description = Render code listings into output

[Nikola]
plugincategory = Task
PluginCategory = Task

0 comments on commit e3749be

Please sign in to comment.