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.
|
||||
|
||||
#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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue