Data Science Portal for Home Assistant.
Go to file
dependabot[bot] 3b5668751d
Bump cross-spawn from 7.0.3 to 7.0.6 (#297)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-11-19 08:31:34 +01:00
.devcontainer Add dev container (#80) 2020-08-24 08:43:38 +02:00
.github Update dependabot.yml 2022-04-25 08:50:53 -07:00
.vscode Add dev container (#80) 2020-08-24 08:43:38 +02:00
blog Bump @docusaurus/core from 2.0.0-alpha.59 to 2.0.0-alpha.60 (#74) 2020-07-30 09:43:52 +01:00
docs Update data_context.md (#285) 2024-10-26 15:19:41 +02:00
script Add dev container (#80) 2020-08-24 08:43:38 +02:00
src Update Home Assistant logo (#274) 2023-10-07 07:46:23 -04:00
static Replace opengraph social image (#280) 2023-11-21 15:22:34 +01:00
.gitignore Update to Docusaurus V2 (#32) 2020-02-12 16:56:03 +00:00
.nvmrc Upgrade docusaurus to 2.0.0-alpha.48 (#40) 2020-03-25 09:55:36 +01:00
LICENSE.md Add initial version of data website 2018-11-22 11:49:49 +01:00
README.md Add dev container (#80) 2020-08-24 08:43:38 +02:00
docusaurus.config.js Update Home Assistant logo (#274) 2023-10-07 07:46:23 -04:00
netlify.toml Add redirects (#34) 2020-02-20 13:38:58 +00:00
package.json Bump clsx from 2.1.0 to 2.1.1 (#289) 2024-04-29 12:54:40 +02:00
sidebars.js Add statistics docs (#148) 2021-08-03 09:51:56 +02:00
yarn.lock Bump cross-spawn from 7.0.3 to 7.0.6 (#297) 2024-11-19 08:31:34 +01:00

README.md

License: CC BY-NC-SA 4.0

Home Assistant Data Science Portal

This is the source for the Data Science Portal.

Updating the docs

Documentation is built using Docusaurus.

Editing on GitHub

Small changes to text can be made directly on GitHub. At the bottom of each page there is an "Edit This Page" link which will load the document in GitHub ready for changes. This method doesn't easily allow for additional documents or images to be added.

Preparing a local environment

There are two options for developing the documentation on a local system.

Visual Studio Code and devcontainer

The easiest way to get started with development is to use Visual Studio Code with devcontainers. This approach will create a preconfigured development environment with all the tools you need. This approach is enabled for all Home Assistant repositories.

Prerequisites

More info about requirements and devcontainer in general

Getting started
  1. Fork the repository.
  2. Clone the repository to your computer.
  3. Open the repository using Visual Studio code.

When you open this repository with Visual Studio code you are asked to "Reopen in Container", this will start the build of the container.

If you don't see this notification, open the command palette and select Remote-Containers: Reopen Folder in Container.

Tasks

The devcontainter comes with some useful tasks to help you with development, you can start these tasks by opening the command palette and select Tasks: Run Task then select the task you want to run.

When a task is currently running (like Preview for the docs), it can be restarted by opening the command palette and selecting Tasks: Restart Running Task, then select the task you want to restart.

When using devcontainers and starting a preview via yarn start, script/setup or the Task in Code, a browser window will not be opened automatically, instead you will need to open a browser window to localhost:3000. If port 3000 was already in use, Docusaurus will use the next available port. You can check the port used in the terminal window of Visual Studio Code. Look for the line Project is running at http://0.0.0.0:XXXX/ where XXXX 3000 or greater, open a browser window to <http://localhost:XXXX>.

Setting Up Your Own Environment

Running the documentation locally requires NodeJS and Yarn to be installed. Inside a cloned fork of this repository, run:

$ script/setup

Or in Windows, just run:

yarn

This will install docusaurus amongst other things.

Running docs locally
$ script/server

In Windows, just run

yarn start

It will start a server at localhost:3000.

Adding a page

  • Create new page in docs/
  • Add new doc to sidebars.js