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

Metadata for HTML output #542

Merged
merged 1 commit into from
May 8, 2023
Merged

Metadata for HTML output #542

merged 1 commit into from
May 8, 2023

Conversation

tomschr
Copy link
Collaborator

@tomschr tomschr commented Apr 28, 2023

Implementation

Part 1: The following meta tags are processed:

  • DocBook <meta name="title">...</meta>
    Transformed into HTML:

    • <meta property="twitter:title" content="..."/>
    • <meta property="og:title" content="..."/>
  • DocBook <meta name="social-descr">...</meta>
    Transformed into HTML:

    • <meta property="twitter:description" content="..."/>
    • <meta property="og:description" content="..."/>
  • DocBook <meta name="description">...</meta>
    Transformed into HTML:

  • DocBook <meta name="category" content="Systems Management"/>
    Transformed into HTML:

    • <meta name="category" content="..."/>
  • DocBook <meta name="maintainer" content="tux@example.com"/>
    Transformed into HTML

    • <meta name="DC.creator" content="tux@example.com"/>

Reference

https://confluence.suse.com/x/aQDWNg

@tomschr tomschr added the format-html html, xhtml, html5, webhelp, jsp support label Apr 28, 2023
@tomschr tomschr self-assigned this Apr 28, 2023
@tomschr tomschr changed the title Working on metadata for HTML output Metadata for HTML output May 8, 2023
From DocBook => HTML:

* <meta name="title">...</meta> =>
    <meta property="twitter:title" content="..."/>
    <meta property="og:title" content="..."/>

* <meta name="social-descr">...</meta> =>
    <meta property="twitter:description" content="..."/>
    <meta property="og:description" content="..."/>

* <meta name="category" content="Systems Management"/> =>
    <meta name="category" content="..."/>

* <meta name="maintainer" content="tux@example.com"/> =>
   <meta name="DC.creator" content="tux@example.com"/>

* Also try to match meta[@name='bugtracker']/d:phrase[@ROLE='editurl']

* Introduce include.html.dublincore parameter
  Used to add Dublin Core metadata for HTML
@tomschr tomschr marked this pull request as ready for review May 8, 2023 12:48
@tomschr tomschr merged commit 17bb386 into main May 8, 2023
2 checks passed
@tomschr tomschr deleted the docteam-920-metadata branch May 9, 2023 11:22
@tomschr tomschr added the topic-seo All about search engine optimization label Aug 2, 2023
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 topic-seo All about search engine optimization
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant