aboutsummaryrefslogtreecommitdiffstats
path: root/admin
diff options
context:
space:
mode:
authorEli Zaretskii2022-05-28 14:57:55 +0300
committerEli Zaretskii2022-05-28 14:57:55 +0300
commit908e2e09d08c8058f40295096aec9251944875ca (patch)
treeb1252f3cf1f12ef65cd06e16b84321e339d5423a /admin
parentfff770fb97e8a251b4138ea0ce06f153f8a936ad (diff)
downloademacs-908e2e09d08c8058f40295096aec9251944875ca.tar.gz
emacs-908e2e09d08c8058f40295096aec9251944875ca.zip
Fix commands used to produce on-line HTML docs
* admin/admin.el (manual-meta-string): Only include the first line, and move the rest... (manual-links-string): ...to this new string. (manual-html-fix-headers): Don't remove the '<meta name=' elements produced by makeinfo, especially not the 'name="viewport"' one, which is essential for viewing the docs on mobile devices. Reported by "Facundo Lander via RT" <webmasters-comment@gnu.org>, see gnu.org ticket #1840138.
Diffstat (limited to 'admin')
-rw-r--r--admin/admin.el14
1 files changed, 11 insertions, 3 deletions
diff --git a/admin/admin.el b/admin/admin.el
index a6cb33017ef..57d5afb23b7 100644
--- a/admin/admin.el
+++ b/admin/admin.el
@@ -340,11 +340,13 @@ Optional argument TYPE is type of output (nil means all)."
340\"https://www.w3.org/TR/html4/loose.dtd\">\n\n") 340\"https://www.w3.org/TR/html4/loose.dtd\">\n\n")
341 341
342(defconst manual-meta-string 342(defconst manual-meta-string
343 "<meta http-equiv=\"content-type\" content=\"text/html; charset=utf-8\"> 343 "<meta http-equiv=\"content-type\" content=\"text/html; charset=utf-8\">\n")
344<link rev=\"made\" href=\"mailto:bug-gnu-emacs@gnu.org\"> 344
345(defconst manual-links-string
346 "<link rev=\"made\" href=\"mailto:bug-gnu-emacs@gnu.org\">
345<link rel=\"icon\" type=\"image/png\" href=\"/graphics/gnu-head-mini.png\"> 347<link rel=\"icon\" type=\"image/png\" href=\"/graphics/gnu-head-mini.png\">
346<meta name=\"ICBM\" content=\"42.256233,-71.006581\"> 348<meta name=\"ICBM\" content=\"42.256233,-71.006581\">
347<meta name=\"DC.title\" content=\"gnu.org\">\n\n") 349<meta name=\"DC.title\" content=\"gnu.org\">\n")
348 350
349(defconst manual-style-string "<style type=\"text/css\"> 351(defconst manual-style-string "<style type=\"text/css\">
350@import url('/software/emacs/manual.css');\n</style>\n") 352@import url('/software/emacs/manual.css');\n</style>\n")
@@ -475,6 +477,12 @@ the @import directive."
475 (delete-region opoint (point)) 477 (delete-region opoint (point))
476 (search-forward "<meta http-equiv=\"Content-Style") 478 (search-forward "<meta http-equiv=\"Content-Style")
477 (setq opoint (match-beginning 0))) 479 (setq opoint (match-beginning 0)))
480 (search-forward "</title>\n")
481 (delete-region opoint (point))
482 (search-forward "<link href=")
483 (goto-char (match-beginning 0))
484 (insert manual-links-string)
485 (setq opoint (point))
478 (search-forward "</head>") 486 (search-forward "</head>")
479 (goto-char (match-beginning 0)) 487 (goto-char (match-beginning 0))
480 (delete-region opoint (point)) 488 (delete-region opoint (point))