Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DOCTEAM-633: Preparing SUSE header changes #531

Merged
merged 6 commits into from
Apr 27, 2023
Merged

Conversation

tomschr
Copy link
Collaborator

@tomschr tomschr commented Feb 10, 2023

This PR contains:

  • Add SSI for <head>, <body>, and footer
  • Add lang for <html> (both single and for chunked)
  • Introduce get-lang-for-ssi() (utility.xsl). Rewrite "single" language (like en) into language and country (en-us).
  • Introduce parameter include.suse.header (default 0). Setting it to 1 creates the structure described below.

Created structure

<html lang="en">
  <head>
    <title>...</title>
    <!--#include virtual="/docserv/fragments/en-us/suse-head.fragment.html"-->
    ...
  </head>
  <body>
  <!--#include virtual="/docserv/fragments/en-us/suse-body.fragment.html"-->
   ...
   <main>...</main>
   <!--#include virtual="/docserv/fragments/en-us/suse-footer.fragment.html"-->
  </body>
</html>

@tomschr tomschr added skill-xslt XSLT knowledge necessary format-html html, xhtml, html5, webhelp, jsp support styles-2022 "suse2022-ns" styles labels Feb 10, 2023
@tomschr tomschr self-assigned this Feb 10, 2023
* Use "include.suse.header" as flag
* Introduce "include.ssi.{header,body,footer}" as a path to the
  included fragment (path contains a replaceable for language)
* Use "placeholder.ssi.language" with the replaceable
@tomschr tomschr marked this pull request as ready for review April 25, 2023 13:22
@tomschr tomschr merged commit 4a3cfd3 into main Apr 27, 2023
2 checks passed
@tomschr tomschr deleted the docteam-633-suse-headers branch April 27, 2023 13:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
format-html html, xhtml, html5, webhelp, jsp support skill-xslt XSLT knowledge necessary styles-2022 "suse2022-ns" styles
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant