diff options
author | David Luevano Alvarado <david@luevano.xyz> | 2024-03-07 21:55:16 -0600 |
---|---|---|
committer | David Luevano Alvarado <david@luevano.xyz> | 2024-03-07 21:55:16 -0600 |
commit | bd86f4fc950cdc5bb4cb346f48c14a6e356dc4fb (patch) | |
tree | c1cebd6a0b48c38e2100d8e4fe9745fd7f585bd5 /live/static/fork-awesome/src/doc/_plugins/all-contributors-generator.rb | |
parent | ca9c5626495c00f6d6cffd4ae517a66db15b0832 (diff) |
stop tracking live/main
Diffstat (limited to 'live/static/fork-awesome/src/doc/_plugins/all-contributors-generator.rb')
-rw-r--r-- | live/static/fork-awesome/src/doc/_plugins/all-contributors-generator.rb | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/live/static/fork-awesome/src/doc/_plugins/all-contributors-generator.rb b/live/static/fork-awesome/src/doc/_plugins/all-contributors-generator.rb deleted file mode 100644 index 85d0328..0000000 --- a/live/static/fork-awesome/src/doc/_plugins/all-contributors-generator.rb +++ /dev/null @@ -1,17 +0,0 @@ -## -# Generate an all-contributors badge with the number of contributors - -require "json" - -module Jekyll - class AllContributors < Generator - def generate(site) - all_contributors_rc = File.read(File.join(Dir.pwd, '.all-contributorsrc')) - all_contributors = JSON.parse(all_contributors_rc) - total_contributors = all_contributors['contributors'].length - site.pages.each do |page| - page.data['total_contributors'] = total_contributors - end - end - end -end |