openSUSE / docserv

A server for building and publishing documentation with DAPS
https://opensuse.github.io/docserv/
GNU General Public License v3.0
4 stars 3 forks source link

Take desc/title into account #298

Closed tomschr closed 6 months ago

tomschr commented 7 months ago

This should fix the desc/title issue and create this JSON structure:

"description": [
    {
      "lang": "en-us",
      "default":  true,
      "title": "Templates and tools to containerize applications",
      "description": "<p>\n    SUSE Linux Enterprise Base Container Images (SLE BCI) provide truly open, \n    flexible, and secure container..."
    }],

The above comes from the Docserv config container.xml:

  <desc default="1" lang="en-us">
    <title>Templates and tools to containerize applications</title>
    <p>
    SUSE Linux Enterprise Base Container Images (SLE BCI) provide truly open, 
    flexible, and secure container images and application development tools. The 
    images consist of container environments based on SUSE Linux Enterprise and 
    designed to be a secure base for any containerized workload.
    </p>
  </desc>

Related

Related to changes in Docserv config GL susedoc/docserv-config#511

Questions to @GGayathri3

  1. If desc/title is not available, should the "title" key with an empty string nevertheless created? Make it empty
  2. Use the "title" keyword? Yes, it's fine.
tomschr commented 6 months ago

Tested locally with sles-sap/trento. Works