mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-28 03:37:06 +00:00
Add language scores data
This commit is contained in:
parent
90ed035a94
commit
b8f1ba098f
1
.gitignore
vendored
1
.gitignore
vendored
@ -8,6 +8,7 @@ source/_data/analytics_data.json
|
|||||||
source/_data/blueprint_exchange_data.json
|
source/_data/blueprint_exchange_data.json
|
||||||
source/_data/version_data.json
|
source/_data/version_data.json
|
||||||
source/_data/alerts_data.json
|
source/_data/alerts_data.json
|
||||||
|
source/_data/language_scores.json
|
||||||
source/_stash
|
source/_stash
|
||||||
source/stylesheets/screen.css
|
source/stylesheets/screen.css
|
||||||
source/.jekyll-cache/
|
source/.jekyll-cache/
|
||||||
|
12
Rakefile
12
Rakefile
@ -113,3 +113,15 @@ task :version_data do
|
|||||||
file.write(JSON.generate(remote_data))
|
file.write(JSON.generate(remote_data))
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
|
desc "Download language scores from home-assistant.github.io/intents"
|
||||||
|
task :version_data do
|
||||||
|
uri = URI('https://home-assistant.github.io/intents/language_scores.json')
|
||||||
|
|
||||||
|
remote_data = JSON.parse(Net::HTTP.get(uri))
|
||||||
|
|
||||||
|
File.open("#{source_dir}/_data/language_scores.json", "w") do |file|
|
||||||
|
file.write(JSON.generate(remote_data))
|
||||||
|
end
|
||||||
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user