openSUSE / obs-docu

Official Open Build Service Documentation. Content gets reviewed and edited. Generated books are available at http://www.openbuildservice.org
34 stars 70 forks source link

What about some kind of "changelog" for your documents? #358

Open hennevogel opened 4 months ago

hennevogel commented 4 months ago
          If you are already over it, I have a suggestion for you. :slightly_smiling_face:  What about some kind of "changelog" for your documents?

DocBook/GeekoDoc allows to add a so called <revhistory>. The idea is to document bigger changes, not just typos etc. For example, adding a new chapter, describing a new feature etc.

It looks like this:

<revhistory xml:id="rh-obs-guide">
   <!-- Add the latest change here -->
   <revision>
       <date>2024-07-04</date>
       <revdescription>
           <para>The description of this change</para>
       </revdescription>
   </revision>
</revhistory>

You may want to know a few things before you apply it:

Our stylesheets creates a separate HTML page. A link on the titlepage with the name Revision History: <GUIDE-TITLE> points to this separate page.

In most cases, you will probably rarely update it as there are only smaller changes. But if you do some more work, it might be useful to give the reader an idea what substantial changes to the guide were added.

By the way: don't think about (ab)using the Git log for that. :wink: We thought about that too, but a Git log is too detailed and you can't discern the bigger chunks from the smaller ones.

Originally posted by @tomschr in https://github.com/openSUSE/obs-docu/issues/354#issuecomment-2208193604