Skip to content
Permalink
Browse files

Move plugins site to a subdirectory

Signed-off-by: Chris Warrick <kwpolska@gmail.com>
  • Loading branch information
Kwpolska committed Jan 8, 2017
1 parent 0ed7d77 commit e45402a9cccd64a6110870d262221a0287a75a4a
Showing with 10 additions and 8 deletions.
  1. +0 −1 plugins/pkgindex
  2. +0 −1 plugins/pkgindex_compiler
  3. +0 −1 plugins/pkgindex_scan
  4. +0 −1 plugins/pkgindex_zip
  5. +1 −2 { → site}/conf.py
  6. BIN { → site}/files/__data__/book-figure-screenshot.png
  7. BIN { → site}/files/__data__/link-figure-screenshot.png
  8. BIN { → site}/files/__data__/publication-list-screenshot.png
  9. 0 { → site}/files/assets/css/custom.css
  10. 0 { → site}/files/assets/css/pkgindex.css
  11. 0 { → site}/files/assets/js/pkgindex.js
  12. 0 { → site}/pages/categories/Command.rst
  13. 0 { → site}/pages/categories/Compiler.rst
  14. 0 { → site}/pages/categories/CompilerExtension.rst
  15. 0 { → site}/pages/categories/ConfigPlugin.rst
  16. 0 { → site}/pages/categories/LateTask.rst
  17. 0 { → site}/pages/categories/PostScanner.rst
  18. 0 { → site}/pages/categories/ShortcodePlugin.rst
  19. 0 { → site}/pages/categories/SignalHandler.rst
  20. 0 { → site}/pages/categories/Task.rst
  21. 0 { → site}/pages/categories/TaskMultiplier.rst
  22. 0 { → site}/pages/categories/TemplateSystem.rst
  23. 0 { → site}/pages/categories/gen.py
  24. 0 { → site}/pages/categories/index.rst
  25. 0 { → site}/pages/index.rst
  26. 0 { → site}/pages/sidemenu.rst
  27. 0 { → site}/pages/v7.rst
  28. 0 { → site}/plugins/__init__.py
  29. +1 −0 site/plugins/pkgindex
  30. +1 −0 site/plugins/pkgindex_compiler
  31. +1 −0 site/plugins/pkgindex_scan
  32. +1 −0 site/plugins/pkgindex_zip
  33. 0 { → site}/site-requirements.txt
  34. 0 { → site}/templates/base.tmpl
  35. 0 { → site}/templates/generic_post_list.tmpl
  36. 0 { → site}/templates/plugin.tmpl
  37. 0 { → site}/templates/plugin_list.tmpl
  38. 0 { → site}/templates/sidemenu.tmpl
  39. 0 { → site}/templates/sidemenu_list.tmpl
  40. 0 { → site}/themes/cerulean/assets/css/bootstrap.css
  41. 0 { → site}/themes/cerulean/assets/css/bootstrap.min.css
  42. 0 { → site}/themes/cerulean/parent
  43. +1 −0 site/v7
  44. +4 −2 v7/pkgindex_compiler/pkgindex_compiler.py

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

@@ -1,7 +1,6 @@
# -*- coding: utf-8 -*-

from __future__ import unicode_literals
import time

# !! This is the configuration of Nikola. !! #
# !! You should edit it to your liking. !! #
@@ -47,7 +46,7 @@
)

# Output folder -- change if using locally
OUTPUT_FOLDER = '/srv/www/plugins.getnikola.com:80'
# OUTPUT_FOLDER = '/srv/www/plugins.getnikola.com:80'

# Nikola is multilingual!
#
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
@@ -43,6 +43,8 @@ def dirname_as_title(post, pkg_dir, config):


def _version_from_path(path):
if path.startswith('../'):
path = path[3:]
return int(path.split('/')[0].split('v')[-1])


@@ -99,7 +101,7 @@ def parse_plugin_file(post, pkg_dir, config):

data['tests'] = _cp_try_get(c, 'Core', 'Tests')
except Exception as e:
raise Exception('Exception while reading plugin config "{0}": {1}'.format(ini, e))
raise Exception('Exception while reading plugin config "{0}": {1}'.format(ini, e)) from e
else:
raise ValueError('Plugin {0} has no .plugin file in the main '
'directory.'.format(plugin))
@@ -169,7 +171,7 @@ def set_site(self, site):
"""Set site for the compiler."""
# Workaround for plugins site (which includes those plugins, and makes
# tests fail)
if 'PKGINDEX_CONFIG' in self.config:
if 'PKGINDEX_CONFIG' in site.config:
self.config = site.config['PKGINDEX_CONFIG']
self.pi_enabled = True
super(CompilePackageIndexEntries, self).set_site(site)

0 comments on commit e45402a

Please sign in to comment.
You can’t perform that action at this time.