Skip to content

Commit 12c4d76

Browse files
kartbencfriedt
authored andcommitted
doc: _scripts: use tuple instead of list for html_redirects
Changed the REDIRECTS variable from a list to a tuple in the redirects.py scripts since it's an immutable sequence. Signed-off-by: Benjamin Cabé <[email protected]>
1 parent a74f222 commit 12c4d76

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

doc/_extensions/zephyr/html_redirects.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252

5353

5454
def setup(app):
55-
app.add_config_value('html_redirect_pages', [], 'html')
55+
app.add_config_value('html_redirect_pages', (), 'html')
5656
app.connect('build-finished', create_redirect_pages)
5757

5858
# Since we're just setting up a build-finished hook, which runs

doc/_scripts/redirects.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
without the html extension).
1313
"""
1414

15-
REDIRECTS = [
15+
REDIRECTS = (
1616
# zephyr-keep-sorted-start
1717
('application/index', 'develop/application/index'),
1818
('boards/arduino/uno_r4_minima/doc/index', 'boards/arduino/uno_r4/doc/index'),
@@ -312,4 +312,4 @@
312312
('services/secure_storage', 'services/storage/secure_storage/index'),
313313
('services/settings/index', 'services/storage/settings/index'),
314314
# zephyr-keep-sorted-stop
315-
]
315+
)

0 commit comments

Comments
 (0)