Skip to content
Permalink
Browse files

pkgindex: implement supported_extensions

Signed-off-by: Chris Warrick <kwpolska@gmail.com>
  • Loading branch information
Kwpolska committed Apr 2, 2017
1 parent 5e173f6 commit 074be6391017d86d96e74037f40acb40dbcb3c8a
@@ -242,12 +242,9 @@
("posts/*.rst", "posts", "post.tmpl"),
("posts/*.md", "posts", "post.tmpl"),
("posts/*.plugin", "posts", "post.tmpl"),
("posts/*.html", "posts", "post.tmpl"),
)
PAGES = (
("pages/*.rst", "", "story.tmpl"),
("pages/*.txt", "", "story.tmpl"),
("pages/*.html", "", "story.tmpl"),
)


@@ -8,6 +8,6 @@ MinVersion = 7.8.2

[Documentation]
Author = Chris Warrick
Version = 0.2.0
Version = 0.2.1
Website = https://plugins.getnikola.com/
Description = Generate package indexes (meta-plugin)
@@ -8,6 +8,6 @@ MinVersion = 7.8.1+

[Documentation]
Author = Chris Warrick, Roberto Alsina
Version = 0.2.0
Version = 0.2.1
Website = https://plugins.getnikola.com/
Description = Compile pages in package indexes
@@ -8,6 +8,6 @@ MinVersion = 7.8.1+

[Documentation]
Author = Chris Warrick
Version = 0.2.0
Version = 0.2.1
Website = https://plugins.getnikola.com/
Description = Scan packages for package indexes
@@ -90,3 +90,9 @@ def scan(self):
self.site.pkgindex_entries[topdir].append(post)

return timeline

def supported_extensions(self):
"""Return a list of supported file extensions, or None if such a list isn't known beforehand."""
if 'PKGINDEX_CONFIG' not in self.site.config:
return None
return [self.site.config['PKGINDEX_CONFIG']['extension']]
@@ -8,6 +8,6 @@ MinVersion = 7.8.1+

[Documentation]
Author = Chris Warrick
Version = 0.2.0
Version = 0.2.1
Website = https://plugins.getnikola.com/
Description = Generate ZIP (and JSON) files for package indexes

0 comments on commit 074be63

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