mirror of
https://github.com/seigler/dash-docs
synced 2025-07-27 09:46:12 +00:00
Display meetups on the events map
This commit is contained in:
parent
9bf05e3db0
commit
01e166e8e8
7 changed files with 151 additions and 46 deletions
|
@ -1,6 +1,6 @@
|
|||
#contributors.rb fetches Bitcoin-Qt contributors list and set
|
||||
#site.project.contributors array. This is later used to
|
||||
#display the list of contributors on the "Development" page.
|
||||
#site.contributors array. This is later used to display the
|
||||
#list of contributors on the "Development" page.
|
||||
|
||||
require 'open-uri'
|
||||
require 'json'
|
||||
|
@ -40,19 +40,18 @@ module Jekyll
|
|||
|
||||
def generate(site)
|
||||
class << site
|
||||
attr_accessor :primary_devs, :contributors
|
||||
attr_accessor :contributors
|
||||
|
||||
alias contrib_site_payload site_payload
|
||||
def site_payload
|
||||
result = super
|
||||
result['site']['project'] = {
|
||||
"primary_devs" => self.primary_devs,
|
||||
"contributors" => self.contributors
|
||||
}
|
||||
result
|
||||
h = contrib_site_payload
|
||||
payload = h["site"]
|
||||
payload["contributors"] = self.contributors
|
||||
h["site"] = payload
|
||||
h
|
||||
end
|
||||
end
|
||||
|
||||
site.primary_devs = JSON.parse(open("https://api.github.com/repos/bitcoin/bitcoin/collaborators","User-Agent"=>"Ruby/#{RUBY_VERSION}").read)
|
||||
site.contributors = merge_contributors(fetch_contributors(), site.config['aliases']).sort_by{|c| - c['contributions']}
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue