openSUSE / docmanager

Manage DocBook 5 Meta Information
http://opensuse.github.io/docmanager/index.html
GNU General Public License v3.0
6 stars 6 forks source link

Add Tracker Meta Information #56

Closed tomschr closed 9 years ago

tomschr commented 9 years ago

Current Situation

Our related sister project openSUSE/suse-xsl needs to extend the JavaScript code (see related issue openSUSE/suse-xsl#36). At the moment, there is hard-coded information about the Bugzilla product. This is unfortunate as products will very likely change in the future.

The better solution is to move this information (and other tracker information) into the XML sources. To handle such tracker information more easily, DocManager should support that.

Suggested Solutions

DocManager should be able to store tracker information for Bugzilla & GitHub in the <dm:docmanager> element. Three approaches should be considered:

  1. Nested structure DM should use <trackerinfo> and use child elements to store its information. Pros:

    • Better readability
    • shorter tag names

    Cons

    • Not compatible with current implementation
  2. Flat structure Every information should map to an element name with a prefix tracker-. Pros:

    • Easy to implement

    Cons

    • Worse readability
  3. DocBook elements We could use releaseinfo to store at least some information. However, it is not really a good option as the semantics are not very appropriate.
tomschr commented 9 years ago

We've decided to use number 1 with the following structure/tags:

<dm:bugtracker>
   <url><!-- Tracker URL --></url>
  <component><!-- Bugzilla component --></component>
  <product><!-- Bugzilla tracker product --></product>
  <assignee><!-- Name of assignee --></assignee>
  <version><!-- version --></version>
</dm:bugtracker>
mschnitzer commented 9 years ago

We also have to update the man page.

mschnitzer commented 9 years ago

man page has been updated: https://github.com/openSUSE/docmanager/commit/ae221a69d40fc6e34518cc71f9a340ca0372df74