public inbox for gcc-cvs-wwwdocs@sourceware.org
help / color / mirror / Atom feed
From: Gerald Pfeifer <gerald@sourceware.org>
To: gcc-cvs-wwwdocs@gcc.gnu.org
Subject: gcc-wwwdocs branch master updated. f3541cfb120e4e5f0f6fed3ebe6d5a4c36a8079a
Date: Fri, 21 Oct 2022 06:59:40 +0000 (GMT)	[thread overview]
Message-ID: <20221021065940.0E36E3858D39@sourceware.org> (raw)

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "gcc-wwwdocs".

The branch, master has been updated
       via  f3541cfb120e4e5f0f6fed3ebe6d5a4c36a8079a (commit)
      from  d0940daacb227ce9f2dcfe64c56c4bd64b899750 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit f3541cfb120e4e5f0f6fed3ebe6d5a4c36a8079a
Author: Gerald Pfeifer <gerald@pfeifer.com>
Date:   Fri Oct 21 08:56:16 2022 +0200

    style: Simplify handling of <head> containers
    
    Lose the trailing slash in <link rel="shortcut icon"> which we needed to
    validate (most pages) as XHTML.
    
    With that we no longer need to differentiate between XHTML and HTML pages
    as much and can simplify the logic quite a bit. (Now only pages setting a
    MetaHTML variable ADDSTYLE receive special treatment.)

diff --git a/htdocs/style.mhtml b/htdocs/style.mhtml
index 08def35e..98641c25 100644
--- a/htdocs/style.mhtml
+++ b/htdocs/style.mhtml
@@ -1,13 +1,12 @@
 ;;; Set a couple of site-wide defaults, some of which we'll override in the
 ;;; following.
 
-<set-var NOSTYLE>
 <set-var BACKPATH>
 
 ;;; The pages under install/ are generated from texinfo sources.
 
 <if <match <get-var env::PREPROCESS_FILE> "install/.*">
-  <unset-var NOSTYLE>
+  <set-var ADDSTYLE>
 >
 
 ;;; Redefine the <head> tag so that we can add default <meta /> headers.
@@ -16,16 +15,13 @@
  <verbatim>
   <head>
  </verbatim>
- <if <var-exists NOSTYLE>
-  <group
-    <link rel="shortcut icon" href="https://gcc.gnu.org/favicon.ico" />
-  >
+ <if <var-exists ADDSTYLE>
   <group
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
-    <link rel="shortcut icon" href="https://gcc.gnu.org/favicon.ico">
     <link rel="stylesheet" type="text/css" href="/gcc.css">
   >
  >
+ <link rel="shortcut icon" href="https://gcc.gnu.org/favicon.ico">
  %body
  <verbatim>
   </head>

-----------------------------------------------------------------------

Summary of changes:
 htdocs/style.mhtml | 10 +++-------
 1 file changed, 3 insertions(+), 7 deletions(-)


hooks/post-receive
-- 
gcc-wwwdocs

                 reply	other threads:[~2022-10-21  6:59 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20221021065940.0E36E3858D39@sourceware.org \
    --to=gerald@sourceware.org \
    --cc=gcc-cvs-wwwdocs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).