grantmakers / profiles

Grantmakers.io Profiles - Summary profiles for all US-based foundations who have filed electronic IRS Form 990-PF
MIT License
1 stars 1 forks source link

Infrastructure - Optimize main plugin #12

Open chadokruse opened 6 years ago

chadokruse commented 6 years ago

Goal is to reduce build time, which currently ranges from 45-120 minutes.

The plugin does three things: 1) Creates the profiles 2) Creates standard redirects (used in the main search results) 3) Creates redirects for past data errors (as interim fix until Google reindexes proper links) 4) Creates redirects for name changes (also as an interim fix until Google reindexes proper links)

Plugin location: https://github.com/grantmakers/profiles/blob/source/_plugins/portfolio-generator.rb

Original plugin (from which the current plugin was adapted): https://github.com/codeinpink/jekyll-portfolio-generator

Note: There is a bunch of unused code in the existing plugin. Some of it may be used in the near future (e.g. Related Projects feature)

ALTERNATIVE - move to Gatsby/React