@@ -5,7 +5,6 @@ Contains classes to combine files into one | |||||
from fnmatch import fnmatch | from fnmatch import fnmatch | ||||
from hyde.model import Expando | |||||
from hyde.plugin import Plugin | from hyde.plugin import Plugin | ||||
import operator | import operator | ||||
@@ -131,4 +130,4 @@ class CombinePlugin(Plugin): | |||||
if where == "top": | if where == "top": | ||||
return "".join([r.source.read_all() for r in resources] + [text]) | return "".join([r.source.read_all() for r in resources] + [text]) | ||||
else: | else: | ||||
return "".join([text] + [r.source.read_all() for r in resources]) | |||||
return "".join([text] + [r.source.read_all() for r in resources]) |
@@ -6,7 +6,6 @@ Depends plugin | |||||
""" | """ | ||||
from hyde.plugin import Plugin | from hyde.plugin import Plugin | ||||
import re | |||||
class DependsPlugin(Plugin): | class DependsPlugin(Plugin): | ||||
""" | """ | ||||
@@ -57,4 +56,4 @@ class DependsPlugin(Plugin): | |||||
resource=resource, | resource=resource, | ||||
site=self.site, | site=self.site, | ||||
context=self.site.context)) | context=self.site.context)) | ||||
resource.depends = list(set(resource.depends)) | |||||
resource.depends = list(set(resource.depends)) |
@@ -210,4 +210,4 @@ class GrouperPlugin(Plugin): | |||||
for prev, next in pairwalk(walker): | for prev, next in pairwalk(walker): | ||||
setattr(next, prev_att, prev) | setattr(next, prev_att, prev) | ||||
setattr(prev, next_att, next) | |||||
setattr(prev, next_att, next) |
@@ -2,6 +2,7 @@ | |||||
""" | """ | ||||
Contains classes and utilities related to meta data in hyde. | Contains classes and utilities related to meta data in hyde. | ||||
""" | """ | ||||
import re | import re | ||||
from hyde.model import Expando | from hyde.model import Expando | ||||
from hyde.plugin import Plugin | from hyde.plugin import Plugin | ||||
@@ -3,6 +3,7 @@ | |||||
Paginator plugin. Groups a sorted set of resources into pages and supplies | Paginator plugin. Groups a sorted set of resources into pages and supplies | ||||
each page to a copy of the original resource. | each page to a copy of the original resource. | ||||
""" | """ | ||||
import os | import os | ||||
from hyde.plugin import Plugin | from hyde.plugin import Plugin | ||||
@@ -56,7 +56,6 @@ logger = getLoggerWithNullHandler('hyde.ext.plugins.sphinx') | |||||
try: | try: | ||||
import sphinx | import sphinx | ||||
from sphinx.builders.html import JSONHTMLBuilder | from sphinx.builders.html import JSONHTMLBuilder | ||||
from sphinx.util.osutil import SEP | |||||
except ImportError: | except ImportError: | ||||
logger.error("The sphinx plugin requires sphinx.") | logger.error("The sphinx plugin requires sphinx.") | ||||
logger.error("`pip install -U sphinx` to get it.") | logger.error("`pip install -U sphinx` to get it.") | ||||
@@ -3,7 +3,6 @@ | |||||
Contains classes and utilities related to tagging | Contains classes and utilities related to tagging | ||||
resources in hyde. | resources in hyde. | ||||
""" | """ | ||||
from hyde.model import Expando | from hyde.model import Expando | ||||
from hyde.plugin import Plugin | from hyde.plugin import Plugin | ||||
from hyde.site import Node | from hyde.site import Node | ||||
@@ -2,7 +2,6 @@ | |||||
""" | """ | ||||
Contains classes and utilities related to hyde urls. | Contains classes and utilities related to hyde urls. | ||||
""" | """ | ||||
from hyde.plugin import Plugin | from hyde.plugin import Plugin | ||||
from hyde.site import Site | from hyde.site import Site | ||||