Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update solarlog.markdown to reflect change in library #32784

Closed
wants to merge 42 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
42 commits
Select commit Hold shift + click to select a range
1c88bf9
Initial merge of raw design and content
frenck Mar 27, 2023
c7ee2ca
Merge branch 'current' into new
frenck Mar 27, 2023
ba45fb6
Update gemlock
frenck Mar 27, 2023
ff70427
Ignore PostCSS server port in forwards (#26747)
ludeeus Mar 27, 2023
e4d3746
Merge branch 'current' into new
frenck Mar 27, 2023
6f3a2cc
Footer: Fix link to terms, replace HA icon (#26759)
c0ffeeca7 Mar 28, 2023
436413c
Update footer links (#26766)
ludeeus Mar 28, 2023
8e44a4f
Migrate page layout to new format (#26768)
ludeeus Mar 28, 2023
5b3d2e8
Make feedback section clickable (#26767)
ludeeus Mar 28, 2023
5a4cfd2
Link install button to my (#26770)
ludeeus Mar 28, 2023
617e59d
Fix button style (#26771)
ludeeus Mar 28, 2023
0fdada8
New landing page: replace ha logo (#26774)
c0ffeeca7 Mar 29, 2023
1c035fd
Merge branch 'current' into new
frenck Mar 29, 2023
dd91072
Landing page: Align table columns in feature comparison table (#26775)
c0ffeeca7 Mar 29, 2023
203f19d
Fix join the community links (#26776)
c0ffeeca7 Mar 29, 2023
57ae885
Rephrase 'you can do more' section (#26777)
c0ffeeca7 Mar 29, 2023
c4d148e
Make integraton buttons clickable (#26778)
ludeeus Mar 29, 2023
fcb03ad
create a new section: 'What sets us apart' (#26781)
c0ffeeca7 Mar 29, 2023
716c45f
Values section: replace dummy text (#26780)
c0ffeeca7 Mar 29, 2023
fa7fee4
You can do more section add link (#26779)
c0ffeeca7 Mar 29, 2023
d63c54f
Story: Fix typos, rephrase some entries (#26783)
c0ffeeca7 Mar 29, 2023
bf63c44
Start page: fix text overflow (#26795)
c0ffeeca7 Mar 30, 2023
5f283eb
Front page: update phone images (#26797)
c0ffeeca7 Mar 30, 2023
d529bd1
Our story page: add some links (#26794)
c0ffeeca7 Mar 30, 2023
5c97585
Comparison table: remove amazon (#26798)
c0ffeeca7 Mar 30, 2023
6446f81
Fix main home assistant logo (#26786)
c0ffeeca7 Mar 30, 2023
5737c01
Gitignore file: add generated style.css (#26814)
c0ffeeca7 Mar 31, 2023
a368b98
Add algolia docsearch (#26861)
ludeeus Apr 5, 2023
63190d7
Merge branch 'current' into new
frenck Apr 5, 2023
dd93a39
Merge branch 'current' into new
frenck Apr 5, 2023
03b977b
Increase memory allocated to node (#27341)
c0ffeeca7 May 9, 2023
81d774e
Learn page: map getting started content, add layout (#26846)
c0ffeeca7 May 11, 2023
c45b4c3
Merge remote-tracking branch 'upstream/current' into new
c0ffeeca7 May 12, 2023
78712ea
Installation page: fix links in aside TOC (#27406)
c0ffeeca7 May 17, 2023
426c64b
Installation: Add CSS for tabbed-content (#27407)
c0ffeeca7 May 17, 2023
7af30e8
Learn landing page, Get started: add link to integration page (#27529)
c0ffeeca7 May 30, 2023
2b8c67f
Learn landing page: add dashboard (#27531)
c0ffeeca7 May 30, 2023
27c09d4
Learn landing page: add automation (#27532)
c0ffeeca7 May 30, 2023
90b906b
Tweak homepage wording & grammar (#27583)
cgarwood May 30, 2023
e8c3452
Remove negative letter-spacing for paragraphs (#27590)
cgarwood May 30, 2023
9ad986a
Merge branch 'current' into new
frenck Jun 8, 2023
cc01611
Update solarlog.markdown to reflect change in libarary
dontinelli May 15, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
11 changes: 10 additions & 1 deletion .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,16 @@
"NODE_VERSION": "18"
}
},
"appPort": [4000],
"forwardPorts": [4000],
"portsAttributes": {
"4000": {
"label": "Documentation preview"
},
"8124": {
"label": "PostCSS",
"onAutoForward": "ignore"
}
},
"onCreateCommand": "bundle install && npm install",
"containerEnv": { "DEVCONTAINER": "true" },
"extensions": [
Expand Down
7 changes: 4 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,19 @@
.gist-cache
.pygments-cache
public
source/assets/css/style.css
source/_data/alerts_data.json
source/_data/analytics_data.json
source/_data/blueprint_exchange_data.json
source/_data/version_data.json
source/_data/alerts_data.json
source/_stash
source/stylesheets/screen.css
source/.jekyll-cache/
source/.jekyll-metadata
vendor
node_modules
source/.jekyll-metadata
*.iml
.idea/
*.iml
.vscode/*
!.vscode/cSpell.json
!.vscode/extensions.json
Expand Down
5 changes: 0 additions & 5 deletions .powrc

This file was deleted.

6 changes: 6 additions & 0 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,16 @@
"label": "Preview",
"type": "shell",
"command": "bundle exec rake preview",
"options": {
"env": {
"NODE_OPTIONS": "--max-old-space-size=8192",
},
},
"group": {
"kind": "test",
"isDefault": true,
}

}
]
}
5 changes: 1 addition & 4 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,15 @@ ruby '> 2.5.0'
group :development do
gem 'rake', '13.0.6'
gem 'jekyll', '4.3.2'
gem 'compass', '1.0.3'
gem 'sass-globbing', '1.1.5'
gem 'stringex', '2.8.6'
# > 2.1.0 causes slowdowns https://github.com/sass/sassc-ruby/issues/189
gem 'sassc', '2.1.0'
end

group :jekyll_plugins do
gem 'jekyll-paginate', '1.1.0'
gem 'jekyll-sitemap', '1.4.0'
gem 'jekyll-commonmark', '1.4.0'
gem 'jekyll-toc', '0.18.0'
gem 'jekyll-postcss', '0.5.0'
end

gem 'sinatra', '3.0.6'
Expand Down
55 changes: 18 additions & 37 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3,21 +3,8 @@ GEM
specs:
addressable (2.8.4)
public_suffix (>= 2.0.2, < 6.0)
chunky_png (1.4.0)
colorator (1.1.0)
commonmarker (0.23.9)
compass (1.0.3)
chunky_png (~> 1.2)
compass-core (~> 1.0.2)
compass-import-once (~> 1.0.5)
rb-fsevent (>= 0.9.3)
rb-inotify (>= 0.9)
sass (>= 3.3.13, < 3.5)
compass-core (1.0.3)
multi_json (~> 1.0)
sass (>= 3.3.0, < 3.5)
compass-import-once (1.0.5)
sass (>= 3.2, < 3.5)
commonmarker (0.23.8)
concurrent-ruby (1.2.2)
em-websocket (0.5.3)
eventmachine (>= 0.12.9)
Expand All @@ -27,9 +14,10 @@ GEM
ffi (1.15.5)
ffi (1.15.5-x64-mingw32)
forwardable-extended (2.6.0)
google-protobuf (3.23.2)
google-protobuf (3.22.2)
google-protobuf (3.22.2-x64-mingw32)
http_parser.rb (0.8.0)
i18n (1.14.1)
i18n (1.13.0)
concurrent-ruby (~> 1.0)
jekyll (4.3.2)
addressable (~> 2.4)
Expand All @@ -50,6 +38,7 @@ GEM
jekyll-commonmark (1.4.0)
commonmarker (~> 0.22)
jekyll-paginate (1.1.0)
jekyll-postcss (0.5.0)
jekyll-sass-converter (3.0.0)
sass-embedded (~> 1.54)
jekyll-sitemap (1.4.0)
Expand All @@ -68,17 +57,18 @@ GEM
rb-fsevent (~> 0.10, >= 0.10.3)
rb-inotify (~> 0.9, >= 0.9.10)
mercenary (0.4.0)
mini_portile2 (2.8.2)
multi_json (1.15.0)
mini_portile2 (2.8.1)
mustermann (3.0.0)
ruby2_keywords (~> 0.0.1)
nokogiri (1.15.2)
mini_portile2 (~> 2.8.2)
nokogiri (1.14.3)
mini_portile2 (~> 2.8.0)
racc (~> 1.4)
nokogiri (1.14.3-x64-mingw32)
racc (~> 1.4)
pathutil (0.16.2)
forwardable-extended (~> 2.6)
public_suffix (5.0.1)
racc (1.7.0)
racc (1.6.2)
rack (2.2.7)
rack-protection (3.0.6)
rack
Expand All @@ -87,21 +77,14 @@ GEM
rb-inotify (0.10.1)
ffi (~> 1.0)
rexml (3.2.5)
rouge (4.1.2)
rouge (4.1.0)
ruby2_keywords (0.0.5)
safe_yaml (1.0.5)
sass (3.4.25)
sass-embedded (1.63.2)
google-protobuf (~> 3.23)
sass-embedded (1.62.1)
google-protobuf (~> 3.21)
rake (>= 10.0.0)
sass-embedded (1.63.2-x64-mingw32)
google-protobuf (~> 3.23)
sass-globbing (1.1.5)
sass (>= 3.1)
sassc (2.1.0)
ffi (~> 1.9)
sassc (2.1.0-x64-mingw32)
ffi (~> 1.9)
sass-embedded (1.62.1-x64-mingw32)
google-protobuf (~> 3.21)
sinatra (3.0.6)
mustermann (~> 3.0)
rack (~> 2.2, >= 2.2.4)
Expand All @@ -123,16 +106,14 @@ PLATFORMS
x64-mingw32

DEPENDENCIES
compass (= 1.0.3)
jekyll (= 4.3.2)
jekyll-commonmark (= 1.4.0)
jekyll-paginate (= 1.1.0)
jekyll-postcss (= 0.5.0)
jekyll-sitemap (= 1.4.0)
jekyll-toc (= 0.18.0)
nokogiri (= 1.15.2)
nokogiri (= 1.14.3)
rake (= 13.0.6)
sass-globbing (= 1.1.5)
sassc (= 2.1.0)
sinatra (= 3.0.6)
stringex (= 2.8.6)
tzinfo (~> 2.0)
Expand Down
93 changes: 47 additions & 46 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ require 'json'
## -- Misc Configs -- ##
public_dir = "public/" # compiled site directory
source_dir = "source" # source file directory
server_port = "4000" # port for preview server eg. localhost:4000

if (/cygwin|mswin|mingw|bccwin|wince|emx/ =~ RUBY_PLATFORM) != nil
puts '## Set the codepage to 65001 for Windows machines'
Expand All @@ -20,67 +19,69 @@ end

desc "Generate jekyll site"
task :generate do
raise "### You haven't set anything up yet. First run `rake install`." unless File.directory?(source_dir)
puts "## Generating Site with Jekyll"
success = system "compass compile --css-dir #{source_dir}/stylesheets"
abort("Generating CSS failed") unless success
success = system "rake analytics_data"
abort("Generating analytics data failed") unless success
success = system "rake alerts_data"
abort("Generating alerts data failed") unless success
success = system "rake version_data"
abort("Generating version data failed") unless success
success = system "rake blueprint_exchange_data"
abort("Generating blueprint exchange data failed") unless success
success = system "jekyll build"
# Hand off this rake task to NPM.
# This rake tasks is here as a backward compatible command and still
# used by Netlify as long as the old branches are still there.
# IT also helps with the muscle memory of developers :)
success = system "npm run build"
abort("Generating site failed") unless success

# TODO: Needs to move? Maybe generate it dynamically from the source?
if ENV["CONTEXT"] != 'production'
File.open("#{public_dir}robots.txt", 'w') do |f|
f.write "User-agent: *\n"
f.write "Disallow: /\n"
end
end

public_dir
end

desc "Watch the site and regenerate when it changes"
task :watch do
raise "### You haven't set anything up yet. First run `rake install`." unless File.directory?(source_dir)
puts "Starting to watch source with Jekyll and Compass."
system "compass compile --css-dir #{source_dir}/stylesheets" unless File.exist?("#{source_dir}/stylesheets/screen.css")
jekyllPid = Process.spawn({"OCTOPRESS_ENV"=>"preview"}, "jekyll build --watch --incremental")
compassPid = Process.spawn("compass watch")

trap("INT") {
[jekyllPid, compassPid].each { |pid| Process.kill(9, pid) rescue Errno::ESRCH }
exit 0
}

[jekyllPid, compassPid].each { |pid| Process.wait(pid) }
# Hand off this rake task to NPM.
# This rake tasks is here as a backward compatible command and still
# used by Netlify as long as the old branches are still there.
# IT also helps with the muscle memory of developers :)
jekyllPid = Process.spawn("npm run dev")
Process.wait(jekyllPid)
end

desc "preview the site in a web browser"
task :preview, :listen do |t, args|
listen_addr = args[:listen] || '127.0.0.1'
listen_addr = '0.0.0.0' unless ENV['DEVCONTAINER'].nil?
raise "### You haven't set anything up yet. First run `rake install`." unless File.directory?(source_dir)
puts "Starting to watch source with Jekyll and Compass."
puts "Now listening on http://localhost:#{server_port}"
system "compass compile --css-dir #{source_dir}/stylesheets" unless File.exist?("#{source_dir}/stylesheets/screen.css")
system "rake analytics_data"
system "rake version_data"
system "rake alerts_data"
system "rake blueprint_exchange_data"
jekyllPid = Process.spawn({"OCTOPRESS_ENV"=>"preview"}, "jekyll build -t --watch --incremental")
compassPid = Process.spawn("compass watch")
rackupPid = Process.spawn("rackup --port #{server_port} --host #{listen_addr}")

trap("INT") {
[jekyllPid, compassPid, rackupPid].each { |pid| Process.kill(9, pid) rescue Errno::ESRCH }
exit 0
}

[jekyllPid, compassPid, rackupPid].each { |pid| Process.wait(pid) }
# Hand off this rake task to NPM.
# This rake tasks is here as a backward compatible command and still
# used by Netlify as long as the old branches are still there.
# IT also helps with the muscle memory of developers :)

# We used to listen/bind to an host address selectively, this might need
# to return in the future.
# listen_addr = args[:listen] || '127.0.0.1'
# listen_addr = '0.0.0.0' unless ENV['DEVCONTAINER'].nil?
jekyllPid = Process.spawn("npm run dev")
Process.wait(jekyllPid)
end

desc "Fetch meta data"
task :fetch_meta_data do
puts "## Fetching external meta data..."

puts "Download data from analytics.home-assistant.io..."
success = system "rake analytics_data"
abort("Generating analytics data failed") unless success

puts "Download data from alerts.home-assistant.io..."
success = system "rake alerts_data"
abort("Generating alerts data failed") unless success

puts "Download data from version.home-assistant.io..."
success = system "rake version_data"
abort("Generating version data failed") unless success

puts "Download data from the blueprint exchange @ community.home-assistant.io..."
success = system "rake blueprint_exchange_data"
abort("Generating blueprint exchange data failed") unless success
puts "Done."
end

desc "Download data from analytics.home-assistant.io"
Expand Down
19 changes: 17 additions & 2 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
# ----------------------- #

url: https://www.home-assistant.io
baseurl: "/"
title: Home Assistant
subtitle: Open source home automation that puts local control and privacy first.
author: Home Assistant
Expand Down Expand Up @@ -48,8 +49,12 @@ commonmark:
highlighter: none

plugins:
- jekyll-postcss
- jekyll-toc

postcss:
cache: false

paginate: 10 # Posts per page on the blog index
paginate_path: "blog/posts/:num" # Directory base for pagination URLs eg. /posts/2/
recent_posts: 5 # Posts in the sidebar Recent Posts section
Expand All @@ -67,6 +72,7 @@ titlecase: true # Converts page and post titles to titlecase
collections:
integrations:
output: true
permalink: /integrations/:path/
examples:
output: true
docs:
Expand All @@ -77,6 +83,12 @@ collections:
output: true
dashboards:
output: true
guides:
output: true
permalink: /learn/:name
posts:
output: true
permalink: /blog/:name

# ----------------------- #
# 3rd Party Settings #
Expand Down Expand Up @@ -148,9 +160,9 @@ defaults:
# https://github.com/toshimaru/jekyll-toc/issues/116#issuecomment-644205770
#
- scope:
path: ""
type: integrations
values:
layout: integration
toc: true
- scope:
path: "installation/*"
Expand Down Expand Up @@ -189,7 +201,10 @@ include:
# https://github.com/toshimaru/jekyll-toc
toc:
min_level: 2 # default: 1
max_level: 3 # default: 6
max_level: 2 # default: 6

postcss:
cache: false

# Configuration for installation pages
installation:
Expand Down
Loading
Loading