Skip to content

Commit 0cbf97b

Browse files
committed
Reformat documentation for consistency
Updated various documentation files to ensure consistent use of line breaks and formatting. This improves readability and maintains a uniform style across all documents.
1 parent fff5fdb commit 0cbf97b

File tree

12 files changed

+40
-54
lines changed

12 files changed

+40
-54
lines changed

docs/contributing/code.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Want to get your hands dirty with the code? Awesome! We appreciate all code cont
99
3. **Test Your Changes:** Thoroughly test your changes to ensure they work as expected and don't introduce new issues.
1010

1111
- You can build the strategy with `npm run build` (for production) or `npm run build-dev` (for development/testing).
12-
- Copy the built files to your Home Assistant's `www/community/mushroom-strategy` directory for testing.
12+
- Copy the built files to your Home Assistant's `www/community/mushroom-strategy` directory for testing.<br>
1313
**Remember to clear the cache of your Home Assistant client** to see the changes.
1414

1515
!!! info

docs/contributing/documentation.md

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ The entire documentation lives in the `docs/` folder of this repository.
1919
```
2020

2121
This will usually launch a local server, at `http://127.0.0.1:8000`.
22-
The server will automatically reload in your browser as you make and save changes to the documentation files.
22+
The server will automatically reload in your browser as you make and save changes to the documentation files.<br>
2323
To stop the server, press **Ctrl + C** in the terminal.
2424

2525
!!! note
@@ -49,7 +49,7 @@ The entire documentation lives in the `docs/` folder of this repository.
4949
5050
7. **Format and Lint Your Changes:**
5151
52-
To keep the documentation clean and consistent, run the linter before committing.
52+
To keep the documentation clean and consistent, run the linter before committing.<br>
5353
This checks for broken links, formatting issues, and common Markdown errors.
5454
5555
```bash
@@ -64,23 +64,19 @@ The entire documentation lives in the `docs/` folder of this repository.
6464
6565
10. **Open a Pull Request (PR).**
6666
67-
---
68-
6967
## How Versioning Works
7068
7169
Our documentation uses `mike` to manage multiple versions of the documentation:
7270
7371
- **The main version**: Every time a Pull Request is merged into the main branch, the documentation at /main/ is
74-
updated.
72+
updated.<br>
7573
This represents the "development" or "upcoming" version.
7674
7775
- **The latest version**: This points to the most recent official release.
7876
7977
- **Tagged versions**: When we create a new GitHub Release, a permanent, numbered version (e.g., v1.2.0) is created and
8078
archived in the version selector.
8179
82-
---
83-
8480
## Documentation Style and Quality
8581
8682
To maintain consistency and quality:

docs/contributing/index.md

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,8 @@ Please take a moment to review this guide before making a contribution.
88
## 📜 Code of Conduct
99

1010
To ensure a welcoming and inclusive environment, all contributors are expected to adhere to
11-
our [Code of Conduct](https://github.com/DigiLive/mushroom-strategy/blob/main/CODE_OF_CONDUCT.md). Please read it
12-
carefully.
13-
14-
---
11+
our [Code of Conduct](https://github.com/DigiLive/mushroom-strategy/blob/main/CODE_OF_CONDUCT.md).<br>
12+
Please read it carefully.
1513

1614
## 🐞 Reporting Bugs
1715

@@ -31,8 +29,6 @@ Found a bug? That's not ideal, but your report helps us squash it!
3129
- Screenshots or animated GIFs (if applicable).
3230
- Your Home Assistant version and Mushroom Strategy version.
3331

34-
---
35-
3632
## ✨ Suggesting Features
3733

3834
Have a great idea for a new feature or enhancement? We'd love to hear it!
@@ -45,8 +41,6 @@ Have a great idea for a new feature or enhancement? We'd love to hear it!
4541
3. **Describe your idea:** Clearly explain the feature, why you think it's useful, and any potential use cases by
4642
following the instructions and template.
4743

48-
---
49-
5044
## 🙏 Get Support
5145

5246
If you have questions about contributing or need help with your setup, please open a

docs/contributing/translations.md

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
Help us make Mushroom Strategy accessible to more users around the world by contributing and improving translations!
44

5-
Language tags have to follow [BCP 47](https://tools.ietf.org/html/bcp47).
5+
Language tags have to follow [BCP 47](https://tools.ietf.org/html/bcp47).<br>
66
A list of most language tags can be found here:
77
[IANA subtag registry](http://www.iana.org/assignments/language-subtag-registry/language-subtag-registry).
88
Examples: fr, fr-CA, zh-Hans.
@@ -20,7 +20,7 @@ Examples: fr, fr-CA, zh-Hans.
2020
4. **Test Your Changes:** Thoroughly test your changes to ensure they work as expected and don't introduce new issues.
2121

2222
- You can build the strategy with `npm run build` (for production) or `npm run build-dev` (for development/testing).
23-
- Copy the built files to your Home Assistant's `www/community/mushroom-strategy` directory for testing.
23+
- Copy the built files to your Home Assistant's `www/community/mushroom-strategy` directory for testing.<br>
2424
**Remember to clear the cache of your Home Assistant client** to see the changes.
2525

2626
!!! info
@@ -42,8 +42,6 @@ Examples: fr, fr-CA, zh-Hans.
4242

4343
8. **Open a Pull Request (PR).**
4444

45-
---
46-
4745
!!! info
4846

4947
**Integrating a new Translation:**
@@ -57,9 +55,9 @@ Examples: fr, fr-CA, zh-Hans.
5755
If you are adding a country-specific locale (e.g., `es-ES` for Spanish (Spain) or `en-GB` for English
5856
(United Kingdom)), you should create a file like `en-GB.json` in the `translations` folder. In
5957
`src/utilities/localize.ts`, you'll import it similarly and add it to the `languages` map using the full locale
60-
code.
58+
code.<br>
6159
Please ensure you follow existing patterns for `language-country` codes, which typically use a hyphen (`-`) + a
62-
UPPER-cased country code in the file name and an underscore (`_`) + a lower-cased country code in the import key.
60+
UPPER-cased country code in the file name and an underscore (`_`) + a lower-cased country code in the import key.<br>
6361

6462
!!! example
6563
```typescript

docs/contributing/workflow.md

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,22 +2,20 @@
22

33
This guide outlines a common workflow for contributing to our project.
44

5-
---
6-
75
1. **Fork the Repository**
8-
Start by forking **our repository** (the upstream project) to your own GitHub account.
6+
Start by forking **our repository** (the upstream project) to your own GitHub account.<br>
97
This creates a personal copy where you can make your changes without affecting the original project directly.
108

119
2. **Clone Your Fork**
1210
Clone your forked repository from your GitHub account to your local machine.
1311

1412
3. **Set Up Your Local Development Environment**
15-
Before making changes, ensure your local environment is ready.
13+
Before making changes, ensure your local environment is ready.<br>
1614
See [Getting Started](getting-started.md).
1715

1816
4. **Make Your Changes**
1917
Work in a new branch for better organization and easier pull requests and Implement your bug fix, new feature, or
20-
documentation update.
18+
documentation update.<br>
2119
See chapters [Code](code.md), [Documentation](documentation.md), and [Translations](translations.md) for guidance and
2220
details.
2321

@@ -26,11 +24,11 @@ This guide outlines a common workflow for contributing to our project.
2624
new issues or regressions.
2725

2826
6. **Format and Lint Your Changes**
29-
Your code should be well-formatted and linted to ensure consistency and readability.
27+
Your code should be well-formatted and linted to ensure consistency and readability.<br>
3028
If you've set up the project correctly, the tools for this should already be available to this project.
3129

3230
7. **Commit Your Changes**
33-
Stage your changes and commit them with a clear, descriptive message.
31+
Stage your changes and commit them with a clear, descriptive message.<br>
3432
Aim for a concise subject line followed by a more detailed body if necessary.
3533
E.g.:
3634

docs/faq.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,13 @@
1212

1313
!!! warning
1414
If you created an entity manually (in your `configuration.yaml`), you may need to create a `unique_id` before
15-
you can set an area to it.
15+
you can set an area to it.<br>
1616
See Home Assistant's [documentation](https://www.home-assistant.io/faq/unique_id){: target="_blank"} for more
1717
info about unique ids.
1818

1919
??? question "How do I hide entities from the Strategy?"
2020

21-
When creating this dashboard for the first time, you might be overwhelmed by the number of entities.
21+
When creating this dashboard for the first time, you might be overwhelmed by the number of entities.<br>
2222
To reduce the number of entities shown, you can hide these entities by following the steps below:
2323

2424
1. Click and hold the entity.

docs/getting-started/basic-setup.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ To apply the Mushroom Strategy to a dashboard:
3131
be registered
3232
```
3333

34-
This is mainly because of cache issues or HACS didn't create a reference.
34+
This is mainly because of cache issues or HACS didn't create a reference.<br>
3535
Try clearing the cache of your client and/or re-downloading the strategy from HACS.
3636

3737
If it still doesn't work, please consult guide

docs/getting-started/installation.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,25 +3,25 @@
33
## ⚙️ Prerequisites
44

55
Mushroom dashboard strategy and dependencies are available in [HACS][hacsUrl]{: target="_blank"} (Home Assistant
6-
Community Store).
7-
Install HACS if you don't have it already.
6+
Community Store).<br>
7+
Install HACS if you don't have it already.<br>
88
For assistance, you can follow the [installation guide][hacsInstallationGuideUrl]{: target="_blank"}.
99

10-
Once you have HACS installed, you can install custom integration and plug-ins.
11-
This guide offers you badges to open your Home Assistant on the correct page.
10+
Once you have HACS installed, you can install custom integration and plug-ins.<br>
11+
This guide offers you badges to open your Home Assistant on the correct page.<br>
1212
If the badges don't work, try installing from HACS manually:
1313

1414
1. Open HACS in Home Assistant (Usually in the menu on the left side).
1515
2. At the top, search for the component you want to install.
1616
3. Select the `three-dot` menu on the right side of the component and select `Download`.
1717
4. Choose the desired version and select `Download` again.
1818

19-
You need to install the following HACS integrations before you can use this strategy.
20-
Click the badges below and follow the installation instructions.
19+
You need to install the following HACS integrations before you can use this strategy.<br>
20+
Click the badges below and follow the installation instructions.<br>
2121
They will open the HACS repository at your Home Assistant instance directly.
2222

2323
[![Open in HACS at your Home Assistant instance.][hacsBadge]][hacsMushroomUrl]{: target="_blank"} to install
24-
[Mushroom][mushroomUrl]{: target="_blank"}.
24+
[Mushroom][mushroomUrl]{: target="_blank"}.<br>
2525
[![Open in HACS at your Home Assistant instance.][hacsBadge]][hacsMiniGraphUrl]{: target="_blank"} to
2626
install [Mini graph card][miniGraphUrl]{: target="_blank"}.
2727

@@ -33,7 +33,7 @@ If you meet all the prerequisites, click the badge below to install the strategy
3333

3434
## 🛠️ Local Installation
3535

36-
Please install the strategy with HACS as described above.
36+
Please install the strategy with HACS as described above.<br>
3737
If you require testing a custom build for debug purposes, follow these steps:
3838

3939
1. Build the strategy with `npm build` or `npm build-dev`.
@@ -47,7 +47,7 @@ If you require testing a custom build for debug purposes, follow these steps:
4747

4848
## 🔄 Updating
4949

50-
By default, Home Assistant will notify you when an update of the strategy is available.
50+
By default, Home Assistant will notify you when an update of the strategy is available.<br>
5151
You can update the strategy by going to `Settings` found at the bottom of the sidebar.
5252

5353
!!! tip

docs/options/area-options.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# 🛋️ Area Options
22

3-
The `areas` group enables you to specify the configuration of specific areas.
3+
The `areas` group enables you to specify the configuration of specific areas.<br>
44
Each configuration is identified by an area id and can have the following options:
55

66
| Name | Type | Default | Description |
@@ -11,7 +11,7 @@ Each configuration is identified by an area id and can have the following option
1111
| `order` | number | `unset` | Ordering position of the area in the list of available areas. |
1212
| `type` | string | `default` | Set to a type of area card. (Currently supported: `default` & `HaAreaCard` |
1313

14-
Also, all options from the Template mushroom card and/or Home Assistant Area card are supported.
14+
Also, all options from the Template mushroom card and/or Home Assistant Area card are supported.<br>
1515
Please follow the links below to see the additional options per card type.
1616

1717
- [Mushroom Template Card][templateDocUrl]{: target="_blank"}.
@@ -31,7 +31,7 @@ To make the most of this, it helps to understand how the system prioritizes your
3131

3232
## Extra Cards
3333

34-
The `extra_cards` group enables you to specify the configuration of additional cards an Area view.
34+
The `extra_cards` group enables you to specify the configuration of additional cards an Area view.<br>
3535
These cards will be shown last in the view.
3636

3737
See Home View Options → [Extra Cards](#extra-cards) for more information.
@@ -86,7 +86,7 @@ To exclude this area from the dashboard and views, set its property `hidden` to
8686

8787
## Setting options for all areas
8888

89-
Use `_` as an identifier to set the options for all areas.
89+
Use `_` as an identifier to set the options for all areas.<br>
9090
The following example sets the type of all area-cards to the one of Home Assistant:
9191

9292
### Example

docs/options/domain-options.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Mushroom strategy supports several domains to control/view entities of.<br>
2222
| Sensor | 160 | State entities for data like temperature, humidity, or power usage. |
2323
| Other | 170 | Any other domain not explicitly categorized above. |
2424

25-
The `domains` group enables you to specify the configuration of a domain in a view.
25+
The `domains` group enables you to specify the configuration of a domain in a view.<br>
2626
Each configuration is identified by a domain name and can have the following options:
2727

2828
| Option | type | Default | Description |
@@ -36,7 +36,7 @@ Each configuration is identified by a domain name and can have the following opt
3636
| title | string | `domain specific` | Title of the domain in a view. |
3737

3838
[^1]:
39-
In the different views, the cards belonging to a specific domain will be horizontally stacked into a row.
39+
In the different views, the cards belonging to a specific domain will be horizontally stacked into a row.<br>
4040
The number of cards per row can be configured with this option.
4141

4242
!!! note

0 commit comments

Comments
 (0)