Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Update pkgindex plugins
Signed-off-by: Chris Warrick <kwpolska@gmail.com>
  • Loading branch information
Kwpolska committed Apr 2, 2017
1 parent 682a2b1 commit 913950a
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 5 deletions.
8 changes: 7 additions & 1 deletion site/plugins/pkgindex/README.md
Expand Up @@ -9,4 +9,10 @@ Package indexes are sites like <https://plugins.getnikola.com/>. They provide
both a human-friendly interface (website), and a computer-friendly interface
(JSON file). The generated package indexes are compatible with Nikola’s plugin
and theme install features; however, they can be modified to work with any
other packaging system (with some Python code)
other packaging system (with some Python code modification).

Users
-----

* [Nikola Plugins](https://plugins.getnikola.com/) — uses default plugin set [(source)](https://github.com/getnikola/plugins/tree/master/site)
* [Nikola Themes](https://themes.getnikola.com/) — uses default plugin set and a custom plugin for screenshots and demos [(source)](https://github.com/getnikola/nikola-themes/tree/master/site)
2 changes: 1 addition & 1 deletion site/plugins/pkgindex/pkgindex.plugin
Expand Up @@ -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)
2 changes: 1 addition & 1 deletion site/plugins/pkgindex_compiler/pkgindex_compiler.plugin
Expand Up @@ -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
2 changes: 1 addition & 1 deletion site/plugins/pkgindex_scan/pkgindex_scan.plugin
Expand Up @@ -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
6 changes: 6 additions & 0 deletions site/plugins/pkgindex_scan/pkgindex_scan.py
Expand Up @@ -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']]
2 changes: 1 addition & 1 deletion site/plugins/pkgindex_zip/pkgindex_zip.plugin
Expand Up @@ -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 913950a

Please sign in to comment.