Skip to content

Commit cb6e4cb

Browse files
committed
Fix legacy rst stuff
1 parent 8a91091 commit cb6e4cb

File tree

3 files changed

+16
-79
lines changed

3 files changed

+16
-79
lines changed

content/changelog/2025.10.0.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ If you manage multiple devices, the dashboard will feel noticeably faster and mo
159159

160160
## Device Onboarding Improvements
161161

162-
Getting your ESPHome devices online has never been easier. This release brings major improvements to the initial setup experience, particularly for ESP32-IDF devices and the [Made for ESPHome](https://esphome.io/guides/made_for_esphome/) program.
162+
Getting your ESPHome devices online has never been easier. This release brings major improvements to the initial setup experience, particularly for ESP32-IDF devices and the [Made for ESPHome](/guides/made_for_esphome/) program.
163163

164164
### Captive Portal for ESP-IDF
165165

@@ -179,9 +179,9 @@ This brings ESP-IDF up to feature parity with Arduino for onboarding, and since
179179

180180
**Why passive scanning matters:** Many home automation systems and BLE scanners only support passive scanning (not active scanning). Making the device name visible to passive scanners means your devices show up in more scanning apps and are easier to identify during setup.
181181

182-
These improvements directly support the [Made for ESPHome program](https://esphome.io/guides/made_for_esphome/), which requires Improv provisioning via BLE for Wi-Fi projects to ensure a consistent, high-quality setup experience across all ESPHome-compatible products.
182+
These improvements directly support the [Made for ESPHome program](/guides/made_for_esphome/), which requires Improv provisioning via BLE for Wi-Fi projects to ensure a consistent, high-quality setup experience across all ESPHome-compatible products.
183183

184-
The Made for ESPHome program requires Improv BLE provisioning for Wi-Fi projects. See the [certification requirements](https://esphome.io/guides/made_for_esphome/) for details.
184+
The Made for ESPHome program requires Improv BLE provisioning for Wi-Fi projects. See the [certification requirements](/guides/made_for_esphome/) for details.
185185

186186
## Home Assistant Action Responses
187187

content/changelog/2025.11.0.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -142,13 +142,13 @@ Added `ignore_not_found` option (default `true`) to allow disabling `CONFIG_SPIR
142142

143143
**7 New Sensor/Device Components:**
144144

145-
- [HDC2010](https://esphome.io/components/sensor/hdc2010.html) ([#6674](https://github.com/esphome/esphome/pull/6674)) - Texas Instruments temperature and humidity sensor
146-
- [MCP3221](https://esphome.io/components/sensor/mcp3221.html) ([#7764](https://github.com/esphome/esphome/pull/7764)) - I2C A-D converter with configurable reference voltage
147-
- [HLK-FM22X](https://esphome.io/components/hlk_fm22x.html) ([#8059](https://github.com/esphome/esphome/pull/8059)) - Face recognition module family
148-
- [BH1900NUX](https://esphome.io/components/sensor/bh1900nux.html) ([#8631](https://github.com/esphome/esphome/pull/8631)) - Rohm Semiconductor temperature sensor
149-
- [RX8130](https://esphome.io/components/time/rx8130.html) ([#10511](https://github.com/esphome/esphome/pull/10511)) - Epson RTC chip (used in M5Stack devices)
150-
- [BLE NUS Logger](https://esphome.io/components/logger.html#ble-logging) ([#9846](https://github.com/esphome/esphome/pull/9846)) - Logging over BLE for nRF52 platform
151-
- [TinyUSB](https://esphome.io/components/tinyusb.html) ([#11678](https://github.com/esphome/esphome/pull/11678)) - USB device functionality foundation for ESP32-S2/S3
145+
- [HDC2010](/components/sensor/hdc2010) ([#6674](https://github.com/esphome/esphome/pull/6674)) - Texas Instruments temperature and humidity sensor
146+
- [MCP3221](/components/sensor/mcp3221) ([#7764](https://github.com/esphome/esphome/pull/7764)) - I2C A-D converter with configurable reference voltage
147+
- [HLK-FM22X](/components/hlk_fm22x) ([#8059](https://github.com/esphome/esphome/pull/8059)) - Face recognition module family
148+
- [BH1900NUX](/components/sensor/bh1900nux) ([#8631](https://github.com/esphome/esphome/pull/8631)) - Rohm Semiconductor temperature sensor
149+
- [RX8130](/components/time/rx8130) ([#10511](https://github.com/esphome/esphome/pull/10511)) - Epson RTC chip (used in M5Stack devices)
150+
- [BLE NUS Logger](/components/ble_nus) ([#9846](https://github.com/esphome/esphome/pull/9846)) - Logging over BLE for nRF52 platform
151+
- [TinyUSB](/components/tinyusb) ([#11678](https://github.com/esphome/esphome/pull/11678)) - USB device functionality foundation for ESP32-S2/S3
152152

153153
**Extended Hardware Support:**
154154

lint.py

Lines changed: 6 additions & 69 deletions
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,6 @@ def find_all(a_str, sub):
121121
".md",
122122
".png",
123123
".py",
124-
".rst",
125124
".svg",
126125
".toml",
127126
".txt",
@@ -327,76 +326,14 @@ def lint_end_newline(fname, content):
327326
return None
328327

329328

330-
section_regex = re.compile(r"^(=+|-+|\*+|~+)$")
331-
directive_regex = re.compile(r"^(\s*)\.\. (.*)::.*$")
332-
directive_arg_regex = re.compile(r"^(\s+):.*:\s*.*$")
333-
334-
335-
@lint_content_check(include=["*.rst"])
336-
def lint_directive_formatting(fname, content):
337-
errors = []
338-
lines = content.splitlines(keepends=False)
339-
340-
for i, line in enumerate(lines):
341-
m = directive_regex.match(line)
342-
if m is None:
343-
continue
344-
base_indentation = len(m.group(1))
345-
directive_name = m.group(2)
346-
if directive_name.startswith("|") or directive_name == "seo":
347-
continue
348-
# Match directive args
349-
for j in range(i + 1, len(lines)):
350-
if not directive_arg_regex.match(lines[j]):
351-
break
352-
else:
353-
# Reached end of file
354-
continue
355-
356-
# Empty line must follow
357-
if lines[j]:
358-
errors.append(
359-
(
360-
j,
361-
1,
362-
"Directive '{}' is not followed by an empty line. Please insert an "
363-
"empty line after {}:{}".format(directive_name, fname, j),
364-
)
365-
)
366-
continue
367-
368-
k = j + 1
369-
for j in range(k, len(lines)):
370-
if not lines[j]:
371-
# Ignore Empty lines
372-
continue
373-
374-
num_spaces = len(lines[j]) - len(lines[j].lstrip())
375-
if num_spaces <= base_indentation:
376-
# Finished with this directive
377-
break
378-
num_indent = num_spaces - base_indentation
379-
if j == k and num_indent != 4:
380-
errors.append(
381-
(
382-
j + 1,
383-
num_indent,
384-
"Directive '{}' must be indented with 4 spaces, not {}. See "
385-
"{}:{}".format(directive_name, num_indent, fname, j + 1),
386-
)
387-
)
388-
break
389-
390-
return errors
391-
392-
393329
@lint_re_check(
394-
r"https://esphome.io/",
395-
include=["*.rst"],
330+
r"https://esphome\.io/[^\s)]*",
331+
include=["*.md"],
396332
exclude=[
397-
"components/web_server.rst",
398-
"components/image.rst",
399-
"cookbook/lvgl.rst",
333+
"README.md",
334+
"content/components/image.md",
335+
"content/components/web_server.md",
336+
"content/cookbook/lvgl.md",
400337
],
401338
)
402339
def lint_esphome_io_link(fname, match):

0 commit comments

Comments
 (0)