lektor / lektor-website

The main lektor website.
https://www.getlektor.com/
Other
160 stars 134 forks source link

Pluginlist update #194

Closed nixjdm closed 6 years ago

nixjdm commented 6 years ago

Fixes #183. This is a refactor that changes /docs/plugins/list to be a redirect to /plugins, which is itself that parent of individual pages for plugins, categories, and tags (with lektor-tags). The publishing instructions for plugins are also modified.

This relies on a custom plugin I made that extracts data from PyPI. Thus, if a plugin's setup.py isn't very well filled out, neither will their page be on our site. The worst filled out pages still don't look too bad I think. Each plugin is it's own subpage of /plugins, but there aren't many fields as much of the info is pulled from PyPI or GitHub. The summary here is optionally custom, or pulled from the short description from PyPI.

A little css was added, which needed a webpack rebuild.

I made my own tags for these plugins. There could probably be more added, or otherwise revised.

-- Edit: One thing to note, is that the lektor-tags plugin seems to get a little confused if you try to access one of the /plugins pages before the build is complete. You can get mismatched data. If that happens, a clean and then rebuild fixes it, provided you again wait for the build to complete before access the page. I don't regard this as a problem blocking this PR, but something worth fixing later.

Several screenshots are attached. plugins7 plugins6 plugins5 plugins4 plugins3 plusgins2 plugins1

goanpeca commented 6 years ago

Wow this is looking great!

nixjdm commented 6 years ago

Thanks! Looks like I missed a couple summaries, let me add those real quick.

nixjdm commented 6 years ago

Alright, the missing summaries are added. Just assume they're there in the screenshots ;)