Skip to content

Commit 79b420c

Browse files
committed
Don't put version on repo readme
1 parent eb62419 commit 79b420c

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

README.md.j2

+3
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,11 @@ DO NOT EDIT README.md DIRECTLY, IT'S GENERATED FROM README.md.j2 USING generate_
66

77
# MQTT IO
88

9+
{% if not repo -%}
910
_Documentation version: `{{ version }}`_
1011

12+
{% endif -%}
13+
1114
[![Discord](https://img.shields.io/discord/713749043662290974.svg?label=Chat%20on%20Discord&logo=discord&logoColor=ffffff&color=7389D8&labelColor=6A7EC2)](https://discord.gg/gWyV9W4)
1215

1316
Exposes general purpose inputs and outputs (GPIO), hardware sensors and serial devices to an MQTT server. Ideal for single-board computers such as the Raspberry Pi.

docs_src/generate_docs.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -371,11 +371,11 @@ def generate_modules_doc(docs_path: str) -> None:
371371

372372
def generate_versions(versions: Set[str]) -> str:
373373
release_versions = sort_semver_versions(versions)
374-
other_versions = set()
374+
other_versions_set = set()
375375
for version in versions:
376376
if version not in release_versions:
377-
other_versions.add(version)
378-
other_versions = sorted(list(other_versions))
377+
other_versions_set.add(version)
378+
other_versions: List[str] = sorted(list(other_versions_set))
379379

380380
ctx = dict(releases=release_versions, other_versions=other_versions)
381381

0 commit comments

Comments
 (0)