public inbox for linux-doc@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] docs: set canonical base URL for HTML output
@ 2026-03-21 12:49 Rito Rhymes
  2026-03-22 20:40 ` Jonathan Corbet
  0 siblings, 1 reply; 5+ messages in thread
From: Rito Rhymes @ 2026-03-21 12:49 UTC (permalink / raw)
  To: Jonathan Corbet, linux-doc; +Cc: Shuah Khan, linux-kernel, Rito Rhymes

Set the published docs URL as html_baseurl so generated HTML pages
advertise the correct canonical URL metadata.

This helps search engines and other consumers treat docs.kernel.org as
the canonical location for published documentation pages.

Signed-off-by: Rito Rhymes <rito@ritovision.com>
---
 Documentation/conf.py | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/Documentation/conf.py b/Documentation/conf.py
index 679861503..f517dfeaf 100644
--- a/Documentation/conf.py
+++ b/Documentation/conf.py
@@ -437,6 +437,9 @@ sys.stderr.write("Using %s theme\n" % html_theme)
 # so a file named "default.css" will overwrite the builtin "default.css".
 html_static_path = ["sphinx-static"]
 
+# Canonical base URL for generated HTML pages.
+html_baseurl = "https://docs.kernel.org/"
+
 # If true, Docutils "smart quotes" will be used to convert quotes and dashes
 # to typographically correct entities.  However, conversion of "--" to "—"
 # is not always what we want, so enable only quotes.
-- 
2.51.0


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

end of thread, other threads:[~2026-03-23 19:09 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-03-21 12:49 [PATCH] docs: set canonical base URL for HTML output Rito Rhymes
2026-03-22 20:40 ` Jonathan Corbet
2026-03-23 18:03   ` Rito Rhymes
2026-03-23 18:26     ` Jonathan Corbet
2026-03-23 19:09       ` Rito Rhymes

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