[pluginlist-update] Fixing a few typos and grammar errors. Commenting out github queries. Correcting plugin category.

This commit is contained in:
Joseph Nix 2018-05-14 18:05:29 -05:00
parent 6e7f9fbe71
commit d19842d4ae
6 changed files with 11 additions and 9 deletions

View File

@ -14,4 +14,4 @@ special :ref](what/).
The documentation is a work in progress and there will be areas that are The documentation is a work in progress and there will be areas that are
lacking. If you have any feedback or you want to help out with the lacking. If you have any feedback or you want to help out with the
documentation project you can head over to the documentation project you can head over to the
[GitHub Repository :ext](https://github.com/lektor/lektor-website) <a href="https://github.com/lektor/lektor-website" class="ext">GitHub Repository</a>of this website. [GitHub Repository :ext](https://github.com/lektor/lektor-website) of this website.

View File

@ -12,7 +12,7 @@ to use plugins and how to build your own.
## Installing Published Plugins ## Installing Published Plugins
Lektor can find and install plugins that have been published to [PyPI :ext](https://pypi.org/) fo you. Lektor can find and install plugins that have been published to [PyPI :ext](https://pypi.org/) for you.
For completely automated plugin management just open your project file in a For completely automated plugin management just open your project file in a
text editor and edit or extend the `[packages]` section. Just add a line text editor and edit or extend the `[packages]` section. Just add a line
for each plugin in the form `name = version`: for each plugin in the form `name = version`:

View File

@ -9,7 +9,7 @@ minify
html html
css css
js js
setup_env setup-env
after_build after-build
--- ---
categories: build categories: build

View File

@ -1,6 +1,6 @@
name: lektor-npm-support name: lektor-npm-support
--- ---
categories: templates categories: build
--- ---
tags: tags:

View File

@ -74,10 +74,11 @@ class ProjectDataPlugin(Plugin):
def project_data(self, name): def project_data(self, name):
self.package_data(name) self.package_data(name)
if 'github' in self.data.get('home_page'): # github data not currently used. Commented to save build time.
owner = self.data['home_page'].split('/')[-2] # if 'github' in self.data.get('home_page'):
repo = self.data['home_page'].split('/')[-1] # owner = self.data['home_page'].split('/')[-2]
self.data['gh'] = self.github_data(owner=owner, repo=repo) # repo = self.data['home_page'].split('/')[-1]
# self.data['gh'] = self.github_data(owner=owner, repo=repo)
# TODO: support bitbucket # TODO: support bitbucket
return self.data return self.data

View File

@ -24,6 +24,7 @@
{% endfor %} {% endfor %}
<h2>Plugins:</h2> <h2>Plugins:</h2>
<p>(*) Asterisks denote official plugins.</p>
<div class="plugin"> <div class="plugin">
{{ render_plugin_list(this.items) }} {{ render_plugin_list(this.items) }}
</div> </div>