Set license files and headers for bitcoin.org's content

This commit is contained in:
Saivann 2014-11-21 17:13:43 -05:00
parent 27f1da3ba8
commit 2a139a51a1
276 changed files with 524 additions and 171 deletions

View file

@ -1,3 +1,6 @@
# This file is licensed under the MIT License (MIT) available on
# http://opensource.org/licenses/MIT.
#alerts.rb generates alert pages using files in _alerts
#and assign them the 'alert' category.

View file

@ -1,3 +1,6 @@
# This file is licensed under the MIT License (MIT) available on
# http://opensource.org/licenses/MIT.
#alphab_for allows to loop in an array sorted by the translated value of
#each key using appropriate collation for the current language. In short,
#this is used to generate translated table of contents.
@ -19,7 +22,7 @@ module Jekyll
if !site.has_key?("loc")
site['loc'] = {}
Dir.foreach('_translations') do |file|
next if file == '.' or file == '..'
next if file == '.' or file == '..' or file == 'COPYING'
lang=file.split('.')[0]
site['loc'][lang] = YAML.load_file('_translations/'+file)[lang]
end

View file

@ -1,3 +1,6 @@
# This file is licensed under the MIT License (MIT) available on
# http://opensource.org/licenses/MIT.
## autocrossref.rb automatically adds cross reference links in documentation
## texts using the list of words defined in _autocrossref.yaml.

View file

@ -1,3 +1,6 @@
# This file is licensed under the MIT License (MIT) available on
# http://opensource.org/licenses/MIT.
#contributors.rb fetches Bitcoin Core contributors list and set
#site.contributors array. This is later used to display the
#list of contributors on the "Development" page.

View file

@ -1,3 +1,6 @@
# This file is licensed under the MIT License (MIT) available on
# http://opensource.org/licenses/MIT.
#events.rb set site.conferences and site.meetups arrays based
#on events in _events/ and meetups on bitcoin.meetups.com .
#This is later used to populate the events map and display the

View file

@ -1,3 +1,6 @@
# This file is licensed under the MIT License (MIT) available on
# http://opensource.org/licenses/MIT.
#filter_for allows to loop in site.pages sorted and filtered
#by custom page variables.

View file

@ -1,3 +1,6 @@
# This file is licensed under the MIT License (MIT) available on
# http://opensource.org/licenses/MIT.
#htmlescape espaces special html characters. This is a replacement for
#CGI::escapeHTML, which has an inconsistent behavior with single quotes
#on different ruby versions ( 1.9 and 2.0 ).

View file

@ -1,3 +1,6 @@
# This file is licensed under the MIT License (MIT) available on
# http://opensource.org/licenses/MIT.
require 'digest/md5'
module Jekyll

View file

@ -1,3 +1,6 @@
# This file is licensed under the MIT License (MIT) available on
# http://opensource.org/licenses/MIT.
#redirects.rb generates all redirection pages
#from _config.yml .

View file

@ -1,3 +1,6 @@
# This file is licensed under the MIT License (MIT) available on
# http://opensource.org/licenses/MIT.
#releases.rb generates release pages using files in _releases
#and assign them the 'release' category.

View file

@ -1,3 +1,6 @@
# This file is licensed under the MIT License (MIT) available on
# http://opensource.org/licenses/MIT.
#sitemap.rb generates a sitemap.xml file, which also includes
#alternate hreflang for each translated version of each page.
@ -24,7 +27,7 @@ module Jekyll
enabled = ENV['ENABLED_LANGS'];
enabled = enabled.split(' ') if !enabled.nil?
Dir.foreach('_translations') do |file|
next if file == '.' or file == '..'
next if file == '.' or file == '..' or file == 'COPYING'
lang=file.split('.')[0]
#Ignore lang if disabled
if lang != 'en' and !enabled.nil? and !enabled.include?(lang)

View file

@ -1,3 +1,6 @@
# This file is licensed under the MIT License (MIT) available on
# http://opensource.org/licenses/MIT.
#svg.rb is a workaround to allow built-in jekyll server
#to serve svg files with jekyll --server.

View file

@ -1,3 +1,6 @@
# This file is licensed under the MIT License (MIT) available on
# http://opensource.org/licenses/MIT.
#templates.rb generates all translated pages using templates in
#_templates. The final file name of each page is defined in
#the url section of each translations in _translations.
@ -25,7 +28,7 @@ module Jekyll
enabled = ENV['ENABLED_LANGS'];
enabled = enabled.split(' ') if !enabled.nil?
Dir.foreach('_translations') do |file|
next if file == '.' or file == '..'
next if file == '.' or file == '..' or file == 'COPYING'
lang = file.split('.')[0]
#Ignore lang if disabled
if lang != 'en' and !enabled.nil? and !enabled.include?(lang)

View file

@ -1,3 +1,6 @@
# This file is licensed under the MIT License (MIT) available on
# http://opensource.org/licenses/MIT.
#translate( id [,category ,lang] )
#Return translated string using translations files