mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH 1/3] Documentation: fix warnings during config build
@ 2025-10-10  6:57 Ahmad Fatoum
  2025-10-10  6:57 ` [PATCH 2/3] scripts: container.sh: support -e for environment variables Ahmad Fatoum
  2025-10-10  6:57 ` [PATCH 3/3] Documentation: add contributing section Ahmad Fatoum
  0 siblings, 2 replies; 3+ messages in thread
From: Ahmad Fatoum @ 2025-10-10  6:57 UTC (permalink / raw)
  To: barebox; +Cc: Ahmad Fatoum

js_splitter_code contains backslashes that are meant for Javascript and
not for Python triggering a warning:

  conf.py:275: SyntaxWarning: invalid escape sequence '\p'
    .split(/[^\p{Letter}\p{Number}_\p{Emoji_Presentation}\-\.]+/gu)

Setting soruce_suffix to a string also seems deprecated:

  Converting `source_suffix = '.rst'` to
    `source_suffix = {'.rst': 'restructuredtext'}`.

Signed-off-by: Ahmad Fatoum <a.fatoum@barebox.org>
---
 Documentation/conf.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/Documentation/conf.py b/Documentation/conf.py
index dfd416f7e0b2..9244bffe9e9b 100644
--- a/Documentation/conf.py
+++ b/Documentation/conf.py
@@ -35,7 +35,7 @@ extensions = []
 templates_path = ['_templates']
 
 # The suffix of source filenames.
-source_suffix = '.rst'
+source_suffix = {'.rst': 'restructuredtext'}
 
 # The encoding of source files.
 #source_encoding = 'utf-8-sig'
@@ -269,7 +269,7 @@ class DashFriendlySearchEnglish(SearchEnglish):
     # Accept words that can include 'inner' hyphens or dots
     _word_re = re.compile(r'[\w]+(?:[\.\-][\w]+)*')
 
-    js_splitter_code = """
+    js_splitter_code = r"""
 function splitQuery(query) {
     return query
         .split(/[^\p{Letter}\p{Number}_\p{Emoji_Presentation}\-\.]+/gu)
-- 
2.47.3




^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2025-10-10  6:58 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-10-10  6:57 [PATCH 1/3] Documentation: fix warnings during config build Ahmad Fatoum
2025-10-10  6:57 ` [PATCH 2/3] scripts: container.sh: support -e for environment variables Ahmad Fatoum
2025-10-10  6:57 ` [PATCH 3/3] Documentation: add contributing section Ahmad Fatoum

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox