summaryrefslogtreecommitdiff
path: root/static/fork-awesome/src/doc/_plugins/all-contributors-generator.rb
diff options
context:
space:
mode:
authorDavid Luevano Alvarado <david@luevano.xyz>2022-12-16 17:45:03 -0600
committerDavid Luevano Alvarado <david@luevano.xyz>2022-12-16 17:45:03 -0600
commit7e49db5ddefe8c515b5f3931a5c701efaac33d91 (patch)
treed7d1efda44837a466fe079266efda90021812399 /static/fork-awesome/src/doc/_plugins/all-contributors-generator.rb
parent3112a76dac594fe715b59e53c399b0dec5b53193 (diff)
change structure for new pyssg version
Diffstat (limited to 'static/fork-awesome/src/doc/_plugins/all-contributors-generator.rb')
-rw-r--r--static/fork-awesome/src/doc/_plugins/all-contributors-generator.rb17
1 files changed, 0 insertions, 17 deletions
diff --git a/static/fork-awesome/src/doc/_plugins/all-contributors-generator.rb b/static/fork-awesome/src/doc/_plugins/all-contributors-generator.rb
deleted file mode 100644
index 85d0328..0000000
--- a/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