mirror of
https://github.com/seigler/dash-docs
synced 2025-07-27 01:36:13 +00:00
Set license files and headers for bitcoin.org's content
This commit is contained in:
parent
27f1da3ba8
commit
2a139a51a1
276 changed files with 524 additions and 171 deletions
|
@ -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.
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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.
|
||||
|
||||
|
|
|
@ -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.
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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.
|
||||
|
||||
|
|
|
@ -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 ).
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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 .
|
||||
|
||||
|
|
|
@ -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.
|
||||
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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.
|
||||
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue