Skip to content

Commit 0123ba3

Browse files
author
Xavier Berger
committed
doc: Update documentation about changelog generation
1 parent a68a744 commit 0123ba3

8 files changed

+23
-9
lines changed

docs/changelog.md

+9-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,10 @@
1-
# Changelog
1+
!!! Changelog update
2+
ChangeLog is only available in [documentation](https://xavierberger.github.io/Solar-Router-for-ESPHome/changelog/).
3+
Changelog is update manually after a new release is published.
24

3-
!!! note
4-
ChangeLog is only populated in [documentation](https://xavierberger.github.io/Solar-Router-for-ESPHome/changelog/) when a new release is published.
5+
Changelog is generated using `git-cliff`.
6+
Version are based on tags.
7+
Logs are based on merge commit messages.
8+
9+
The script `tools\update_documentation.sh` is designed to update `changelog.md`, generate and publish `mkdocs` documentation on [github pages](https://xavierberger.github.io/Solar-Router-for-ESPHome/).
10+
This script is entented to be used by repository maintainer only.

docs/contributing.md

+7-2
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,11 @@ A documentation have to be added describing the power meter and how to configure
5858

5959
Documentation is written using [mkdocs](https://www.mkdocs.org/) and [Material for MkDocs](https://squidfunk.github.io/mkdocs-material/).
6060

61-
To install mkdocs, you need to install [Python](https://python.org) and then install the required module with the following command `pip install -r requirements.txt`.
61+
To install `mkdocs`, you need to install [Python](https://python.org) and then :
6262

63-
Documentation is stored in `docs` directory. To see you modification in real time in your browser, execute the command `mkdocs serve` and browse [http://127.0.0.1:8000](http://127.0.0.1:8000)
63+
- Create a virtual environment (see [Python documentation](https://docs.python.org/3/library/venv.html)).
64+
- Install the required module with the following command `pip install -r requirements.txt`.
65+
66+
Documentation is stored in `docs` directory. To see you modification in real time in your browser, execute the command `mkdocs serve` and browse [http://127.0.0.1:8000](http://127.0.0.1:8000)
67+
68+
{% include "changelog.md"%}
File renamed without changes.
File renamed without changes.

docs/index.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,5 @@ This integration enables users to effortlessly monitor and control the router's
1111
Please read the [disclaimer](disclamer.md) before proceeding with the **Solar Router for ESPHome** project.
1212

1313
![SolarRouterClosed](images/SolarRouterClosed.png){width=350}
14-
![Dashboard](images/SolarRouterInHomeAssistantDashboard.png){width=350}
14+
![Dashboard](images/SolarRouterInHomeAssistantDashboard.png){width=350}
15+

mkdocs.yml

+1
Original file line numberDiff line numberDiff line change
@@ -54,3 +54,4 @@ plugins:
5454
- git-revision-date-localized:
5555
type: datetime
5656
- glightbox
57+
- include-markdown

requirements.txt

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
mkdocs
2+
mkdocs-git-revision-date-localized-plugin
3+
mkdocs-glightbox
4+
mkdocs-include-markdown-plugin
25
mkdocs-material
36
mkdocs-material-extensions
47
mkdocs-minify-plugin
5-
mkdocs-git-revision-date-localized-plugin
6-
mkdocs-glightbox
78
pymdown-extensions

tools/update_documantation.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ pushd "${SCRIPT_DIR}/.." > /dev/null
55
git cliff > docs/changelog.md
66
code docs/changelog.md
77

8-
read -r -p "Ready to publish? [Y/N]: " response
8+
read -r -p "Ready to publish? [y/N]: " response
99

1010
if [[ "$response" =~ ^[Yy]$ ]]; then
1111
mkdocs gh-deploy

0 commit comments

Comments
 (0)